javinizer / Javinizer

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

The name order is reversed on the javlibrary site. #321

Closed javkim closed 2 years ago

javkim commented 2 years ago

Expected Behavior

ex) BAEM-013 actress is Asahi(last name) Ema(first name) r18 => Asahi Ema javlibrary => Asahi Ema

Current Behavior

r18 => Asahi Ema "LastName": "Asahi", "FirstName": "Ema", "JapaneseName": "朝陽えま", javlibrary => Ema Asahi "LastName": "Ema", "FirstName": "Asahi", "JapaneseName": "朝陽えま",

Steps to Reproduce (for bugs)

javinizer -opengui search baem-013 (checked r18, javlibrary)

Your Environment

javkim commented 2 years ago

Issue Fix maybe?? In file Scraper.Javlibrary.ps1 in line 257, 258 else { $lastName = ($enActress.Name -split ' ')[1] $firstName = ($enActress.Name -split ' ')[0] }

To else { $lastName = ($enActress.Name -split ' ')[0] $firstName = ($enActress.Name -split ' ')[1] }

I'm not good at english and code. is it safe? So far it's working fine.

jvlflame commented 2 years ago

Thanks for bringing up this issue. Javlibrary must have changed their page HTML so it broke it.

I will test the fix and report back.