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: Collection Error: tmdb_discover collection_order attribute not supported #603

Closed
meisnate12 opened this issue Jan 12, 2022 Discussed in #602 · 0 comments · Fixed by #652
Closed

Bug: Collection Error: tmdb_discover collection_order attribute not supported #603

meisnate12 opened this issue Jan 12, 2022 Discussed in #602 · 0 comments · Fixed by #652
Assignees
Labels
bug:plex Bug is in Plex status:added-to-develop Feature Request or Bug Fix is in Develop

Comments

@meisnate12
Copy link
Member

Discussed in #602

Originally posted by tuxpeople January 12, 2022
Hi everyone

I'm hunting an error, but have not been successful so far. Therefore, I'd appreciated if someone could give me a hint:

template:

  genre:
    default:
      title: feature
      limit: 100
    tmdb_discover:
      with_genres: <<genre>>
      sort_by: vote_average.desc
      limit: <<limit>>
    imdb_list:
      - url: https://www.imdb.com/search/title/?title_type=<<title>>&release_date=1950-01-01,&user_rating=5.0,10.0&num_votes=100000,&genres=<<genre>>
        limit: <<limit>>
      - url: https://www.imdb.com/search/title/?title_type=<<title>>&release_date=1950-01-01,&user_rating=5.0,10.0&num_votes=100000,&genres=<<genre>>&sort=user_rating,desc
        limit: <<limit>>
    sort_title: +4_<<collection_name>>
    url_poster: <<poster>>
    visible_home: false
    visible_shared: true

use of template:

  Romance:
    template: {name: genre, genre: Romance, limit: 100, poster: https://theposterdb.com/api/assets/117306}
    summary: "Romance film can be defined as a genre wherein the plot revolves around the love between two protagonists. This genre usually has a theme that explores an issue within love, including but not limited to: love at first sight, forbidden love, love triangles, and sacrificial love. The tone of Romance film can vary greatly. Whether the end is happy or tragic, Romance film aims to evoke strong emotions in the audience."

Resulting error:

[2022-01-12 07:45:18,304] [util.py:216]               [INFO]     |                                    Romance Collection in Filme                                     |
[2022-01-12 07:45:18,307] [util.py:220]               [INFO]     |====================================================================================================|
[2022-01-12 07:45:18,286] [util.py:209]               [INFO]     |====================================================================================================|
[2022-01-12 07:45:18,310] [plex_meta_manager.py:750]  [INFO]     |                                                                                                    |
[2022-01-12 07:45:18,314] [util.py:216]               [INFO]     |================================== Validating Romance Attributes ===================================|
[2022-01-12 07:45:18,317] [builder.py:265]            [DEBUG]    |                                                                                                    |
[2022-01-12 07:45:18,323] [builder.py:266]            [DEBUG]    | Validating Method: template                                                                        |
[2022-01-12 07:45:18,326] [meta.py:83]                [DEBUG]    | Value: ordereddict([('name', 'genre'), ('genre', 'Romance'), ('limit', 100), ('poster', 'https://theposterdb.com/api/assets/117306')]) |
[2022-01-12 07:45:18,330] [builder.py:472]            [DEBUG]    |                                                                                                    |
[2022-01-12 07:45:18,333] [builder.py:473]            [DEBUG]    | Validating Method: summary                                                                         |
[2022-01-12 07:45:18,338] [builder.py:474]            [DEBUG]    | Value: Romance film can be defined as a genre wherein the plot revolves around the love between two protagonists. This genre usually has a theme that explores an issue within love, including but not limited to: love at first sight, forbidden love, love triangles, and sacrificial love. The tone of Romance film can vary greatly. Whether the end is happy or tragic, Romance film aims to evoke strong emotions in the audience. |
[2022-01-12 07:45:18,341] [builder.py:472]            [DEBUG]    |                                                                                                    |
[2022-01-12 07:45:18,346] [builder.py:473]            [DEBUG]    | Validating Method: tmdb_discover                                                                   |
[2022-01-12 07:45:18,349] [builder.py:474]            [DEBUG]    | Value: {'with_genres': 'Romance', 'sort_by': 'vote_average.desc'}                                  |
[2022-01-12 07:45:18,354] [builder.py:689]            [WARNING]  | Collection Warning: tmdb_discover limit attribute not found using 100 as default                   |
[2022-01-12 07:45:18,358] [builder.py:1684]           [WARNING]  | Collection Warning: sort_by attribute will run as collection_order                                 |
[2022-01-12 07:45:18,365] [util.py:162]               [DEBUG]    | Traceback (most recent call last):                                                                 |
                                                                 |   File "//plex_meta_manager.py", line 757, in run_collection
                                                                 |     builder = CollectionBuilder(config, library, metadata, mapping_name, no_missing, collection_attrs)
                                                                 |   File "/modules/builder.py", line 549, in __init__
                                                                 |     self._tmdb(method_name, method_data)
                                                                 |   File "/modules/builder.py", line 1099, in _tmdb
                                                                 |     raise Failed(f"{self.Type} Error: {method_name} {discover_final} attribute not supported")
                                                                 | modules.util.Failed: Collection Error: tmdb_discover collection_order attribute not supported
                                                                 | 
[2022-01-12 07:45:18,406] [util.py:159]               [ERROR]    | Collection Error: tmdb_discover collection_order attribute not supported
[2022-01-12 07:45:18,410] [plex_meta_manager.py:880]  [INFO]     | 
[2022-01-12 07:45:18,422] [util.py:209]               [INFO]     |====================================================================================================|
[2022-01-12 07:45:18,428] [util.py:216]               [INFO]     |                                    Finished Romance Collection                                     |
[2022-01-12 07:45:18,431] [util.py:216]               [INFO]     |                                    Collection Run Time: 0:00:00                                    |
[2022-01-12 07:45:18,453] [util.py:220]               [INFO]     |====================================================================================================|
[20

I just don't see the cause 🙈

Thanks!

@meisnate12 meisnate12 added the bug:plex Bug is in Plex label Jan 12, 2022
@meisnate12 meisnate12 self-assigned this Jan 12, 2022
meisnate12 added a commit that referenced this issue Jan 12, 2022
@meisnate12 meisnate12 added the status:added-to-develop Feature Request or Bug Fix is in Develop label Jan 12, 2022
@meisnate12 meisnate12 mentioned this issue Jan 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug:plex Bug is in Plex status:added-to-develop Feature Request or Bug Fix is in Develop
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant