X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;f=youtube_dl%2FInfoExtractors.py;h=4aec8c6879e79ccc13cf5e9bcfbf9abc17c4d1d1;hb=01ba4b80a732308e8da66ba89bac9273181db1ad;hp=619ddeba1c8ff06587d4c4945aff0c679053555f;hpb=346b5ce8fdcb114b48b26fc883a0d7e249dc55d2;p=youtube-dl.git diff --git a/youtube_dl/InfoExtractors.py b/youtube_dl/InfoExtractors.py index 619ddeba1..4aec8c687 100755 --- a/youtube_dl/InfoExtractors.py +++ b/youtube_dl/InfoExtractors.py @@ -1409,6 +1409,13 @@ class GenericIE(InfoExtractor): if mobj is None: # Try to find twitter cards info mobj = re.search(r'',webpage).group(1) + thumbnail_url = re.search(r'',webpage).group(1) + title = (re.search(r'(.+?)',webpage).group(1)).strip("| Statigram") + uploader = re.search(r'@(.+) \(Videos\)',title).group(1) + ext = "mp4" + return [{ + 'id': video_id, + 'url': video_url, + 'ext': ext, + 'title': title, + 'thumbnail': thumbnail_url, + 'uploader' : uploader + }] + def gen_extractors(): """ Return a list of an instance of every supported extractor. The order does matter; the first extractor matched is the one handling the URL. @@ -4611,6 +4641,7 @@ def gen_extractors(): HypemIE(), Vbox7IE(), GametrailersIE(), + StatigrIE(), GenericIE() ]