Fix Youtube mplayer error "No stream found to handle url"
Set the "_play_proxy" boolean attribute to the video object to pipe the video to mplayer. Fix Youtube module test. Signed-off-by: Vincent Texier <vit@free.fr>
This commit is contained in:
parent
dec4d08184
commit
baa289a777
3 changed files with 10 additions and 5 deletions
|
|
@ -115,6 +115,11 @@ class YoutubeBackend(BaseBackend, ICapVideo, ICapCollection):
|
|||
self._set_video_url(video)
|
||||
|
||||
video.set_empty_fields(NotAvailable)
|
||||
|
||||
# Youtube video url is https, using ssl encryption
|
||||
# so we need to use the "play_proxy" method using urllib2 proxy streaming to handle this
|
||||
video._play_proxy = True
|
||||
|
||||
return video
|
||||
|
||||
def search_videos(self, pattern, sortby=ICapVideo.SEARCH_RELEVANCE, nsfw=False):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue