Merge lp:~sindhudweep-sarkar/gwibber/linkyy into lp:gwibber

Proposed by Sindhudweep Sarkar
Status: Rejected
Rejected by: Ken VanDine
Proposed branch: lp:~sindhudweep-sarkar/gwibber/linkyy
Merge into: lp:gwibber
Diff against target: 47 lines (+27/-1)
2 files modified
gwibber/microblog/urlshorter/__init__.py (+2/-1)
gwibber/microblog/urlshorter/linkyycom.py (+25/-0)
To merge this branch: bzr merge lp:~sindhudweep-sarkar/gwibber/linkyy
Reviewer Review Type Date Requested Status
Omer Akram (community) Needs Fixing
gwibber-committers Pending
Review via email: mp+20287@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Sindhudweep Sarkar (sindhudweep-sarkar) wrote :

This closes LP: 529275

Revision history for this message
Omer Akram (om26er) wrote :

Sindhudweep Sarkar your branch does not apply to current trunk

review: Needs Fixing

Unmerged revisions

629. By Sindhudweep Sarkar

Fix LP: 529275 - Gwibber does not support linkyy as an url shortener

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'gwibber/microblog/urlshorter/__init__.py'
2--- gwibber/microblog/urlshorter/__init__.py 2009-04-15 22:56:03 +0000
3+++ gwibber/microblog/urlshorter/__init__.py 2010-02-28 00:30:30 +0000
4@@ -1,5 +1,5 @@
5
6-import cligs, isgd, tinyurlcom, trim, ur1ca
7+import cligs, isgd, tinyurlcom, trim, ur1ca, linkyycom
8 #import snipurlcom, zima
9
10 PROTOCOLS = {
11@@ -9,5 +9,6 @@
12 "tinyurl.com": tinyurlcom,
13 "tr.im": trim,
14 "ur1.ca": ur1ca,
15+ "linkyy.com": linkyycom
16 #"zi.ma": zima,
17 }
18
19=== added file 'gwibber/microblog/urlshorter/linkyycom.py'
20--- gwibber/microblog/urlshorter/linkyycom.py 1970-01-01 00:00:00 +0000
21+++ gwibber/microblog/urlshorter/linkyycom.py 2010-02-28 00:30:30 +0000
22@@ -0,0 +1,25 @@
23+
24+"""
25+
26+linkyy.com interface for Gwibber
27+Sindhudweep N. Sarkar - 2/27/2010
28+based off of the tinyurl gwibber interface by macno (Michele Azzolari)
29+
30+"""
31+
32+import urllib2
33+
34+PROTOCOL_INFO = {
35+
36+ "name": "linkyy.com",
37+ "version": 0.1,
38+ "fqdn" : "http://linkyy.com",
39+
40+}
41+
42+class URLShorter:
43+
44+ def short(self, text):
45+ short = urllib2.urlopen("http://linkyy.com/create_api?url=%s" % urllib2.quote(text)).read()
46+ return short
47+