diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py index 582eb4f5b..0c397fa71 100644 --- a/youtube_dl/extractor/common.py +++ b/youtube_dl/extractor/common.py @@ -312,6 +312,18 @@ class InfoExtractor(object): if video_id is not None: video_info['id'] = video_id return video_info + + @staticmethod + def video_result(video_url=None, video_id=None, uploader=None, video_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': 'video', + 'url': video_url, + 'id': video_id, + 'uploader': uploader, + 'title': video_title} + return video_info + @staticmethod def playlist_result(entries, playlist_id=None, playlist_title=None): """Returns a playlist""" diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index e446ed326..6796d9d2f 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -348,7 +348,13 @@ class GenericIE(InfoExtractor): mobj = re.search(r'.*?.*?