mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-23 02:32:16 +00:00
[nova] Fix display_id extraction bug
This commit is contained in:
parent
4b5fe1349f
commit
08b7968e28
1 changed files with 4 additions and 4 deletions
|
@ -13,9 +13,9 @@ from ..utils import (
|
||||||
|
|
||||||
class NovaIE(InfoExtractor):
|
class NovaIE(InfoExtractor):
|
||||||
IE_DESC = 'TN.cz, Prásk.tv, Nova.cz, Novaplus.cz, FANDA.tv, Krásná.cz and Doma.cz'
|
IE_DESC = 'TN.cz, Prásk.tv, Nova.cz, Novaplus.cz, FANDA.tv, Krásná.cz and Doma.cz'
|
||||||
_VALID_URL = 'http://(?:[^.]+\.)?(?P<site>tv(?:noviny)?|tn|novaplus|vymena|fanda|krasna|doma|prask)\.nova\.cz/(?:[^/]+/)+(?P<id>[^/]+?)(?:\.html|/?)$'
|
_VALID_URL = 'http://(?:[^.]+\.)?(?P<site>tv(?:noviny)?|tn|novaplus|vymena|fanda|krasna|doma|prask)\.nova\.cz/(?:[^/]+/)+(?P<id>[^/]+?)(?:\.html|/|$)'
|
||||||
_TESTS = [{
|
_TESTS = [{
|
||||||
'url': 'http://tvnoviny.nova.cz/clanek/novinky/co-na-sebe-sportaci-praskli-vime-jestli-pujde-hrdlicka-na-materskou.html',
|
'url': 'http://tvnoviny.nova.cz/clanek/novinky/co-na-sebe-sportaci-praskli-vime-jestli-pujde-hrdlicka-na-materskou.html?utm_source=tvnoviny&utm_medium=cpfooter&utm_campaign=novaplus',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
'id': '1608920',
|
'id': '1608920',
|
||||||
'display_id': 'co-na-sebe-sportaci-praskli-vime-jestli-pujde-hrdlicka-na-materskou',
|
'display_id': 'co-na-sebe-sportaci-praskli-vime-jestli-pujde-hrdlicka-na-materskou',
|
||||||
|
@ -29,7 +29,7 @@ class NovaIE(InfoExtractor):
|
||||||
'skip_download': True,
|
'skip_download': True,
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
'url': 'http://tn.nova.cz/clanek/tajemstvi-ukryte-v-podzemi-specialni-nemocnice-v-prazske-krci.html',
|
'url': 'http://tn.nova.cz/clanek/tajemstvi-ukryte-v-podzemi-specialni-nemocnice-v-prazske-krci.html#player_13260',
|
||||||
'md5': '1dd7b9d5ea27bc361f110cd855a19bd3',
|
'md5': '1dd7b9d5ea27bc361f110cd855a19bd3',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
'id': '1757139',
|
'id': '1757139',
|
||||||
|
@ -40,7 +40,7 @@ class NovaIE(InfoExtractor):
|
||||||
'thumbnail': 're:^https?://.*\.(?:jpg)',
|
'thumbnail': 're:^https?://.*\.(?:jpg)',
|
||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
'url': 'http://novaplus.nova.cz/porad/policie-modrava/video/5591-policie-modrava-15-dil-blondynka-na-hrbitove/',
|
'url': 'http://novaplus.nova.cz/porad/policie-modrava/video/5591-policie-modrava-15-dil-blondynka-na-hrbitove',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
'id': '1756825',
|
'id': '1756825',
|
||||||
'display_id': '5591-policie-modrava-15-dil-blondynka-na-hrbitove',
|
'display_id': '5591-policie-modrava-15-dil-blondynka-na-hrbitove',
|
||||||
|
|
Loading…
Reference in a new issue