-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
[bbc] Fix errors #23415
[bbc] Fix errors #23415
Conversation
Fixes errors on news articles, archive pages, etc
Fixes #23232 |
@dstftw @remitamine |
youtube_dl/extractor/bbc.py
Outdated
r'"vpid":"(%s)"' % self._ID_REGEX, | ||
r'"versionPid":"(%s)"' % self._ID_REGEX, | ||
r'"pid":"(%s)"' % self._ID_REGEX], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Provide concrete example URLs for each pattern. Add tests.
- Relax regexes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- "vpid" parameter is used for pre-existing test https://www.bbc.co.uk/bbcthree/clip/73d0bbd0-abc3-4cea-b3c0-cdae21905eb1
"pid" parameter is used for pre-existing test http://www.bbc.com/sport/0/football/33653409
Comments for these previously broken test have been amended to represent this. I can't remember what "versionPid" applied to so I removed it. - Relax in what way? I think this adequately captures programme ID from standard JSON data?
@dstftw @remitamine I have not seen any activity on this for weeks, please can you help move this along? |
Still awaiting review after 3 months. @dstftw @remitamine @phihag |
Any news about merging this? Thanks! @dstftw @remitamine @phihag |
Fixed news videos by implementing new window.__INITIAL_DATA__ data, and also fixed Morph videos.
flake8
Is this still relevant given c32a059 ? |
I believe this is now superseded. |
Fixes errors on news articles, archive pages, etc
Please follow the guide below
x
into all the boxes [ ] relevant to your pull request (like that [x])Before submitting a pull request make sure you have:
In order to be accepted and merged into youtube-dl each piece of code must be in public domain or released under Unlicense. Check one of the following options:
What is the purpose of your pull request?
Description of your pull request and other information
Fixes the errors on news article pages, archive pages, etc.