John,
the first field of the YOUTUBE_VIDEOS is for a valid Youtube's user name, not
for a RSS file. This is the reason for the invalid URI. Select the name of your
preferred Youtube's user and try.
I have just uploaded a proposal for a patched youtube plugin which is able to
watch Youtube's standard feeds too (top rated, most viewed, ... videos). Take a
look at
http://sourceforge.net/tracker/?atid=446898&group_id=46652&func=browse
Regards
--- El lun, 8/9/08, John Molohan <[EMAIL PROTECTED]> escribió:
De: John Molohan <[EMAIL PROTECTED]>
Asunto: [Freevo-devel] Traceback with rel-1 youtube plugin
Para: "Freevo development" <freevo-devel@lists.sourceforge.net>
Fecha: lunes, 8 septiembre, 2008 4:53
Hi,
I've never had the youtube plugin work but assumed it was an incorrect
setting. After updating my rel-1 svn today and checking all the settings
I'm still seeing a traceback anytime I try to browse to a user link
defined in my local_conf.py, searching however works fine.
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/freevo/main.py", line 296,
in
eventhandler
app.eventhandler(event)
File "/usr/lib/python2.5/site-packages/freevo/util/benchmark.py",
line
79, in origfunc
return func(*args, **kwargs)
File "/usr/lib/python2.5/site-packages/freevo/menu.py", line 872,
in
eventhandler
self._handle_play_item(menu, event)
File "/usr/lib/python2.5/site-packages/freevo/util/benchmark.py",
line
79, in origfunc
return func(*args, **kwargs)
File "/usr/lib/python2.5/site-packages/freevo/menu.py", line 683,
in
_handle_play_item
action(arg=arg, menuw=self)
File "/usr/lib/python2.5/site-packages/freevo/util/benchmark.py",
line
79, in origfunc
return func(*args, **kwargs)
File "/usr/lib/python2.5/site-packages/freevo/menu.py", line 105,
in
select
self.function(arg=self.arg, menuw=menuw)
File
"/usr/lib/python2.5/site-packages/freevo/video/plugins/youtube.py",
line
184, in videolist
items = self.video_list(_('Retrieving video list'), arg[0])
File
"/usr/lib/python2.5/site-packages/freevo/video/plugins/youtube.py",
line
243, in video_list
for video in service.GetFeed(feed).entry:
File "/usr/lib/python2.5/site-packages/gdata/service.py", line 586,
in
GetFeed
result = self.Get(uri, extra_headers, converter=converter)
File "/usr/lib/python2.5/site-packages/gdata/service.py", line 531,
in Get
'reason': server_response.reason, 'body': result_body}
RequestError: {'status': 400, 'body': 'Invalid request
URI.', 'reason':
'Bad Request'}
plugin.activate('video.youtube')
YOUTUBE_VIDEOS = [
('http://www.youtube.com/user/hotforwords','Hot for words'),
('http://www.youtube.com/user/AssociatedPress','Associated
Press'),
('http://www.youtube.com/user/kingsofleon?ob=4','Kings Of
Leon'),
('http://youtube.com/rss/global/top_viewed_today.rss','Todays
most
viewed'),
('http://gdata.youtube.com/feeds/base/standardfeeds/most_viewed?client=ytapi-youtube-browse&alt=rss&time=today',
'Todays most viewed'),
('http://gdata.youtube.com/feeds/base/standardfeeds/top_favorites?client=ytapi-youtube-browse&alt=rss',
'Top Favorites'),
('http://gdata.youtube.com/feeds/base/standardfeeds/top_rated_today?client=ytapi-youtube-browse&alt=rss&time=today',
'Top Rated Today'),
('http://gdata.youtube.com/feeds/base/standardfeeds/most_viewed?client=ytapi-youtube-browse&alt=rss&time=today',
'Most Viewed Today'),
('http://gdata.youtube.com/feeds/base/standardfeeds/most_viewed?client=ytapi-youtube-browse&alt=rss&time=this_week',
'Most Viewed This Week'),
('http://gdata.youtube.com/feeds/base/standardfeeds/most_viewed?client=ytapi-youtube-browse&alt=rss&time=this_month',
'Most View This Month'),
('http://gdata.youtube.com/feeds/base/standardfeeds/most_viewed?client=ytapi-youtube-browse&alt=rss&time=all_time',
'Most Viewed All Time'),
]
YOUTUBE_DIR = '/tmp/'
YOUTUBE_DL='youtube-dl'
John
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel