aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/tv2dk.py
diff options
context:
space:
mode:
authordirkf <fieldhouse@gmx.net>2022-02-04 11:24:03 +0000
committerdirkf <fieldhouse@gmx.net>2022-02-04 14:28:50 +0000
commit61d791726f67255c2ed3c0bb6ee24c8c1faeb028 (patch)
treee3bc0deb36ce605a40d90e334e97e1a0e4e39b12 /youtube_dl/extractor/tv2dk.py
parent0c0876f790c78c38ececbc920073e8b6cf01e9c7 (diff)
downloadyoutube-dl-61d791726f67255c2ed3c0bb6ee24c8c1faeb028.tar.xz
Find TV2DK Kaltura ID in Nuxt.js page format
Diffstat (limited to 'youtube_dl/extractor/tv2dk.py')
-rw-r--r--youtube_dl/extractor/tv2dk.py15
1 files changed, 12 insertions, 3 deletions
diff --git a/youtube_dl/extractor/tv2dk.py b/youtube_dl/extractor/tv2dk.py
index 8bd5fd640..106a081e1 100644
--- a/youtube_dl/extractor/tv2dk.py
+++ b/youtube_dl/extractor/tv2dk.py
@@ -41,8 +41,16 @@ class TV2DKIE(InfoExtractor):
'duration': 1347,
'view_count': int,
},
- 'params': {
- 'skip_download': True,
+ 'add_ie': ['Kaltura'],
+ }, {
+ 'url': 'https://www.tv2lorry.dk/gadekamp/gadekamp-6-hoejhuse-i-koebenhavn',
+ 'info_dict': {
+ 'id': '1_7iwll9n0',
+ 'ext': 'mp4',
+ 'upload_date': '20211027',
+ 'title': 'Gadekamp #6 - Højhuse i København',
+ 'uploader_id': 'tv2lorry',
+ 'timestamp': 1635345229,
},
'add_ie': ['Kaltura'],
}, {
@@ -91,7 +99,8 @@ class TV2DKIE(InfoExtractor):
add_entry(partner_id, kaltura_id)
if not entries:
kaltura_id = self._search_regex(
- r'entry_id\s*:\s*["\']([0-9a-z_]+)', webpage, 'kaltura id')
+ (r'entry_id\s*:\s*["\']([0-9a-z_]+)',
+ r'\\u002FentryId\\u002F(\w+)\\u002F'), webpage, 'kaltura id')
partner_id = self._search_regex(
(r'\\u002Fp\\u002F(\d+)\\u002F', r'/p/(\d+)/'), webpage,
'partner id')