gallery-dlで使ってる設定とかメモ
設定の詳しい説明はhttps://github.com/mikf/gallery-dl/blob/master/docs/configuration.rstに全部書いてる
サイトごとの設定を書くときはまずgallery-dl --list-keywords <URL>
で使用可能な値を一覧で表示するといいかも
導入
自分はscoopを使っているので
|
|
他の環境はhttps://github.com/mikf/gallery-dl/?tab=readme-ov-file#installationを参考に
設定
https://github.com/mikf/gallery-dl/?tab=readme-ov-file#configuration
今回はWindowsなので%USERPROFILE%\gallery-dl\config.json
に書いていく
大まかに言うと
共通の設定はextractor.<オプション名>
サイトごとの設定はextractor.<サイト名>.<オプション名>
に記入していく
共通の設定
- デフォルトで作成されるgallery-dlフォルダーを作らない
https://github.com/mikf/gallery-dl/blob/master/docs/configuration.rst#extractorbase-directory - 負荷軽減のために待機時間を設定
https://github.com/mikf/gallery-dl/blob/master/docs/configuration.rst#extractorsleep
|
|
メタデータの保存
https://github.com/mikf/gallery-dl/issues/5096
|
|
.zipにまとめる場合
https://github.com/mikf/gallery-dl/blob/master/docs/configuration.rst#extractorpostprocessors
|
|
圧縮したいならzip.compression
をzip
とかにする
metadata.jsonもzipに含めるなら、files
にファイル名を指定する
https://github.com/mikf/gallery-dl/issues/6303#issuecomment-2404906035
|
|
OAuth(pixiv等)
https://github.com/mikf/gallery-dl/?tab=readme-ov-file#oauth
gallery-dl oauth:pixiv