projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Output batch filename when it could not be read (#21915)
[youtube-dl]
/
youtube_dl
/
extractor
/
biobiochiletv.py
diff --git
a/youtube_dl/extractor/biobiochiletv.py
b/youtube_dl/extractor/biobiochiletv.py
index 7608c0a085b3c656277b03f61d19c1f60ea8d4f1..dc86c57c5df2e1efdb995cae9bd482f31b6c48fa 100644
(file)
--- a/
youtube_dl/extractor/biobiochiletv.py
+++ b/
youtube_dl/extractor/biobiochiletv.py
@@
-6,7
+6,6
@@
from ..utils import (
ExtractorError,
remove_end,
)
ExtractorError,
remove_end,
)
-from .rudo import RudoIE
class BioBioChileTVIE(InfoExtractor):
class BioBioChileTVIE(InfoExtractor):
@@
-19,7
+18,7
@@
class BioBioChileTVIE(InfoExtractor):
'id': 'sobre-camaras-y-camarillas-parlamentarias',
'ext': 'mp4',
'title': 'Sobre Cámaras y camarillas parlamentarias',
'id': 'sobre-camaras-y-camarillas-parlamentarias',
'ext': 'mp4',
'title': 'Sobre Cámaras y camarillas parlamentarias',
- 'thumbnail': 're:^https?://.*\.jpg$',
+ 'thumbnail':
r
're:^https?://.*\.jpg$',
'uploader': 'Fernando Atria',
},
'skip': 'URL expired and redirected to http://www.biobiochile.cl/portada/bbtv/index.html',
'uploader': 'Fernando Atria',
},
'skip': 'URL expired and redirected to http://www.biobiochile.cl/portada/bbtv/index.html',
@@
-31,7
+30,7
@@
class BioBioChileTVIE(InfoExtractor):
'id': 'natalia-valdebenito-repasa-a-diputado-hasbun-paso-a-la-categoria-de-hablar-brutalidades',
'ext': 'mp4',
'title': 'Natalia Valdebenito repasa a diputado Hasbún: Pasó a la categoría de hablar brutalidades',
'id': 'natalia-valdebenito-repasa-a-diputado-hasbun-paso-a-la-categoria-de-hablar-brutalidades',
'ext': 'mp4',
'title': 'Natalia Valdebenito repasa a diputado Hasbún: Pasó a la categoría de hablar brutalidades',
- 'thumbnail': 're:^https?://.*\.jpg$',
+ 'thumbnail':
r
're:^https?://.*\.jpg$',
'uploader': 'Piangella Obrador',
},
'params': {
'uploader': 'Piangella Obrador',
},
'params': {
@@
-41,11
+40,15
@@
class BioBioChileTVIE(InfoExtractor):
}, {
'url': 'http://www.biobiochile.cl/noticias/bbtv/comentarios-bio-bio/2016/07/08/edecanes-del-congreso-figuras-decorativas-que-le-cuestan-muy-caro-a-los-chilenos.shtml',
'info_dict': {
}, {
'url': 'http://www.biobiochile.cl/noticias/bbtv/comentarios-bio-bio/2016/07/08/edecanes-del-congreso-figuras-decorativas-que-le-cuestan-muy-caro-a-los-chilenos.shtml',
'info_dict': {
- 'id': '
edecanes-del-congreso-figuras-decorativas-que-le-cuestan-muy-caro-a-los-chilenos
',
+ 'id': '
b4xd0LK3SK
',
'ext': 'mp4',
'ext': 'mp4',
- 'uploader': '(none)',
- 'upload_date': '20160708',
- 'title': 'Edecanes del Congreso: Figuras decorativas que le cuestan muy caro a los chilenos',
+ # TODO: fix url_transparent information overriding
+ # 'uploader': 'Juan Pablo Echenique',
+ 'title': 'Comentario Oscar Cáceres',
+ },
+ 'params': {
+ # empty m3u8 manifest
+ 'skip_download': True,
},
}, {
'url': 'http://tv.biobiochile.cl/notas/2015/10/22/ninos-transexuales-de-quien-es-la-decision.shtml',
},
}, {
'url': 'http://tv.biobiochile.cl/notas/2015/10/22/ninos-transexuales-de-quien-es-la-decision.shtml',
@@
-60,7
+63,9
@@
class BioBioChileTVIE(InfoExtractor):
webpage = self._download_webpage(url, video_id)
webpage = self._download_webpage(url, video_id)
- rudo_url = RudoIE._extract_url(webpage)
+ rudo_url = self._search_regex(
+ r'<iframe[^>]+src=(?P<q1>[\'"])(?P<url>(?:https?:)?//rudo\.video/vod/[0-9a-zA-Z]+)(?P=q1)',
+ webpage, 'embed URL', None, group='url')
if not rudo_url:
raise ExtractorError('No videos found')
if not rudo_url:
raise ExtractorError('No videos found')
@@
-68,7
+73,7
@@
class BioBioChileTVIE(InfoExtractor):
thumbnail = self._og_search_thumbnail(webpage)
uploader = self._html_search_regex(
thumbnail = self._og_search_thumbnail(webpage)
uploader = self._html_search_regex(
- r'<a[^>]+href=["\']
https?://(?:busca|www)\.biobiochile\.cl
/(?:lista/)?(?:author|autor)[^>]+>(.+?)</a>',
+ r'<a[^>]+href=["\']
(?:https?://(?:busca|www)\.biobiochile\.cl)?
/(?:lista/)?(?:author|autor)[^>]+>(.+?)</a>',
webpage, 'uploader', fatal=False)
return {
webpage, 'uploader', fatal=False)
return {