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

renamerOnUpdate throwing out errors on dryrun #466

Open
rlab88 opened this issue Nov 19, 2024 · 1 comment
Open

renamerOnUpdate throwing out errors on dryrun #466

rlab88 opened this issue Nov 19, 2024 · 1 comment
Labels
RenamerOnUpdate related to the RoU plugin

Comments

@rlab88
Copy link

rlab88 commented Nov 19, 2024

I just set up RoU and went to test it out on a single file during dryrun, but the stash log is showing errors when I hit "organize" on that file. Seems to be errors with code within the renamerOnUpdate.py, and not my config.py file, though I'm sure if what's in my config file could cause this if I made a mistake there. Has this plugin been working right for others lately? I saw the "known issue for V24" pinned at the top, and wondering if there hasn't been an update to fix that yet.

Here are the logs:

2024-11-19 14:11:21Error [Plugin / renamerOnUpdate] AttributeError: 'set' object has no attribute 'get'
2024-11-19 14:11:21Error [Plugin / renamerOnUpdate] ^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-11-19 14:11:21Error [Plugin / renamerOnUpdate] if config.studio_templates.get(current_studio["name"]):
2024-11-19 14:11:21Error [Plugin / renamerOnUpdate] File "C:\Users\Plex.stash\plugins\community\renamerOnUpdate/renamerOnUpdate.py", line 397, in get_template_filename
2024-11-19 14:11:21Error [Plugin / renamerOnUpdate] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-11-19 14:11:21Error [Plugin / renamerOnUpdate] template["filename"] = get_template_filename(stash_scene)
2024-11-19 14:11:21Error [Plugin / renamerOnUpdate] File "C:\Users\Plex.stash\plugins\community\renamerOnUpdate/renamerOnUpdate.py", line 1269, in renamer
2024-11-19 14:11:21Error [Plugin / renamerOnUpdate] renamer(FRAGMENT_SCENE_ID)
2024-11-19 14:11:21Error [Plugin / renamerOnUpdate] File "C:\Users\Plex.stash\plugins\community\renamerOnUpdate/renamerOnUpdate.py", line 1594, in
2024-11-19 14:11:21Error [Plugin / renamerOnUpdate] Traceback (most recent call last):
2024-11-19 14:11:21Error [Plugin / renamerOnUpdate] main function error: 'set' object has no attribute 'get'
2024-11-19 14:11:21Info [Plugin / renamerOnUpdate] Dry mode on

@rlab88
Copy link
Author

rlab88 commented Nov 19, 2024

This seems to be specific to that line of code. I commented out the section in renamerOnUpdate.py that renames by studio tag (contains the line highlighted in the log) since I dont plan on using that method, and now it works fine. Seems like this could be an easy fix if someone can rewrite that line and use something other that "get" for what it's trying to do.

@feederbox826 feederbox826 added the RenamerOnUpdate related to the RoU plugin label Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RenamerOnUpdate related to the RoU plugin
Projects
None yet
Development

No branches or pull requests

2 participants