Skip to content

Batch rename the DLsite works with custom pattern and download the cover If required.

Notifications You must be signed in to change notification settings

ch010060/DLsite_Renamer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DLsite_Renamer

GUI DEMO

Purpose

Rename the DLsite works with custom pattern and download the cover If required.

How to use:

  1. Download the binary release pack and run .exe or run python script by yourself.
  2. There are two versions:
    1. GUI ver. => dlsite_renamer.py(.exe)
    2. CLI ver. => dlsite_renamer-cli.py(.exe)

Install requirements:

  1. Install python3
  2. Install pip
pip install lxml
pip install tkintertable
pip install requests

Custom pattern:

We will replace the filename with these keywords.

Keyword List:

  1. workno: 作品番號
  2. circle: サークル/會社
  3. title: 標題
  4. cv: 声優
  5. author: 著者
  6. work_age: 年齡指定
  7. release_date: 販売日
  8. type: 作品形式

Default template: "workno title"

E.g, VJ009178 英雄伝説 零の軌跡

User defined template: Please modify the "config.json" to customize your "type" and "to" replace rules, or use default template

The prefix code meaning of DLsite works:
RJ(68 digits) => ASMR/Music
BJ(6
8 digits) => Doujin/Comic
VJ(6~8 digits) => Game

E.g,

"type": "vj"        
"to": "(type)(work_age)[release_date][workno][circle] title "     

Before:[prefix_12345] VJ009178 零.軌跡 (postfix-56789)

After:(ゲーム)(全年齢)[150417][VJ009178][Falcom] 英雄伝説 零の軌跡

config.json example

{
	 "replace_rules":
	 [
		{
            		"type": "rj",
			"from": "",
			"to": "workno title (CV. cv) "
		},
		{
            		"type": "bj",
			"from": "",
			"to": "[workno][circle (author)] title "
		},
		{
            		"type": "vj",
			"from": "",
			"to": "[workno][circle] title "
		}
	]
}

Notice:

  1. Please modify the config.json under UTF-8. Notepad3
  2. You can delete the unnecessary string between【】in filename if required.
  3. Skip download the "cover.jpg" if it does exist.
  4. Special character processing: Convert the "Windows invalid character" to fullwidth form, multilple spaces to single space.

(Optional) CLI version without GUI and loop:

usage: dlsite_renamer-cli.py [-h] [-d] [-c] [-r] -i PATH

Renamer for DLsite works v3.4

optional arguments:
  -h, --help            show this help message and exit
  -d, --DEL             delete string in 【】
  -c, --COVER           download cover
  -r, --RECUR           recursively processing
  -i PATH, --PATH PATH  path for processing

About

Batch rename the DLsite works with custom pattern and download the cover If required.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%