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

[BUG] Script fails when database entry has incompatible studio #40

Open
Sadarex opened this issue Feb 29, 2024 · 1 comment
Open

[BUG] Script fails when database entry has incompatible studio #40

Sadarex opened this issue Feb 29, 2024 · 1 comment
Assignees

Comments

@Sadarex
Copy link

Sadarex commented Feb 29, 2024

Version

  • v0.9 Release

Environment

  • WSL/Ubuntu
  • PowerShell 7.4.1

Issue

My studio setup for performers looks like this:

  • OnlyFans (network)
  • performername (OnlyFans)

If the script tries to scrape Stash database entries and finds scenes which are linked to a studio named performername (OnlyFans) it results in this error:

InvalidOperation: /home/xxx/git/OFMetadataToStash/OFMetadataToStash.ps1:578
Line |
 578 |      $OnlyFansStudioID = $StashGQL_Result.data.findStudios.Studios[0]. …
     |      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Cannot index into a null array.
InvalidOperation: /home/xxx/git/OFMetadataToStash/OFMetadataToStash.ps1:631
Line |
 631 |          $OnlyFansStudioID = $StashGQL_Result.data.findStudios.Studios …
     |          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Cannot index into a null array.

Info: Added the OnlyFans studio to Stash's database
InvalidOperation: /home/xxx/git/OFMetadataToStash/OFMetadataToStash.ps1:714
Line |
 714 |              $PerformerID = $StashGQL_Result.data.findPerformers.perfo …
     |              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Cannot index into a null array.
InvalidOperation: /home/xxx/git/OFMetadataToStash/OFMetadataToStash.ps1:767
Line |
 767 |  …             $PerformerID = $StashGQL_Result.data.findPerformers.perfo …
     |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Cannot index into a null array.
- The metadata database for xxx hasn't changed since your last import! Skipping...

****** Import Complete ******
- Modified Scenes/Images: 0
- Scenes/Images that already had metadata: 0
- This script took 0.6043022 seconds to execute
@ALonelyJuicebox ALonelyJuicebox self-assigned this Mar 9, 2024
@ALonelyJuicebox
Copy link
Owner

This'll be addressed in the next release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants