diff --git a/src/Javinizer/javinizerSettings.json b/src/Javinizer/javinizerSettings.json new file mode 100644 index 00000000..c384acaf --- /dev/null +++ b/src/Javinizer/javinizerSettings.json @@ -0,0 +1,184 @@ +{ + "scraper": { + "movie": { + "r18": "true", + "r18zh": "true", + "javlibrary": "true", + "javlibraryja": "true", + "javlibraryzh": "true", + "javbus": "true", + "javbusja": "true", + "jav321": "true" + }, + "actress": { + "r18": "true", + "r18zh": "true" + } + }, + "multiThrottle": "5", + "moveToFolder": "true", + "renameFile": "true", + "maxTitleLength": "100", + "maxPathLength": "255", + "minFileSize": "0", + "includedFileExtension": [ + ".asf", + ".avi", + ".flv", + ".m4v", + ".mkv", + ".mp4", + ".mov", + ".rmvb", + ".wmv" + ], + "excludedFileString": [ + "*-trailer.*", + "*-5.*" + ], + "regexMatch": { + "enabled": "false", + "string": "([a-zA-Z|tT28]+-\\d+z{0,1}Z{0,1}e{0,1}E{0,1})(?:-pt){0,1}(\\d{1,2})?", + "idMatch": "1", + "ptMatch": "2" + }, + "file": { + "create": { + "nfo": "true", + "nfoPerFile": "true", + "actressImg": "true", + "thumbImg": "true", + "posterImg": "true", + "screenshotImg": "true", + "trailerVid": "true" + }, + "renameString": { + "file": "", + "folder": " [] - (<YEAR>)", + "poster": "folder", + "thumbnail": "fanart", + "trailer": "<ID>-trailer", + "nfo": "<ID>", + "screenshotFolder": "extrafanart", + "screenshotImg": "fanart", + "actorImgFolder": ".actors" + } + }, + "metadata": { + "required": [ + "actress", + "coverUrl", + "genre", + "id", + "maker", + "releaseDate", + "title" + ], + "priority": { + "actress": [ + "r18", + "javlibrary" + ], + "actressThumbUrl": [ + "r18" + ], + "alternateTitle": [ + "dmm" + ], + "coverUrl": [ + "r18", + "dmm", + "javlibrary" + ], + "description": [ + "dmm" + ], + "director": [ + "r18", + "javlibrary" + ], + "genre": [ + "r18", + "javlibrary" + ], + "id": [ + "r18", + "javlibrary" + ], + "label": [ + "r18", + "javlibrary" + ], + "maker": [ + "r18", + "javlibrary" + ], + "rating": [ + "dmm" + ], + "ratingCount": [ + "dmm" + ], + "releaseDate": [ + "r18", + "javlibrary", + "dmm" + ], + "releaseYear": [ + "r18", + "javlibrary", + "dmm" + ], + "runtime": [ + "r18", + "javlibrary", + "dmm" + ], + "series": [ + "r18" + ], + "screenshotUrl": [ + "r18", + "dmm" + ], + "title": [ + "r18", + "javlibrary" + ], + "trailerUrl": [ + "r18" + ] + }, + "displayName": "[<ID>] <TITLE>", + "seriesAsTag": "true", + "nameOrder": "first", + "convertAliasToOriginalName": "true", + "normalizeGenres": "true", + "ignoredGenres": [ + "Featured Actress", + "Hi-Def" + ] + }, + "location": { + "input": "C:\\Downloads\\Unsorted", + "output": "C:\\Downloads\\Sorted" + }, + "emby": { + "url": "192.168.0.1:8096", + "apiKey": "" + }, + "javlibrary": { + "username": "", + "sessionCookie": "", + "requestIntervalSec": "15", + "requestTimeoutSec": "90" + }, + "javlibrary.test": "true", + "admin": { + "log": { + "path": "x:\\git\\projects\\jav-organizer\\src\\javinizer\\javinizer.log", + "level": "DEBUG" + }, + "checkUpdate": "" + } +} diff --git a/src/Javinizer/settings.ini b/src/Javinizer/settings.ini deleted file mode 100644 index 0c8a2ed4..00000000 --- a/src/Javinizer/settings.ini +++ /dev/null @@ -1,123 +0,0 @@ -[Main] -scrape-r18=True -scrape-r18zh=False -scrape-dmm=True -scrape-javlibrary=True -scrape-javlibraryja=False -scrape-javlibraryzh=False -scrape-javbus=False -scrape-javbusja=False -scrape-jav321=False - -# Actress scrapers -scrape-actress-en=True -scrape-actress-ja=True - -[General] -# Maximum number of threads to sort with if parameter '-Multi' is applied (range 1-15) -multi-sort-throttle-limit=5 -move-to-folder=True -rename-file=True -# Available tags for file/folder rename string -# <ID> <TITLE> <STUDIO> <YEAR> <RELEASEDATE> <RUNTIME> <ACTORS> <LABEL> <ORIGINALTITLE> <SET> -# I do not recommend changing the filename other than <ID> as you may have to manually rename files if you need to re-sort them at a later date -rename-file-string="<ID>" -rename-folder-string="<ID> [<STUDIO>] - <TITLE> (<YEAR>)" -cms-displayname-string="[<ID>] <TITLE>" -actors-name-delimiter=", " -poster-file-string="folder" -thumbnail-file-string="fanart" -trailer-file-string="<ID>-trailer" -# nfo-file-string will only apply if create-nfo-per-file=False -nfo-file-string="<ID>" -screenshot-folder-string="extrafanart" -screenshot-img-string="fanart" -actorimg-folder-string=".actors" -# Max-title-length will limit the length of your <TITLE> string -max-title-length=100 -# Max-path-length will limit the sorting of a file if its full path is greater than this number -max-path-length=255 -# This option will allow Javinizer to ignore video files below a certain size (in MB) -minimum-filesize-to-sort=0 -included-file-extensions=asf,avi,flv,m4v,mkv,mp4,mov,rmvb,wmv -excluded-file-strings=*-trailer.*,*-5.* -# Allows you to use a regex string to match files if the default Javinizer matcher doesn't work -# (e.g. In regex ([a-zA-Z|tT28]+-\d+z{0,1}Z{0,1}e{0,1}E{0,1})(?:-pt){0,1}(\d{1,2})? , "[ABP-123] Title text-pt3.mp4", match 1 is "ABP-123, match 2 is "3") -regex-match=False -# The match value of your movie ID (e.g. "ID-112") -regex-id-match=1 -# The match value of your movie part number (e.g. "2") -regex-pt-match=2 -regex=([a-zA-Z|tT28]+-\d+z{0,1}Z{0,1}e{0,1}E{0,1})(?:-pt){0,1}(\d{1,2})? - -[Metadata] -# General metadata options -# If you use Emby/Jellyfin, create-nfo-per-file is required (nfo is required to have the same filename) -create-nfo=True -create-nfo-per-file=True -download-thumb-img=True -# Download-poster-img requires download-thumb-img to be true -download-poster-img=True -download-screenshot-img=False -download-trailer-vid=False -download-actress-img=False -translate-description=True -# View language codes: https://developers.google.com/admin-sdk/directory/v1/languages -translate-description-language=en -# Use this if you want R18 series names to be set as clickable tag in Emby. If you primarily use Plex, you can set this to false. -add-series-as-tag=False -# True = FirstName LastName / False = LastName FirstName -first-last-name-order=False -# This option will convert actress names matching 'Alias' in r18-thumbs.csv to their original full name -convert-alias-to-originalname=True -# This will convert all JavLibrary genres to their R18 counterparts to keep a consistent genre schema. If you want to use JAVLibrary genres, set this to false. -normalize-genres=True -# List of genres to ignore in comma separated format (no spaces) -ignored-genres="Featured Actress,Hi-Def" - -# Metadata scraping priorities -# Javinizer will fail the sort on a movie if any fields listed in required-metadata-fields is null -required-metadata-fields=coverurl,genre,id,maker,title,releasedate,releaseyear -actress-priority=r18,javlibrary -actressthumburl-priority=r18 -alternatetitle-priority=dmm -coverurl-priority=r18,dmm,javlibrary -description-priority=dmm -director-priority=r18,javlibrary -genre-priority=r18,javlibrary -id-priority=r18,javlibrary -label-priority=r18,javlibrary -maker-priority=r18,javlibrary -rating-priority=dmm -ratingcount-priority=dmm -releasedate-priority=r18,javlibrary,dmm -releaseyear-priority=r18,javlibrary,dmm -runtime-priority=r18,javlibrary,dmm -series-priority=r18 -screenshoturl-priority=r18,dmm -title-priority=r18,javlibrary -trailerurl-priority=r18 - -[Locations] -# These locations will only be used if you are running Javinizer with the -Apply parameter -input-path="C:\Downloads\Unsorted" -output-path="C:\Downloads\Sorted" - -[Emby/Jellyfin] -# You can create an Emby/Jellyfin API key under Dashboard -> Advanced -> Security -server-url=192.168.0.1:8096 -server-api-key= - -[JavLibrary] -username= -session-cookie= -request-interval-sec=15 -request-timeout-sec=90 - -[Other] -# Log path will default to the javinizer.log file inside your module directory -log-path= -check-updates=False -verbose-shell-output=True -debug-shell-output=False -module-psm1-path=