New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RTVSLO fails on some links #8020
Labels
patch-available
There is patch available that should fix this issue. Someone needs to make a PR with it
site-bug
Issue with a specific website
Comments
Needs something like this: diff --git a/yt_dlp/extractor/rtvslo.py b/yt_dlp/extractor/rtvslo.py
index 05942b6b4..054174fe2 100644
--- a/yt_dlp/extractor/rtvslo.py
+++ b/yt_dlp/extractor/rtvslo.py
@@ -1,6 +1,7 @@
from .common import InfoExtractor
from ..utils import (
ExtractorError,
+ int_or_none,
parse_duration,
traverse_obj,
unified_timestamp,
@@ -114,16 +115,15 @@ def _real_extract(self, url):
else f.get('language'))
})
- formats.extend(
- {
- 'url': f['streams'][strm],
- 'ext': traverse_obj(f, 'mediaType', expected_type=str.lower),
- 'width': f.get('width'),
- 'height': f.get('height'),
- 'tbr': f.get('bitrate'),
- 'filesize': f.get('filesize'),
- }
- for strm in ('http', 'https')
- for f in media.get('mediaFiles') or []
- if traverse_obj(f, ('streams', strm))
- )
+ for mediafile in traverse_obj(media, ('mediaFiles', lambda _, v: url_or_none(v['streams']['https']))):
+ formats.append(traverse_obj(mediafile, {
+ 'url': ('streams', 'https'),
+ 'ext': ('mediaType', {str.lower}),
+ 'width': ('width', {int_or_none}),
+ 'height': ('height', {int_or_none}),
+ 'tbr': ('bitrate', {int_or_none}),
+ 'filesize': ('filesize', {int_or_none}),
+ }))
+
+ for hls_url in traverse_obj(media, ('mediaFiles', ..., 'streams', 'hls_sec', {url_or_none})):
+ formats.extend(self._extract_wowza_formats(hls_url, v_id, skip_protocols=['smil'])) |
bashonly
added
the
patch-available
There is patch available that should fix this issue. Someone needs to make a PR with it
label
Sep 3, 2023
aalsuwaidi
pushed a commit
to aalsuwaidi/yt-dlp
that referenced
this issue
Apr 21, 2024
Closes yt-dlp#8020 Authored by: bashonly
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
patch-available
There is patch available that should fix this issue. Someone needs to make a PR with it
site-bug
Issue with a specific website
DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE
Checklist
Region
United States
Provide a description that is worded well enough to be understood
Yt-dlp works with this link:
https://365.rtvslo.si/arhiv/razred-zase/174376609
Fails with this link:
https://365.rtvslo.si/arhiv/razred-zase/148350750
Provide verbose output that clearly demonstrates the problem
yt-dlp -vU <your command line>
)'verbose': True
toYoutubeDL
params instead[debug] Command-line config
) and insert it belowComplete Verbose Output
The text was updated successfully, but these errors were encountered: