I just want to sync this videos:
http://www.youtube.com/watch?v=psOmwlFd3_g&feature=related
http://www.youtube.com/watch?v=XyPTkNc2—U&feature=related
What is the expected output? What do you see instead?
In [8]: from syncr.app.youtube import YoutubeSyncr
In [9]: YoutubeSyncr().syncVideo('XyPTkNc2--U')
---------------------------------------------------------------------------
IndexError Traceback (most recent call last)
/var/www/web_site/<ipython console> in <module>()
/var/www/web_site/syncr/app/youtube.py in syncVideo(self, video_id)
56 """
57 feed = 'http://' + self._youtubeGDataHost +
self._youtubeFeedBase + 'videos/%s' % video_id
---> 58 return self.syncVideoFeed(feed)
59
60 def syncVideoFeed(self, video_feed):
/var/www/web_site/syncr/app/youtube.py in syncVideoFeed(self, video_feed)
86 ATOM_NS))[0].attrib['href'],
87 'thumbnail_url': filter(lambda x: x.attrib['height'] ==
'240',
---> 88
result.findall('{%s}group/{%s}thumbnail' % (MRSS_NS,
MRSS_NS)))[0].attrib['url'],
89 'length': result.find('{%s}group/{%s}duration' %
90 (MRSS_NS,
YOUTUBE_NS)).attrib['seconds'],
IndexError: list index out of range
Original issue reported on code.google.com by ramu...@gmail.com on 15 Jun 2009 at 8:47
Original issue reported on code.google.com by
ramu...@gmail.com
on 15 Jun 2009 at 8:47