-
-
Notifications
You must be signed in to change notification settings - Fork 5.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
Where is id taken from for archive [twitchClips] #4352
Comments
I can view the id using the json option > yt-dlp "https://clips.twitch.tv/PlayfulCoweringGooseStoneLightning--WzJYPuOxk4i3Qi0?tt_medium=my_clips" --cookies "twitch.tv_cookies.txt" -j
{"id": "3706803745", "display_id": "PlayfulCoweringGooseStoneLightning--WzJYPuOxk4i3Qi0", "title": "GommaGatto", "formats": [{"url": "https://production.ass{...} I even took a look at the extractor github.com/yt-dlp/yt-dlp/blob/current/yt_dlp/extractor/twitch.py, but I still can't understand how the id is obtained |
Presumably you used https://api.twitch.tv, which is not used in the clips extractor (and, in the one place in the module where it is used, it's used explicitly instead of via the class variable The clips extractor makes two GraphQL queries to https://gql.twitch.tv whose results, if successful, are JSON objects. The
This raises the question of where the value served by Twitch in the first two cases originates, but that is a secret of the site. |
Yes I used Helix, didn't think about GQL. Thank you, relooking at the extractor code now I understand.
Also, if I understood correctly, with that value you have no way to lookup the clip or obtain any information about it. |
If the archive ids are different b/w ytdl and yt-dlp, it is a bug. I will look into what can be done |
The ID processing for |
|
Now yt-dlp can recognize both the old and new archive ids as the same video |
Checklist
Please make sure the question is worded well enough to be understood
I have an old archive file created with youtube-dl, the format appears to still be the same, but the ids are different.
Excerpt of old archive file:
New archive of same clips:
I don't understand where the new id are taken from. Old ids were the numeric code in the video file name, for example the first clip name is
AT-cm|1203489334.mp4
.I can't find the new id anywhere in the clip web page or querying the api. Api response for first clip:
Provide verbose output that clearly demonstrates the problem
yt-dlp -vU <your command line>
)[debug] Command-line config
) and insert it belowComplete Verbose Output
The text was updated successfully, but these errors were encountered: