tags 439621 +patch
thanks

Hi!

I think the attached patch solves the problem for YouTube, at
least. I've tried, and it seems to work for all cases, though I can't
guarantee complete functionality!

HTH.

Kumar
-- 
Kumar Appaiah,
458, Jamuna Hostel,
Indian Institute of Technology Madras,
Chennai - 600 036
diff -urN clive-0.2.0.0/clive/parse.py clive-0.2.0/clive/parse.py
--- clive-0.2.0.0/clive/parse.py	2007-09-01 22:39:51.000000000 +0530
+++ clive-0.2.0/clive/parse.py	2007-09-01 23:45:15.000000000 +0530
@@ -124,8 +124,10 @@
       else:
         raise CliveError('error : terminated (reason: video id not found)')
 
-    return 'http://www.youtube.com/get_video?video_id=' + \
-              text.split('video_id=')[1]
+    s = text.split("'")
+    video_id = s[4]
+    t_param = s[8]
+    return 'http://www.youtube.com/get_video?video_id=' + video_id + '&t=' + t_param
     
   def _parsegv(self, page, url):
     """

Reply via email to