diff options
Diffstat (limited to 'youtube_dl/extractor/francetv.py')
| -rw-r--r-- | youtube_dl/extractor/francetv.py | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/youtube_dl/extractor/francetv.py b/youtube_dl/extractor/francetv.py index 6fc6b0da0..2ffe83a78 100644 --- a/youtube_dl/extractor/francetv.py +++ b/youtube_dl/extractor/francetv.py @@ -16,6 +16,7 @@ from ..utils import (      int_or_none,      parse_duration,      try_get, +    url_or_none,  )  from .dailymotion import DailymotionIE @@ -115,14 +116,13 @@ class FranceTVIE(InfoExtractor):          def sign(manifest_url, manifest_id):              for host in ('hdfauthftv-a.akamaihd.net', 'hdfauth.francetv.fr'): -                signed_url = self._download_webpage( +                signed_url = url_or_none(self._download_webpage(                      'https://%s/esi/TA' % host, video_id,                      'Downloading signed %s manifest URL' % manifest_id,                      fatal=False, query={                          'url': manifest_url, -                    }) -                if (signed_url and isinstance(signed_url, compat_str) and -                        re.search(r'^(?:https?:)?//', signed_url)): +                    })) +                if signed_url:                      return signed_url              return manifest_url  | 
