-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
[peertube] handle new video URL format #29475
base: master
Are you sure you want to change the base?
Conversation
videos\.tcit\.fr| | ||
peertube\.cpy\.re| | ||
canard\.tube | ||
)''' | ||
_UUID_RE = r'[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}' | ||
_UUID_RE = r'[\da-zA-Z]{22}|[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}' |
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.
Wouldn't this break the old UUID's, assuming old ones are still in use ?
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.
Hi,
No, the regex should be able to detect new "short uuids" (22 characters) or classic uuids
To prevent potential regression, I added tests that mix the new/old URLs:
Closes #722, ytdl-org/youtube-dl#29782 Original PR: ytdl-org/youtube-dl#29475 Authored by: Chocobozzz
* 'master' of https://github.com/yt-dlp/yt-dlp: [peertube] handle new video URL format Closes #722, ytdl-org/youtube-dl#29782 Original PR: ytdl-org/youtube-dl#29475 Authored by: Chocobozzz [adobepass] Fix Verizon SAML login (#743) Fix `add_info_extractor` when used via API Bug from: 251ae04 [lazy_extractor] Create instance only after pre-checking archive [lazy_extractor] Import actual class if an attribute is accessed [extractor] Show video id in error messages if possible [extractor] Better error message for DRM (#729) [youtube] Add av01 itags to known formats list (#747) [bitchute] Fix test (#758) [lazy_extractors] Fix `suitable` and add flake8 test [utils] Add `parse_qs` [youtube] Add `shorts` to `_VALID_URL` Normally the generic extractor will redirect the URL, but the cookies consent screen may sometimes appear instead Don't try to merge with final extension [extractor] Common function `_match_valid_url`
Closes yt-dlp#722, ytdl-org/youtube-dl#29782 Original PR: ytdl-org/youtube-dl#29475 Authored by: Chocobozzz
Hey, just patched it against the latest in pypi and it works :) |
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
/w/
instead of/videos/watch
) that will be released in 3.3 (https://github.com/Chocobozzz/PeerTube/blob/develop/CHANGELOG.md)og:platform
(unofficial) opengraph tag