[kupfer] shorten_links: Fix data for Bit.ly



commit b1e483057ad0373d444a5516a5322f4ec4f8e5bb
Author: Ulrik Sverdrup <f04us venus-7 student lth se>
Date:   Tue Mar 1 12:23:19 2011 +0100

    shorten_links: Fix data for Bit.ly

 kupfer/plugin/shorten_links.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/kupfer/plugin/shorten_links.py b/kupfer/plugin/shorten_links.py
index eff18ed..faab146 100644
--- a/kupfer/plugin/shorten_links.py
+++ b/kupfer/plugin/shorten_links.py
@@ -89,9 +89,9 @@ class BitLy(_GETService):
 	BITLY_LOGIN = "kupferkupfer"
 	BITLY_API_KEY = "R_a617770f00b647d6c22ce162105125c2"
 
-	host = 'bit.ly'
-	path = ('http://api.bitly.com/v3/shorten?login=%s&apiKey=%s&format=txt&;' %
-			(BITLY_LOGIN, BITLY_API_KEY))
+	host = 'api.bitly.com'
+	path = ('/v3/shorten?login=%s&apiKey=%s&format=txt&' %
+	        (BITLY_LOGIN, BITLY_API_KEY))
 	url_key = "longUrl"
 
 	def __init__(self):



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]