mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-06-25 20:24:47 +00:00
[ie/litv] Bypass georestriction
Adds X-Forwarded-For header with Taiwanese IP.
This commit is contained in:
parent
48160e64c6
commit
29964cb9a5
@ -17,6 +17,8 @@ class LiTVIE(InfoExtractor):
|
|||||||
|
|
||||||
_URL_TEMPLATE = 'https://www.litv.tv/%s/watch/%s'
|
_URL_TEMPLATE = 'https://www.litv.tv/%s/watch/%s'
|
||||||
|
|
||||||
|
_GEO_COUNTRIES = ['TW']
|
||||||
|
|
||||||
_TESTS = [{
|
_TESTS = [{
|
||||||
'url': 'https://www.litv.tv/drama/watch/VOD00041610',
|
'url': 'https://www.litv.tv/drama/watch/VOD00041610',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
@ -40,7 +42,6 @@ class LiTVIE(InfoExtractor):
|
|||||||
'params': {
|
'params': {
|
||||||
'noplaylist': True,
|
'noplaylist': True,
|
||||||
},
|
},
|
||||||
'skip': 'Georestricted to Taiwan',
|
|
||||||
}, {
|
}, {
|
||||||
'url': 'https://www.litv.tv/promo/miyuezhuan/?content_id=VOD00044841&',
|
'url': 'https://www.litv.tv/promo/miyuezhuan/?content_id=VOD00044841&',
|
||||||
'md5': '88322ea132f848d6e3e18b32a832b918',
|
'md5': '88322ea132f848d6e3e18b32a832b918',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user