Closed ghost closed 2 months ago
It didn't like that many lines in the text box and my browser was lagging, so here is the rest from my config file:
{
"extractor":
{
"base-directory": "K:/Data/Art/gallery-dl",
"parent-directory": false,
"path-restrict": {
":" : "-",
"|" : "-",
"/" : "_",
"\\" : "_",
"*" : "",
"?" : "",
"\"" : "",
"<" : "[",
">" : "﹥]"
},
"postprocessors": [
{
"name": "ugoira",
"whitelist": ["pixiv", "danbooru"],
"extension": "gif",
"ffmpeg-args": ["-filter_complex", "[0:v] split [a][b];[a] palettegen [p];[b][p] paletteuse"],
"repeat-last-frame": false
}
],
"archive": "C:/Apps/Tools - Utilities/DL-Files/archive/{category}_archive.sqlite3",
"cookies": ["firefox"],
"cookies-update": true,
"proxy": null,
"skip": true,
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0",
"retries": 100,
"timeout": 30.0,
"verify": true,
"fallback": true,
"sleep": 0,
"sleep-request": 0,
"sleep-extractor": 0,
"path-replace": "_",
"path-remove": "\\u0000-\\u001f\\u007f",
"path-strip": "auto",
"extension-map": {
"jpeg": "jpg",
"jpe" : "jpg",
"jfif": "jpg",
"jif" : "jpg",
"jfi" : "jpg"
},
Started on individual extractors... Skipping down to ytdl extractor:
"ytdl":
{
"enabled": true,
"format": "bestvideo*+bestaudio/best",
"module": "yt_dlp",
"config-file" : null,
"generic": true,
"logging": true,
"raw-options":
{
"parse-metadata": "title:%(meta_title)s",
"S": "lang:en,width,hdr:DV,fps,acodec,asr,abr,channels,+size,br",
"sub-format": "ass/srt/vtt/best",
"write-subs": true,
"sub-langs": "en-US,ja-JP,en,ja,-live_chat",
"yes-playlist": true,
"no-overwrites": true,
"no-post-overwrites": true,
"retries": "infinite",
"fragment-retries": "infinite",
"merge-output-format": "mkv",
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/116.0",
"ffmpeg-location": "C:/Apps/Editors - Media/ffmpeg/bin/ffmpeg.exe",
"audio-multistreams":true
},
"postprocessors": [
{
"directory": "K:/Data/Art/gallery-dl (finished)/_META/ytdl",
"name": "metadata",
"mode": "custom",
"extension-format": "txt",
"content-format": ["{channel|uploader!C:?Channel or Uploader: //}{playlist:?\nPlaylist: '/' /}{playlist_index:? (/)/}","{fulltitle:?Title: '/'/}","{tags!S:?Tags: '/'/}","Height: {height}px","Width: {width}px","{webpage_url:?Link: //}","\n\n\n\n\n\n\n{description}"],
"event": "after"
}
],
"directory": ["{category!C}", "{channel|uploader!C}", "{playlist:?//}"],
"filename": "{channel|uploader!C} - {release_date[0:4]|upload_date[0:4]}-{release_date[4:6]|upload_date[4:6]}-{release_date[6:8]|upload_date[6:8]}, {playlist:?'/' /}{playlist_index:? (/), /}'{title!C}' - {subcategory!C}.{extension}"
},
And the downloader and output segments:
"downloader":
{
"filesize-min": null,
"filesize-max": null,
"mtime": true,
"part": true,
"part-directory": null,
"progress": 3.0,
"rate": null,
"retries": 4,
"timeout": 30.0,
"verify": true,
"http":
{
"adjust-extensions": true,
"headers": null
},
"ytdl":
{
"format": "bestvideo*+bestaudio/best",
"forward-cookies": true,
"config-file" : null,
"logging": true,
"module": "yt_dlp",
"outtmpl": null
}
},
"output":
{
"mode": "auto",
"progress": true,
"shorten": true,
"ansi": false,
"colors": {
"success": "1;32",
"skip" : "2"
},
"skip": false,
"log": null,
"format": {
"debug" : "debug: {message}",
"info" : "[{name}] {message}",
"warning": "Warning: {message}",
"error" : "ERROR: {message}"
}
},
"netrc": false
}
Just realized the formatting from copying to this issue is abysmal. Let me know if it's hard to read, and I will try to make it neater.
File "yt_dlp\YoutubeDL.py", line 3195, in process_info AssertionError
gallery-dl triggers this error by calling one of yt-dlp's functions with the wrong argument type. This probably happens when handling a playlist of playlists.
Thank you.
So I assume then that by trying to download a whole channel, EX: gallery-dl --verbose https://www.youtube.com/@ViralGenesis
, it is then compiling a playlist of playlists as it notes here:
[ytdl][debug] [youtube:tab] Downloading as multiple playlists, separated by tabs. To download as a single playlist instead, pass https://www.youtube.com/playlist?list=UUwuMwHtnseX2g4qFg5COlOA
Is there any way to download whole channels, then, by specifying the channel link? Or will I need to go and download each tab separate (IE. the videos tab, live, shorts, etc.)?
Using https://www.youtube.com/@ViralGenesis
as URL already downloads from all tabs, where each tab is given as a separate playlist by yt-dlp as I understand it, but gallery-dl combines them all into one big "playlist" anyway. Or you use https://www.youtube.com/playlist?list=UUwuMwHtnseX2g4qFg5COlOA as URL as stated by yt-dlp to have all channel videos in one real playlist.
Okay, thank you. Does gallery-dl -K <Youtube Channel>
provide that link so I don't need to attempt download to find it?
It provides channel_id
(UCwuMwHtnseX2g4qFg5COlOA) and channel_url
(https://www.youtube.com/channel/UCwuMwHtnseX2g4qFg5COlOA), which only need some small changes to become https://www.youtube.com/playlist?list=UUwuMwHtnseX2g4qFg5COlOA, but I'm pretty sure you can just use https://www.youtube.com/@ViralGenesis and get the same results.
For this channel, https://www.youtube.com/@ViralGenesis is only missing two offline live streams that never started from a few years ago. It would probably be best if you asked the actual yt-dlp devs what's the difference between the two or searched their issue tracker.
Okay. Thank you. I think I understand now.
Have a good day.
I've looked through my galler-dl config file, but I can't seem to figure out where I went wrong. I even did away with the yt-dlp config file and added all that data into gdl, but I still get the same error.