mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-12-23 21:35:47 +00:00
[mitele] Fix extraction and update test checksum (fixes #7343)
This commit is contained in:
parent
c90d16cf36
commit
eb97f46e8b
@ -1,7 +1,10 @@
|
|||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
from .common import InfoExtractor
|
from .common import InfoExtractor
|
||||||
from ..compat import compat_urllib_parse
|
from ..compat import (
|
||||||
|
compat_urllib_parse,
|
||||||
|
compat_urlparse,
|
||||||
|
)
|
||||||
from ..utils import (
|
from ..utils import (
|
||||||
encode_dict,
|
encode_dict,
|
||||||
get_element_by_attribute,
|
get_element_by_attribute,
|
||||||
@ -15,7 +18,7 @@ class MiTeleIE(InfoExtractor):
|
|||||||
|
|
||||||
_TESTS = [{
|
_TESTS = [{
|
||||||
'url': 'http://www.mitele.es/programas-tv/diario-de/la-redaccion/programa-144/',
|
'url': 'http://www.mitele.es/programas-tv/diario-de/la-redaccion/programa-144/',
|
||||||
'md5': '757b0b66cbd7e0a97226d7d3156cb3e9',
|
'md5': '0ff1a13aebb35d9bc14081ff633dd324',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
'id': '0NF1jJnxS1Wu3pHrmvFyw2',
|
'id': '0NF1jJnxS1Wu3pHrmvFyw2',
|
||||||
'display_id': 'programa-144',
|
'display_id': 'programa-144',
|
||||||
@ -34,6 +37,7 @@ class MiTeleIE(InfoExtractor):
|
|||||||
|
|
||||||
config_url = self._search_regex(
|
config_url = self._search_regex(
|
||||||
r'data-config\s*=\s*"([^"]+)"', webpage, 'data config url')
|
r'data-config\s*=\s*"([^"]+)"', webpage, 'data config url')
|
||||||
|
config_url = compat_urlparse.urljoin(url, config_url)
|
||||||
|
|
||||||
config = self._download_json(
|
config = self._download_json(
|
||||||
config_url, display_id, 'Downloading config JSON')
|
config_url, display_id, 'Downloading config JSON')
|
||||||
|
Loading…
Reference in New Issue
Block a user