File gwibber-stnx.diff of Package gwibber
diff -ruN gwibber-2.31.90+bzr830.orig/gwibber/microblog/urlshorter/__init__.py gwibber-2.31.90+bzr830/gwibber/microblog/urlshorter/__init__.py
--- gwibber-2.31.90+bzr830.orig/gwibber/microblog/urlshorter/__init__.py 2010-08-27 17:03:01.412884000 +0100
+++ gwibber-2.31.90+bzr830/gwibber/microblog/urlshorter/__init__.py 2010-08-27 17:09:47.533676053 +0100
@@ -1,8 +1,10 @@
import cligs, isgd, tinyurlcom, ur1ca
+import stnx
#import snipurlcom, zima
PROTOCOLS = {
+ "stnx.at": stnx,
"cli.gs": cligs,
"is.gd": isgd,
#"snipurl.com": snipurlcom,
diff -ruN gwibber-2.31.90+bzr830.orig/gwibber/microblog/urlshorter/stnx.py gwibber-2.31.90+bzr830/gwibber/microblog/urlshorter/stnx.py
--- gwibber-2.31.90+bzr830.orig/gwibber/microblog/urlshorter/stnx.py 1970-01-01 01:00:00.000000000 +0100
+++ gwibber-2.31.90+bzr830/gwibber/microblog/urlshorter/stnx.py 2010-08-27 17:08:33.739796334 +0100
@@ -0,0 +1,24 @@
+
+"""
+
+stnx.at interface for Gwibber
+macno (James Ogley) - 06/25/2009
+
+"""
+
+import urllib2
+
+PROTOCOL_INFO = {
+
+ "name": "stnx.at",
+ "version": 0.1,
+ "fqdn" : "http://stnx.at",
+
+}
+
+class URLShorter:
+
+ def short(self, text):
+ short = urllib2.urlopen("http://stnx.at/?u=%s&i=0" % urllib2.quote(text)).read().rstrip("\n")
+ return short
+