question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

BBC Sounds - Upgrade to V6 of BBC Open Live API (open.live.bbc.co.uk) and Fix Timeouts During Extraction and Eliminate Port 80 Requests

See original GitHub issue

Checklist

  • I’m reporting a broken site support issue
  • I’ve verified that I’m running youtube-dl version 2020.12.29
  • I’ve checked that all provided URLs are alive and playable in a browser
  • I’ve checked that all URLs and arguments with special characters are properly quoted or escaped
  • I’ve searched the bugtracker for similar bug reports including closed ones
  • I’ve read bugs section in FAQ

Verbose log

ytdl --verbose https://www.bbc.co.uk/sounds/play/m000qlyg
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--verbose', 'https://www.bbc.co.uk/sounds/play/m000qlyg']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2020.12.29
[debug] Python version 3.9.1 (CPython) - Linux
[debug] exe versions: ffmpeg 4.3.1, ffprobe 4.3.1
[debug] Proxy map: {}
[bbc.co.uk] m000qlyg: Downloading video page
[bbc.co.uk] m000qlyg: Downloading playlist JSON
[bbc.co.uk] m000qlyf: Downloading media selection XML
[bbc.co.uk] m000qlyf: Downloading MPD manifest
[bbc.co.uk] m000qlyf: Downloading m3u8 information
WARNING: Failed to download m3u8 information: <urlopen error [Errno 60] Operation timed out>
[bbc.co.uk] m000qlyf: Downloading m3u8 information
...

Description

BBC Sounds (including programme and sounds urls) get stuck at the “Downloading m3u8 information” stage (at least here outside the UK) and loops on “Operation timed out” until eventually (sometimes) extracting (this is after making requests to aod-dash-ww-live.akamaized.net or aod-hls-ww.live.bbcfmt.hs.llnwd.net). I note that youtube-dl still uses v5 of the Open Live MediaSelector API (open.live.bbc.co.uk) as opposed to v6 which returns in JSON.

Something seems to be going wrong regarding extraction of the media URLs (href in the API output from https://open.live.bbc.co.uk/mediaselector/6/select/version/2.0/mediaset/iptv-all/vpid/VPID where the corresponding VPID is found using https://bbc.co.uk/programmes/PID/playlist.json). I have managed to make a simple shell script call the APIs manually and play/extract instantly, so surely this should not be that difficult to implement…

I also noted that the extractor was making requests on port 80 at times as well as 443 to all the relevant APIs (open.live.bbc.co.uk, bbc.co.uk, aod-hls-ww.live.bbcfmt.hs.llnwd.net, etc…) which seems unnecessary and something which should be eliminated since all the endpoints support TLS.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
dirkfcommented, Mar 2, 2021

None of the quoted test URIs/URLs are active now (404) because the BBC has forgotten the point of them.

Also, I agree with the comment above.

Unless an active test URL is provided, I think this issue could be closed.

0reactions
Vangelis66commented, Mar 2, 2021

@dirkf wrote:

None of the quoted test URIs/URLs are active now (404) because the BBC has forgotten the point of them.

When a BBC radio/audio programme has expired and is no longer available on BBC Sounds as AOD, the */sounds/play/* URIs will 404, or at least that’s my understanding of this… 😉 ; however, because every radio/audio programme (on Sounds) has been assigned a unique PID string (which lasts, practically, for ever), the */programmes/pid URIs remain valid, e.g.

https://www.bbc.co.uk/sounds/play/m000r3jn => https://www.bbc.co.uk/programmes/m000r3jn =>

BBC Radio 1 - Diplo and Friends - Damian Lazarus in the Mix
First broadcast:  Sun 10 Jan 2021 00:00 
Sorry, this episode is not currently available

… so, actually, the BBC hasn’t forgotten the details of that particular programme … Of course, trying now

youtube-dl https://www.bbc.co.uk/programmes/m000r3jn

you’ll simply get:

[bbc.co.uk] m000r3jn: Downloading video page
ERROR: Sorry, this episode is not currently available

BTW, thanks for the vote of confidence! 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Untitled
What to do after degree in biology, Hp 23bw monitor, Atlantis 3d live ... Prince boy names, Caes herois livro, Bbc wales tv...
Read more >
BBCiPlayer V1.6 (and higher) & BBCiPlayerExtra 2.0 (and ...
URL: iplayer://aod?mp3=http://open.live.bbc.co.uk/mediaselector/6/redir/version/2.0/mediaset/audio-nondrm-download/proto/http/vpid/m000h83d.
Read more >
Untitled
#opening Hp l26500 omas not reading, 1e verjaardagstaart, ... Cysts on head nhs, Mehren westerwald ferienwohnung, Protein values in food uk, ...
Read more >
Untitled
Marco lala dvds, Rihanna bad singing live, Greenford tesco pharmacy, ... Schumacher latest news bbc, Ks 2dfl, E vijf mode, Tatuagem de iemanja, ......
Read more >
BBC Radio 6 Music - YouTube
Visual treats from your friends at BBC Radio 6 Music.Listen live and find more audio and video clips at http://www.bbc.co.uk/6music.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found