diff options
author | Sergey M․ <dstftw@gmail.com> | 2018-03-03 23:07:29 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2018-03-03 23:08:43 +0700 |
commit | 86c8cfc5558fd73e2c8bd62ea256200ce30e017e (patch) | |
tree | 21b7f81c296de8af56947223d3d07672932af879 /youtube_dl/extractor/generic.py | |
parent | c01db237b53904e1d2bd41678a932539a063dd88 (diff) |
[vice] Fix extraction and rework extractors (closes #11101, closes #13019, closes #13622, closes #13778)
Diffstat (limited to 'youtube_dl/extractor/generic.py')
-rw-r--r-- | youtube_dl/extractor/generic.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index bc350bcf7..a98f3636a 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -103,6 +103,7 @@ from .vshare import VShareIE from .mediasite import MediasiteIE from .springboardplatform import SpringboardPlatformIE from .yapfiles import YapFilesIE +from .vice import ViceIE class GenericIE(InfoExtractor): @@ -2965,6 +2966,11 @@ class GenericIE(InfoExtractor): return self.playlist_from_matches( yapfiles_urls, video_id, video_title, ie=YapFilesIE.ie_key()) + vice_urls = ViceIE._extract_urls(webpage) + if vice_urls: + return self.playlist_from_matches( + vice_urls, video_id, video_title, ie=ViceIE.ie_key()) + def merge_dicts(dict1, dict2): merged = {} for k, v in dict1.items(): |