Rename the DLsite works and download the cover If required.
- Download the binary release pack and run .exe or run python script by yourself.
- There are two versions:
- GUI ver. => dlsite_renamer.py(.exe)
- CLI ver. => dlsite_renamer-cli.py(.exe)
Install requirements:
- Install python3
- Install pip
pip install lxml
pip install tkintertable
pip install requests
Keyword:"workno", "circle", "title", "cv", "author", "work_age", "release_date", "type", 模板中的這8個關鍵字將會被程式替換
關鍵字分別代表:
- workno: 作品編號
- circle: 社團/公司名
- title: 標題
- cv: 聲優
- author: 作者
- work_age: 年齡指定
- release_date: 發售日
- type: 作品形式
Default template: "workno title "
例如: VJ009178 英雄伝説 零の軌跡
User defined template: 請修改 "config.json" 中對應的 "type" 來替換自訂規則 "to", 若無定義則使用默認模板
作品編號意義如下(僅供大略參考)
RJ開頭 => 音聲/音樂 作品
BJ開頭 => 書 作品
VJ開頭 => 遊戲 作品
例如:
"type": "vj"
"to": "(type)(work_age)[release_date][workno][circle] title "
重命名前:[不必要的前綴] VJ009178 零.軌跡 (要刪掉的後綴)
重命名後:(ゲーム)(全年齢)[150417][VJ009178][Falcom] 英雄伝説 零の軌跡
config.json範例
{
"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 "
}
]
}
- config.json 文件使用 UTF-8 編碼, 請不要用 Windows 系統自帶的記事本進行編輯,推薦使用專業的文件編輯器,例如: Notepad3, Notepad++, vscode
- 去除標題中【】之間的內容主要用於去掉不必要的標註,可多加利用~
- 若封面(cover.jpg)已存在資料夾中,則會自動跳過下載
usage: dlsite_renamer-cli.py [-h] [-d] [-c] -i PATH
Renamer for DLsite works v3.0
optional arguments:
-h, --help show this help message and exit
-d, --DEL delete string in 【】
-c, --COVER download cover
-i PATH, --PATH PATH path for processing