Commit Graph

112 Commits (7671a9442c7d8ace55cf6cfdc9f3be4bd2304312)

Author SHA1 Message Date
dirkf 7671a9442c
Simplify modified subtitle handling 4 years ago
dirkf 9b74c4b7db
Handle subtitles properly
The subtitles are parsed from each mediaselector playlist in the form of a dict keyed by language each of whose values is a list containing a dict keyed by url and sttl type. There seems to be no attempt in the extractor to make this list contain more than one dict. So a strategy is needed to deal with multiple sttl types for the same language.

For backward compatibility, let the first of any duplicate sttl languages take precedence.
4 years ago
dirkf 94f4d75bf6
Update bbc.py
The list of subtitles is initialised to None and may never become a list if no captions are found in the playlists.
4 years ago
dirkf f9588ec2cd
Fix for flake8
Trailing spaces in comments FFS!
4 years ago
dirkf 1ad6dd845b
Try all possible mediaselectors even if one succeeds
Some mediaselectors may be parseable but have no formats (eg captions only).

This revision tries all possible mediaselectors and assembles the formats and subtitles found.

If any formats are found, the known exceptions ('notukerror', 'geolocation', 'selectionunavailable') are not propagated.
4 years ago
Sergey M․ 327593257c
[bbccouk] PEP8 4 years ago
Jay acc86c9a97
[bbc] Fix some tests 5 years ago
Jay b72305f078
[bbccouk] Extend _VALID_URL (closes #19200) 5 years ago
Sergey M․ 067aa17edf
Start moving to ytdl-org 5 years ago
Sergey M․ ee0ba927aa
Use compat_etree_Element 5 years ago
Sergey M․ f0228f56fb
[bbccouk] Make subtitles non fatal (#19651) 5 years ago
Sergey M․ 373941c5f0
[bbc] Add support for another embed pattern (closes #18643) 5 years ago
Sergey M․ 6f356cbbcf
[bbccouk] Extend _ID_REGEX (closes #17270) 6 years ago
Remita Amine b96b4be461 [bbc] add support for BBC Radio Play pages(closes #17022) 6 years ago
Sergey M․ 9283d4ea03
[bbccouk] Use expected_status 6 years ago
Sergey M․ 6d155707e6
[bbc] Add support for bbcthree (closes #16612) 6 years ago
Remita Amine 6b2d8c9182 [bbc.co.uk] fix extraction for 320k m3u8 streams
broken since 197224b7a4
7 years ago
Sergey M․ 197224b7a4
Fix some regexes 7 years ago
Sergey M․ 53647dfd0a
[bbccouk] Add support for w-prefixed ids (closes #14056) 7 years ago
Sergey M․ d3d45e0a45
[bbccouk] Add support for events URLs (closes #13893) 7 years ago
Sergey M․ 72d256c434
[bbccouk] Extend _VALID_URL 7 years ago
Sergey M․ b2ed954fc6
[bbccouk] Capture and output error message (closes #13518) 7 years ago
Sergey M․ 97067db2ae
[bbc] Add support for authentication 7 years ago
Remita Amine 40fcba5edb improve coding style 7 years ago
Sergey M․ 6240925b40
[bbccouk] Treat bitrate as audio+video bitrate in media selector 7 years ago
Sergey M․ 964744af95
[bbccouk] Skip unrecognized formats in media selector (#12701) 7 years ago
Sergey M․ 1af959ef9f
[bbccouk] Add support for https protocol in media selector (closes #12701) 7 years ago
Remita Amine 97eb9bd2ac [bbc] extract m3u8 formats with 320k audio 7 years ago
stepshal 925194022c
Improve some _VALID_URLs 8 years ago
Sergey M․ 4f640f2890
[bbc:playlist] Fix tests 8 years ago
Sergey M․ 254e64a20a
[bbc:playlist] Add support for pagination (Closes #10349) 8 years ago
Sergey M․ 522f6c066d
[bbc] Add proper default to _search_json_ld call 8 years ago
Sergey M․ 998f094452
[bbc] Remove proxy from test 8 years ago
Sergey M․ aaa42cf0cf
[bbc] PEP 8 8 years ago
Sergey M․ 9fb64c04cd
[bbc] Add support for morph embeds (Closes #10239) 8 years ago
Remita Amine f9622868e7 [bbc] preserve format_id backward compatibility 8 years ago
Remita Amine ad152e2d95 [bbc] fix test 8 years ago
Remita Amine b0af12154e [bbc] reduce requests and improve format_id 8 years ago
Remita Amine a7e5f27412 [bbc] improve extraction
- extract f4m and dash formats
- improve format sorting and listing
- improve extraction of articles with `otherSettings.playlist`
8 years ago
Sergey M․ 9158af16cc
[bbc.co.uk:iplayer:playlist] Add support for group URLs 8 years ago
Sergey M․ c6668e4ad1
[bbc.co.uk:iplayer:playlist] Skip unavailable test 8 years ago
Sergey M․ 05087d1b4c
[bbc] Improve extraction from sxml playlists 8 years ago
Sergey M․ b1ea680270
Revert "[bbc] extract more and better qulities from Unified Streaming Platform m3u8 manifests"
This reverts commit 0385aa6199.
8 years ago
Remita Amine 35ec86689c [bbc] extract only the original Unified Streaming Platform m3u8 manifests
0385aa6199 (commitcomment-18233275)
manifests with higher birate require more time to check formats
8 years ago
Remita Amine 0385aa6199 [bbc] extract more and better qulities from Unified Streaming Platform m3u8 manifests 8 years ago
Yen Chi Hsuan 573c35272f
[bbc] Skip a geo-restricted test case 8 years ago
Sergey M․ ded7511a70
[bbccouk] Add support for playlists (Closes #9812) 8 years ago
Yen Chi Hsuan 8c65e4a527
[bbc] Fix a test 8 years ago
Sergey M․ bbc26c8a01 [bbc] Set vcodec to none for audio formats 8 years ago
Sergey M․ a1cf3e38a3 [bbc] Extend vpid regex (Closes #9003) 8 years ago