From ba87d3146984af090caf64f7f1a873b815fc171c Mon Sep 17 00:00:00 2001 From: error800 Date: Wed, 25 Feb 2015 17:31:22 +0100 Subject: [PATCH 1/2] Added title with default value None to url_result Fixes jwplayer playlists with unknown video titles I used this to make discogs.com embeds work. I hope it makes sense like this... This works now: youtube-dl --verbose --user-agent "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:35.0) Gecko/20100101 Firefox/35.0" http://www.discogs.ando/master/15295 This closes #4790. --- youtube_dl/extractor/common.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py index 87fce9cd8..7ad7a6c8e 100644 --- a/youtube_dl/extractor/common.py +++ b/youtube_dl/extractor/common.py @@ -492,11 +492,12 @@ class InfoExtractor(object): # Methods for following #608 @staticmethod - def url_result(url, ie=None, video_id=None): + def url_result(url, ie=None, video_id=None, title=None): """Returns a url that points to a page that should be processed""" # TODO: ie should be the class used for getting the info video_info = {'_type': 'url', 'url': url, + 'title': title, 'ie_key': ie} if video_id is not None: video_info['id'] = video_id From aa211b50c23a92f47700f9e18eaa1abdc78b0c67 Mon Sep 17 00:00:00 2001 From: error800 Date: Wed, 25 Feb 2015 17:31:22 +0100 Subject: [PATCH 2/2] Added title with default value None to url_result Fixes jwplayer playlists with unknown video titles I used this to make discogs.com embeds work. I hope it makes sense like this... This works now: youtube-dl --verbose --user-agent "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:35.0) Gecko/20100101 Firefox/35.0" http://www.discogs.com/master/15295 This closes #4790. --- youtube_dl/extractor/common.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py index 87fce9cd8..7ad7a6c8e 100644 --- a/youtube_dl/extractor/common.py +++ b/youtube_dl/extractor/common.py @@ -492,11 +492,12 @@ class InfoExtractor(object): # Methods for following #608 @staticmethod - def url_result(url, ie=None, video_id=None): + def url_result(url, ie=None, video_id=None, title=None): """Returns a url that points to a page that should be processed""" # TODO: ie should be the class used for getting the info video_info = {'_type': 'url', 'url': url, + 'title': title, 'ie_key': ie} if video_id is not None: video_info['id'] = video_id