diff options
Diffstat (limited to 'youtube_dl/extractor/common.py')
| -rw-r--r-- | youtube_dl/extractor/common.py | 7 | 
1 files changed, 5 insertions, 2 deletions
| diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py index 8b4ef3f09..9e517e3ac 100644 --- a/youtube_dl/extractor/common.py +++ b/youtube_dl/extractor/common.py @@ -860,10 +860,13 @@ class InfoExtractor(object):          return formats      # TODO: improve extraction -    def _extract_smil_formats(self, smil_url, video_id): +    def _extract_smil_formats(self, smil_url, video_id, fatal=True):          smil = self._download_xml(              smil_url, video_id, 'Downloading SMIL file', -            'Unable to download SMIL file') +            'Unable to download SMIL file', fatal=fatal) +        if smil is False: +            assert not fatal +            return []          base = smil.find('./head/meta').get('base') | 
