projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[downloader/http] Retry download when urlopen times out (#26603) (refs #10935)
[youtube-dl]
/
youtube_dl
/
extractor
/
tele5.py
diff --git
a/youtube_dl/extractor/tele5.py
b/youtube_dl/extractor/tele5.py
index c209eb04f35cb48070122b9bf91d57d44a8bafd6..3e1a7a9e609a9eb80732348b86e5976e12093a0b 100644
(file)
--- a/
youtube_dl/extractor/tele5.py
+++ b/
youtube_dl/extractor/tele5.py
@@
-7,11
+7,15
@@
from .common import InfoExtractor
from .jwplatform import JWPlatformIE
from .nexx import NexxIE
from ..compat import compat_urlparse
from .jwplatform import JWPlatformIE
from .nexx import NexxIE
from ..compat import compat_urlparse
-from ..utils import NO_DEFAULT
+from ..utils import (
+ NO_DEFAULT,
+ smuggle_url,
+)
class Tele5IE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?tele5\.de/(?:[^/]+/)*(?P<id>[^/?#&]+)'
class Tele5IE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?tele5\.de/(?:[^/]+/)*(?P<id>[^/?#&]+)'
+ _GEO_COUNTRIES = ['DE']
_TESTS = [{
'url': 'https://www.tele5.de/mediathek/filme-online/videos?vid=1549416',
'info_dict': {
_TESTS = [{
'url': 'https://www.tele5.de/mediathek/filme-online/videos?vid=1549416',
'info_dict': {
@@
-98,5
+102,7
@@
class Tele5IE(InfoExtractor):
jwplatform_id = extract_id(JWPLATFORM_ID_RE, 'jwplatform id')
return self.url_result(
jwplatform_id = extract_id(JWPLATFORM_ID_RE, 'jwplatform id')
return self.url_result(
- 'jwplatform:%s' % jwplatform_id, ie=JWPlatformIE.ie_key(),
- video_id=jwplatform_id)
+ smuggle_url(
+ 'jwplatform:%s' % jwplatform_id,
+ {'geo_countries': self._GEO_COUNTRIES}),
+ ie=JWPlatformIE.ie_key(), video_id=jwplatform_id)