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

default aspect collections fail with TypeError #1618

Closed
chazlarson opened this issue Sep 26, 2023 · 0 comments
Closed

default aspect collections fail with TypeError #1618

chazlarson opened this issue Sep 26, 2023 · 0 comments
Assignees
Labels
bug Bug is with Plex Meta Manager status:not-yet-viewed I haven't reviewed the Feature or Bug yet

Comments

@chazlarson
Copy link
Contributor

Version Number

1.19.1

What branch are you on?

master

Describe the Bug

[2023-09-23 05:49:09,551] [plex_meta_manager.py:819]  [DEBUG]    | Traceback (most recent call last):                                                                 |
                                                                 |   File "//plex_meta_manager.py", line 677, in run_collection                                       |
                                                                 |     builder = CollectionBuilder(config, metadata, mapping_name, collection_attrs, library=library, extra=output_str) |
                                                                 |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
                                                                 |   File "/modules/builder.py", line 232, in __init__                                                |
                                                                 |     new_attributes = self.metadata.apply_template(name, self.mapping_name, self.data, self.data[methods["template"]], new_variables) |
                                                                 |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
                                                                 |   File "/modules/meta.py", line 476, in apply_template                                             |
                                                                 |     key = key.replace(f"<<{k}>>", v)                                                               |
                                                                 |           ^^^^^^^^^^^^^^^^^^^^^^^^^^                                                               |
                                                                 | TypeError: replace() argument 2 must be str, not ScalarFloat                                       |
                                                                 |                                                                                                    |
[2023-09-23 05:49:09,553] [plex_meta_manager.py:820]  [ERROR]    | Unknown Error: replace() argument 2 must be str, not ScalarFloat                                   |

v is something like 1.31 here.

Coercing it to a string fixes the issue.

Relevant Collection/Overlay/Playlist Definition

No response

Logs

No response

@chazlarson chazlarson added bug Bug is with Plex Meta Manager status:not-yet-viewed I haven't reviewed the Feature or Bug yet labels Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug is with Plex Meta Manager status:not-yet-viewed I haven't reviewed the Feature or Bug yet
Projects
None yet
Development

No branches or pull requests

2 participants