javinizer / Javinizer

(NSFW) Organize your local Japanese Adult Video (JAV) library
MIT License
599 stars 62 forks source link

Folder and titles not created correctly for two digit jav code #307

Closed damenootoko closed 2 years ago

damenootoko commented 2 years ago

Expected Behavior

created folder and move file to it under the name TOEN-47 / TOEN-047

Current Behavior

javinizer only create a folder named [] - (2021) and move the files inside it, while also renaming the title of all files (trailer, screenshot, banner) to empty character, with extension

Steps to Reproduce (for bugs)

this also happens with movies that only use two digit number notation (e.g. nuka)

jvlflame commented 2 years ago

I'm not seeing this issue on my side. Can you post your settings file so I can try to reproduce?

image

damenootoko commented 2 years ago

sure, here's my setting file

  "throttlelimit": 3,
  "location.input": "H:\\jav_batch",
  "location.output": "H:\\jav",
  "location.thumbcsv": "",
  "location.genrecsv": "",
  "location.uncensorcsv": "",
  "location.historycsv": "",
  "location.tagcsv": "",
  "location.log": "",
  "scraper.movie.aventertainment": false,
  "scraper.movie.aventertainmentja": false,
  "scraper.movie.dmm": false,
  "scraper.movie.dmmja": true,
  "scraper.movie.jav321ja": false,
  "scraper.movie.javbus": false,
  "scraper.movie.javbusja": false,
  "scraper.movie.javbuszh": false,
  "scraper.movie.javdb": false,
  "scraper.movie.javdbzh": false,
  "scraper.movie.javlibrary": true,
  "scraper.movie.javlibraryja": false,
  "scraper.movie.javlibraryzh": false,
  "scraper.movie.mgstageja": false,
  "scraper.movie.r18": true,
  "scraper.movie.r18zh": false,
  "scraper.movie.tokyohot": false,
  "scraper.movie.tokyohotja": false,
  "scraper.movie.tokyohotzh": false,
  "scraper.option.dmm.scrapeactress": false,
  "scraper.option.idpreference": "id",
  "scraper.option.addmaleactors": false,
  "match.minimumfilesize": 0,
  "match.includedfileextension": [
    ".asf",
    ".avi",
    ".flv",
    ".m4v",
    ".mkv",
    ".mp4",
    ".mov",
    ".rmvb",
    ".wmv"
  ],
  "match.excludedfilestring": [
    "^.*-trailer*",
    "^.*-5\\."
  ],
  "match.regex": false,
  "match.regex.string": "([a-zA-Z|tT28]+-\\d+[zZ]?[eE]?)(?:-pt)?(\\d{1,2})?",
  "match.regex.idmatch": 1,
  "match.regex.ptmatch": 2,
  "sort.movetofolder": true,
  "sort.renamefile": true,
  "sort.renamefolderinplace": false,
  "sort.maxtitlelength": 100,
  "sort.movesubtitles": false,
  "sort.create.nfo": true,
  "sort.create.nfoperfile": true,
  "sort.download.actressimg": false,
  "sort.download.thumbimg": true,
  "sort.download.posterimg": true,
  "sort.download.screenshotimg": false,
  "sort.download.trailervid": true,
  "sort.download.timeoutduration": 100000,
  "sort.format.groupactress": true,
  "sort.format.delimiter": ", ",
  "sort.format.file": "<ID>",
  "sort.format.folder": "<ID> [<STUDIO>] - <TITLE> (<YEAR>)",
  "sort.format.outputfolder": "",
  "sort.format.posterimg": [
    "folder"
  ],
  "sort.format.thumbimg": "fanart",
  "sort.format.trailervid": "<ID>-trailer",
  "sort.format.nfo": "<ID>",
  "sort.format.screenshotimg": "fanart",
  "sort.format.screenshotimg.padding": 1,
  "sort.format.screenshotfolder": "extrafanart",
  "sort.format.actressimgfolder": ".actors",
  "sort.metadata.nfo.addaliases": false,
  "sort.metadata.nfo.mediainfo": false,
  "sort.metadata.nfo.addgenericrole": true,
  "sort.metadata.nfo.altnamerole": false,
  "sort.metadata.nfo.translate": true,
  "sort.metadata.nfo.translate.module": "googletrans",
  "sort.metadata.nfo.translate.field": "description",
  "sort.metadata.nfo.translate.language": "en",
  "sort.metadata.nfo.translate.deeplapikey": "",
  "sort.metadata.nfo.translate.keeporiginaldescription": false,
  "sort.metadata.nfo.displayname": "[<ID>] <TITLE>",
  "sort.metadata.nfo.firstnameorder": false,
  "sort.metadata.nfo.actresslanguageja": false,
  "sort.metadata.nfo.unknownactress": true,
  "sort.metadata.nfo.originalpath": false,
  "sort.metadata.nfo.actressastag": false,
  "sort.metadata.nfo.preferactressalias": false,
  "sort.metadata.nfo.format.tag": "<SET>",
  "sort.metadata.nfo.format.tagline": "",
  "sort.metadata.nfo.format.credits": [],
  "sort.metadata.thumbcsv": true,
  "sort.metadata.thumbcsv.autoadd": true,
  "sort.metadata.thumbcsv.convertalias": true,
  "sort.metadata.genrecsv": false,
  "sort.metadata.genrecsv.autoadd": false,
  "sort.metadata.tagcsv": false,
  "sort.metadata.tagcsv.autoadd": false,
  "sort.metadata.genre.ignore": [
    "^Featured Actress",
    "^Hi-Def",
    ".*sale.*",
    ".*mosaic.*"
  ],
  "sort.metadata.requiredfield": [
    "id",
    "coverurl",
    "genre",
    "maker",
    "releaseDate",
    "title"
  ],
  "sort.metadata.priority.actress": [
    "javlibrary",
    "r18",
    "javbus",
    "mgstageja",
    "aventertainment"
  ],
  "sort.metadata.priority.alternatetitle": [
    "javlibraryja",
    "dmmja"
  ],
  "sort.metadata.priority.coverurl": [
    "r18",
    "javlibrary",
    "dmmja",
    "javbus",
    "mgstageja",
    "aventertainment"
  ],
  "sort.metadata.priority.description": [
    "r18",
    "dmmja",
    "mgstageja",
    "aventertainment"
  ],
  "sort.metadata.priority.director": [
    "javlibrary",
    "r18",
    "mgstageja",
    "aventertainment"
  ],
  "sort.metadata.priority.genre": [
    "javlibrary",
    "r18",
    "javbus",
    "mgstageja",
    "aventertainment"
  ],
  "sort.metadata.priority.id": [
    "javlibrary",
    "r18",
    "javbus",
    "mgstageja",
    "aventertainment"
  ],
  "sort.metadata.priority.contentid": [
    "r18",
    "dmmja"
  ],
  "sort.metadata.priority.label": [
    "javlibrary",
    "r18",
    "mgstageja",
    "aventertainment"
  ],
  "sort.metadata.priority.maker": [
    "javlibrary",
    "r18",
    "javbus",
    "mgstageja",
    "aventertainment"
  ],
  "sort.metadata.priority.releasedate": [
    "javlibrary",
    "r18",
    "dmmja",
    "javbus",
    "mgstageja",
    "aventertainment"
  ],
  "sort.metadata.priority.rating": [
    "dmmja",
    "javlibrary",
    "mgstageja"
  ],
  "sort.metadata.priority.runtime": [
    "javlibrary",
    "r18",
    "dmmja",
    "javbus",
    "mgstageja",
    "aventertainment"
  ],
  "sort.metadata.priority.series": [
    "r18",
    "r18zh",
    "mgstageja"
  ],
  "sort.metadata.priority.screenshoturl": [
    "r18",
    "javlibrary",
    "dmmja",
    "javbus",
    "mgstageja",
    "aventertainment"
  ],
  "sort.metadata.priority.title": [
    "r18",
    "javlibrary",
    "javbus",
    "mgstageja",
    "aventertainment"
  ],
  "sort.metadata.priority.trailerurl": [
    "r18",
    "dmmja"
  ],
  "emby.url": "http://192.168.0.1:8096",
  "emby.apikey": "",
  "javlibrary.baseurl": "http://n53i.com",
  "javlibrary.browser.useragent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36",
  "javlibrary.cookie.cf_chl_2": "8865368bf714672",
  "javlibrary.cookie.cf_chl_prog": "x11",
  "javlibrary.cookie.cf_clearance": "qoxH65AvnCMVqPn5Sibww5UXv3iF0pASCgVkyoh.ofM-1634811116-0-250",
  "javlibrary.cookie.session": "",
  "javlibrary.cookie.userid": "",
  "javdb.cookie.session": "",
  "proxy.enabled": false,
  "proxy.host": "",
  "proxy.username": "",
  "proxy.password": "",
  "web.favorites.genre": [],
  "web.favorites.tag": [],
  "web.sort.recurse": true,
  "web.sort.strict": false,
  "web.sort.interactive": true,
  "web.sort.update": false,
  "web.sort.force": false,
  "web.sort.preview": false,
  "web.sort.recursedepth": 2,
  "web.sort.confirm": false,
  "web.sort.manualsearch.aventertainment": false,
  "web.sort.manualsearch.aventertainmentja": false,
  "web.sort.manualsearch.dmm": false,
  "web.sort.manualsearch.dmmja": true,
  "web.sort.manualsearch.jav321ja": false,
  "web.sort.manualsearch.javbus": false,
  "web.sort.manualsearch.javbusja": false,
  "web.sort.manualsearch.javbuszh": false,
  "web.sort.manualsearch.javdb": false,
  "web.sort.manualsearch.javdbzh": false,
  "web.sort.manualsearch.javlibrary": true,
  "web.sort.manualsearch.javlibraryja": false,
  "web.sort.manualsearch.javlibraryzh": false,
  "web.sort.manualsearch.mgstageja": false,
  "web.sort.manualsearch.r18": true,
  "web.sort.manualsearch.r18zh": false,
  "web.theme": "light",
  "admin.log": true,
  "admin.log.level": "info",
  "admin.updates.check": true
}

now that i tested it again using the latest build, it doesn't happen

I've had this happen to other titles that only have two number digit, and the gui shows it's not matched, but with pictures and some basic details such as year made filled.