diff options
| author | Sergey M․ <dstftw@gmail.com> | 2015-08-02 01:16:21 +0600 | 
|---|---|---|
| committer | Sergey M․ <dstftw@gmail.com> | 2015-08-02 01:16:21 +0600 | 
| commit | 8765222d2211cd6f2a40611249181af0bbb2d531 (patch) | |
| tree | 74e9b2cd1cf54c28e19286b076097c0ee306e3a5 | |
| parent | 645f814544f9d40386e504a1eb8cf3558f2c109e (diff) | |
[extractor/generic] Add generic SMIL tests
| -rw-r--r-- | youtube_dl/extractor/generic.py | 68 | 
1 files changed, 68 insertions, 0 deletions
diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index 6900ed96f..27584c44c 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -130,6 +130,74 @@ class GenericIE(InfoExtractor):                  'title': 'pdv_maddow_netcast_m4v-02-27-2015-201624',              }          }, +        # SMIL from http://videolectures.net/promogram_igor_mekjavic_eng +        { +            'url': 'http://videolectures.net/promogram_igor_mekjavic_eng/video/1/smil.xml', +            'info_dict': { +                'id': 'smil', +                'ext': 'mp4', +                'title': 'Automatics, robotics and biocybernetics', +                'description': 'md5:815fc1deb6b3a2bff99de2d5325be482', +                'formats': 'mincount:16', +                'subtitles': 'mincount:1', +            }, +            'params': { +                'force_generic_extractor': True, +                'skip_download': True, +            }, +        }, +        # SMIL from http://www1.wdr.de/mediathek/video/livestream/index.html +        { +            'url': 'http://metafilegenerator.de/WDR/WDR_FS/hds/hds.smil', +            'info_dict': { +                'id': 'hds', +                'ext': 'flv', +                'title': 'hds', +                'formats': 'mincount:1', +            }, +            'params': { +                'skip_download': True, +            }, +        }, +        # SMIL from https://www.restudy.dk/video/play/id/1637 +        { +            'url': 'https://www.restudy.dk/awsmedia/SmilDirectory/video_1637.xml', +            'info_dict': { +                'id': 'video_1637', +                'ext': 'flv', +                'title': 'video_1637', +                'formats': 'mincount:3', +            }, +            'params': { +                'skip_download': True, +            }, +        }, +        # SMIL from http://adventure.howstuffworks.com/5266-cool-jobs-iditarod-musher-video.htm +        { +            'url': 'http://services.media.howstuffworks.com/videos/450221/smil-service.smil', +            'info_dict': { +                'id': 'smil-service', +                'ext': 'flv', +                'title': 'smil-service', +                'formats': 'mincount:1', +            }, +            'params': { +                'skip_download': True, +            }, +        }, +        # SMIL from http://new.livestream.com/CoheedandCambria/WebsterHall/videos/4719370 +        { +            'url': 'http://api.new.livestream.com/accounts/1570303/events/1585861/videos/4719370.smil', +            'info_dict': { +                'id': '4719370', +                'ext': 'mp4', +                'title': '571de1fd-47bc-48db-abf9-238872a58d1f', +                'formats': 'mincount:3', +            }, +            'params': { +                'skip_download': True, +            }, +        },          # google redirect          {              'url': 'http://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&ved=0CCUQtwIwAA&url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DcmQHVoWB5FY&ei=F-sNU-LLCaXk4QT52ICQBQ&usg=AFQjCNEw4hL29zgOohLXvpJ-Bdh2bils1Q&bvm=bv.61965928,d.bGE',  | 
