-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
[Feature Request] Channel Playlist JSON - Parse uploader & uploader ID from child playlist info #48
Comments
Taking it from child playlists is not possible. I will check if it is extractable directly from the channel webpage. Tip: If you want it done faster, you can help me, Go to the page in browser, open devtools, run
I removed that comment coz I realized that the behaviour is inconsistent. If the extractor sets the field to |
The following values appear to match at the channel root, /playlists, and /videos uploader_url seems to be the same as metadata, ownerUrls, 0 |
There is currently no way to distinguish a channel URL from a playlist one. So either we need such a way, or ensure that these fields won't cause trouble with playlists. I'll be busy for a few hrs. Will try to fix this in the evening |
These fields look good as well, thanks so much! |
Semantic search (Experimental)
Checklist
Description
Background Info
When running either a playlist or a channel search with JSON downloads enabled, the channel info itself is downloaded as one of the playlist JSON files. However, per your comment on https://github.com/pukkandan/yt-dlp/issues/36#issuecomment-769243923 being strikethrough now, I'm not sure if blank fields are skipped, written as null, etc. so I'm not sure if my request is possible.
When doing a channel download, the only playlist JSON that is downloaded is from the channel level. When doing a playlist download (either from /playlists or a direct playlist URL) the playlist JSON and the channel JSON are both downloaded.
The Ask
I'm wondering if we could auto parse the following fields and insert them into the channel level playlist JSON, perhaps based on the channel level playlist info
webpage_url
to redirect the parsing of information. Else, can we at least force mirror uploader, when blank, to equal title - this should only impact channel level playlists as everything else (regular playlists, videos, etc.) all have an uploader, right?Eg: A regular playlist contains this data (relevant lines only snipped):
But the channel playlist data only contains this (relevant lines only snipped):
Playlist downloaded channel JSON
Channel downloaded channel JSON
For some reason, YouTube is returning the uploader info of the channel itself as null. Can we force it to auto-match all of the child playlist data? Right now, the only file that is being created outside of my parent `%(uploader)s% folder in an 'NA' folder is the channel information itself. Ideally I just want this to get dropped into the uploader folder somehow, separate from the subfolders where I'm dropping the playlists.
TL;DR - Can we force
uploader
,uploader_id
, anduploader_url
, when null, to either properly parse any of the channel's child playlists for good information on YouTube or, more simply, force uploader to equaltitle
? Based on my output path below, it should wind up in the 'no playlist' channels folder.Current output config
The text was updated successfully, but these errors were encountered: