Skip to content
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

Some STV Player downloads (only numbers after episode) fail to download #27630

Closed
5 tasks done
TIGHazard1 opened this issue Jan 2, 2021 · 5 comments
Closed
5 tasks done

Comments

@TIGHazard1
Copy link

Checklist

  • I'm reporting a broken site support
  • I've verified that I'm running youtube-dl version 2020.12.31
  • 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 issues including closed ones

Verbose log

NOT WORKING URL

youtube-dl.exe -v https://player.stv.tv/episode/4171/pride-of-scotland
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://player.stv.tv/episode/4171/pride-of-scotland']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2020.12.31
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.19041
[debug] exe versions: none
[debug] Proxy map: {}
[stv:player] 4171: Downloading JSON metadata
ERROR: Unable to download JSON metadata: HTTP Error 404: Not Found (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpabf7r3hs\build\youtube_dl\extractor\common.py", line 632, in _request_webpage
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpabf7r3hs\build\youtube_dl\YoutubeDL.py", line 2248, in urlopen
  File "C:\Python\Python34\lib\urllib\request.py", line 470, in open
  File "C:\Python\Python34\lib\urllib\request.py", line 580, in http_response
  File "C:\Python\Python34\lib\urllib\request.py", line 508, in error
  File "C:\Python\Python34\lib\urllib\request.py", line 442, in _call_chain
  File "C:\Python\Python34\lib\urllib\request.py", line 588, in http_error_default

WORKING URL

youtube-dl.exe -v https://player.stv.tv/episode/416h/emmerdale
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://player.stv.tv/episode/416h/emmerdale']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2020.12.31
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.19041
[debug] exe versions: none
[debug] Proxy map: {}
[stv:player] 416h: Downloading JSON metadata
[brightcove:new] 6218771372001: Downloading JSON metadata
[brightcove:new] 6218771372001: Downloading JSON metadata
[brightcove:new] 6218771372001: Downloading m3u8 information
[brightcove:new] 6218771372001: Downloading m3u8 information
[brightcove:new] 6218771372001: Downloading m3u8 information
[brightcove:new] 6218771372001: Downloading m3u8 information
[brightcove:new] 6218771372001: Downloading MPD manifest
[brightcove:new] 6218771372001: Downloading MPD manifest
[brightcove:new] 6218771372001: Downloading MPD manifest
[brightcove:new] 6218771372001: Downloading MPD manifest
[debug] Default format spec: best/bestvideo+bestaudio
[debug] Invoking downloader on 'https://manifest.prod.boltdns.net/manifest/v1/hls/v3/clear/1486976045/a377aec0-a06a-4753-bc32-bc1df2f31e7c/b8a4f60b-8982-4f8a-91ca-bf6e4f0ce116/2b70927e-ad9e-429e-8088-1be62f8ba229/10s/rendition.m3u8?fastly_token=NjAxNTQ3NWRfMjc4Y2FhNDFmNjZkYTEzMzgwYTAyMWFhMzU4OWQ1ODdhYTk2NzUzMDRjOTZjMjE3ZWU0YmU4MmYzOGRjOTRhNA%3D%3D'
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 281
[download] Destination: Emmerdale - Friday, January 1, 2021-6218771372001.mp4
[download] 100% of 1.24GiB in 02:04

Description

Some STV Player videos fail to download. Seems to only be ones with all numbers after episode. Previous requests have said this service needs an account but that may just be to browse the website itself. (registration requires a Scottish postcode)

@dstftw
Copy link
Collaborator

dstftw commented Jan 2, 2021

Please sign in to your STV account. If you don't have an account, create one now for free.

@dstftw dstftw closed this as completed Jan 2, 2021
@dstftw dstftw added the invalid label Jan 2, 2021
@TIGHazard1
Copy link
Author

@Vangelis66
Copy link

Vangelis66 commented Jan 3, 2021

With all due respect 😸 , this isn't an invalid bug report, but rather a duplicate of #23083,
which was filed more than a year ago...

I myself was recently bitten by this bug twice, latest time when trying to fetch:

https://player.stv.tv/episode/4125/jennifer-saunders-memory-lane

(will expire on 24 Dec 2021, so it's a perfect test case...).

As both @TIGHazard1 and @james-wallace-ghub (before him) have detailed, the STVPlayer InfoExtractor (STVPlayerIE) chokes only on programmes whose 4-character ID contains ALL four numbers (i.e. NO letters).
You don't otherwise need account credentials to download from STVPlayer (just be in one of the whitelisted regions). Though I understand an STV account might be needed for a dev to troubleshoot this further; @remitamine, you were the one to create the STVPlayerIE to begin with, could you be, once more ❤️ , kind enough to investigate
(I can supply STV account credentials, if asked by the devs, but not here, in a public spot...) ?

yt-dl (2021.01.03) states:

[stv:player] 4145: Downloading JSON metadata
ERROR: Unable to download JSON metadata: HTTP Error 404: Not Found

but my browser is indeed able to make the GET HXR request to:

https://player.api.stv.tv/v1/episodes/jennifer-saunders-memory-lane-20201223-2100/?groupToken=0071

STVbug

As a side note, STVPlayerIE uses brightcove:new IE under the hood, but I don't think the latter is linked, because yt-dl chokes right from the start...

Kindest regards 😄

@remitamine
Copy link
Collaborator

support for this URLs will be included in the next version.

@Vangelis66
Copy link

support for this URLs will be included in the next version.

Your promptness and high expertise are greatly appreciated 👍 👍
I just took a look into ac71fd5 and it wasn't an easy fix either...
Many congrats!

I just compiled from the master branch (py3.7.9, pyinstaller 4.1)
and your fix works magnificently here:

youtube-dl -F "https://player.stv.tv/episode/4125/jennifer-saunders-memory-lane" -v > verbose-stv-log.txt 2>&1

=> verbose-stv-log.txt

All the best!

PS: For completeness, could the invalid label here be replaced with a duplicate one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants