MytubeService.py: -better way returning the Video_ID.
authorMladen Horvat <acid-burn@opendreambox.org>
Wed, 7 Oct 2009 11:17:14 +0000 (11:17 +0000)
committerMladen Horvat <acid-burn@opendreambox.org>
Wed, 7 Oct 2009 11:17:14 +0000 (11:17 +0000)
This fixes "Video not available" in some conditions where the videoid was returned wrong but the video was available

mytube/src/MyTubeService.py

index 81a56ad..01715bc 100755 (executable)
@@ -105,7 +105,8 @@ class MyTubeFeedEntry():
                        if ret == 'youtube_gdata':
                                tmpval=split.pop()
                                if tmpval.endswith("&feature"):
-                                       ret = tmpval.strip("&feature")
+                                       tmp = tmpval.split("&")
+                                       ret = tmp.pop(0)
                return ret
 
        def getTitle(self):