]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[bbc] Skip mediaselection on gelocation error (Closes #6983)
authorSergey M․ <dstftw@gmail.com>
Sat, 26 Sep 2015 13:57:17 +0000 (19:57 +0600)
committerSergey M․ <dstftw@gmail.com>
Sat, 26 Sep 2015 13:57:17 +0000 (19:57 +0600)
youtube_dl/extractor/bbc.py

index 42526357afcadb77ccd48fb5a0e9d38769b11887..c1692b6c59bb366202fbbcf2215abba750e2b1cf 100644 (file)
@@ -294,7 +294,7 @@ class BBCCoUkIE(InfoExtractor):
                 return self._download_media_selector_url(
                     mediaselector_url % programme_id, programme_id)
             except BBCCoUkIE.MediaSelectionError as e:
-                if e.id == 'notukerror':
+                if e.id in ('notukerror', 'geolocation'):
                     last_exception = e
                     continue
                 self._raise_extractor_error(e)