[kupfer] shorten_links: Add service v.gd



commit 2d6b7c8134351f283a7bbef241231f19b497ca64
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Tue Mar 1 04:29:56 2011 +0100

    shorten_links: Add service v.gd

 kupfer/plugin/shorten_links.py |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/kupfer/plugin/shorten_links.py b/kupfer/plugin/shorten_links.py
index ec5bad4..eff18ed 100644
--- a/kupfer/plugin/shorten_links.py
+++ b/kupfer/plugin/shorten_links.py
@@ -65,6 +65,19 @@ class IsGd(_GETService):
 	def __init__(self):
 		_ShortLinksService.__init__(self, u'Is.gd')
 
+class VGd(_GETService):
+	"""
+	Website: http://v.gd
+	Reference: http://v.gd/apishorteningreference.php
+
+	Like is.gd, but v.gd always shows a preview page.
+	"""
+	host = 'v.gd'
+	path = '/create.php?format=simple&'
+
+	def __init__(self):
+		_ShortLinksService.__init__(self, u'V.gd')
+
 class BitLy(_GETService):
 	"""
 	Website: http://bit.ly
@@ -124,6 +137,7 @@ class ServicesSource(Source):
 	def get_items(self):
 		yield TinyUrl()
 		yield IsGd()
+		yield VGd()
 		yield BitLy()
 
 	def should_sort_lexically(self):



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