mikf / gallery-dl

Command-line program to download image galleries and collections from several image hosting sites
GNU General Public License v2.0
11.35k stars 925 forks source link

remove sign ":" on folder name and file name #5981

Closed volatilaq closed 1 month ago

volatilaq commented 1 month ago

How to remove the ":" sign from folder names and file names. like this is my kemono config

"kemonoparty": { "metadata": true, "directory": ["{category}", "{service}", "{username} {user}", "{id} {title}"] "filename": "{id}{title}{num:>02}.{extension}"

example case I downloaded with the config above, I want to remove the ":" sign on the folder name and filename this result from my config

/root/artworks/kemonoparty/patreon/Gayuchi 99428866/109332186 Keqing [17P] Tier: God/109332186_Keqing [17P] Tier: God_02_Keqing-1.png

becomes

/root/artworks/kemonoparty/patreon/Gayuchi 99428866/109332186 Keqing [17P] Tier God/109332186_Keqing [17P] Tier God_02_Keqing-1.png

mikf commented 1 month ago

Use the path-restrict or path-remove options. {title:R://} instead of {title} should also work.

volatilaq commented 1 month ago

thanks solved