Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write Error Javinizer.ps1:927 #215

Closed
Rgoodermote opened this issue Feb 5, 2021 · 4 comments · Fixed by #218
Closed

Write Error Javinizer.ps1:927 #215

Rgoodermote opened this issue Feb 5, 2021 · 4 comments · Fixed by #218
Assignees
Labels
bug Something isn't working

Comments

@Rgoodermote
Copy link

Expected Behavior

Sorts, downloads, and all of that fun stuff

Current Behavior

Crash with poor explanation

Write-Error: C:\Program Files\PowerShell\Modules\Javinizer\2.3.1\Public\Javinizer.ps1:927
Line |
927 | … Write-JVLog -Write:$script:JVLogWrite -LogPath $script:JV …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| [Javinizer] Error occurred when getting local movies in [D:\JAV\Unsorted]: Cannot convert the
| "System.Object[]" value of type "System.Object[]" to type "System.Char".

Steps to Reproduce (for bugs)

Run Javinizer -Path "D:\JAV\Unsorted" -DestinationPath "D:\JAV\Sorted" -Recurse or just Javinizer in folder you want sorted

Your Environment

  • Module version used: 2.3.1
  • Operating System and PowerShell version: Windows 10 (up to date) and Powershell 7.1.1
@jvlflame
Copy link
Collaborator

jvlflame commented Feb 5, 2021

That happens when the filematcher breaks due to a filename it can't parse correctly. Test with smaller batches of files.

@Rgoodermote
Copy link
Author

Yup, that was it. Honestly not the cause I was expecting.

@Rgoodermote
Copy link
Author

I forgot to say why I was getting this, for those in the future who may run into this. I found that a multipart DVD was causing the issue. I changed the naming scheme to be [ID]-pt[increment]. So basically, OFJE-291CD1A became OFJE-291-pt1 and so on. This fixed this issue pretty quick. Only found out which one it was by doing smaller batches, as suggested.

@jvlflame
Copy link
Collaborator

jvlflame commented Feb 5, 2021

Yup, I thought I had fixed this issue but edge case file naming keeps creeping up on me. I'll see if I can add a better error handling on that.

@jvlflame jvlflame added the bug Something isn't working label Feb 10, 2021
@jvlflame jvlflame self-assigned this Feb 10, 2021
@jvlflame jvlflame added this to Done in 2.4.0 Feb 10, 2021
@jvlflame jvlflame mentioned this issue Feb 11, 2021
jvlflame added a commit that referenced this issue Feb 11, 2021
* Add clean id for javdb match

* Add null trailer url check for javdb

* Fix strict matchmaking in dmm url scraper (#214)

* Add additional cleaning strings

* Update r18 contentid match to five trailing numbers

* Add debug error for invalid multi-part match (#215)

* Remove logging on invalid path warnings

* Update filematcher to clean dvd id to content id

* Fix javlibrary ratings not returning as null

* Fix Ono Rikka in thumbcsv (#216)

* Change to always check valid javlibrary coverurl

* Add additional error checks in UpdateModule

* Update thumbcsv 2-10-21

* Update for 2.3.2
@jvlflame jvlflame removed this from Done in 2.4.0 Feb 11, 2021
@jvlflame jvlflame linked a pull request Feb 11, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants