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

Duration filter not working? #1666

Closed
chrisbenincasa opened this issue Oct 18, 2023 · 4 comments
Closed

Duration filter not working? #1666

chrisbenincasa opened this issue Oct 18, 2023 · 4 comments
Assignees
Labels
bug Bug is with Plex Meta Manager status:not-yet-viewed I haven't reviewed the Feature or Bug yet

Comments

@chrisbenincasa
Copy link

chrisbenincasa commented Oct 18, 2023

Version Number

1.19.0

What branch are you on?

master

Describe the Bug

Filtering by runtime with seemingly simple template+collection not working as expected:

duration Uses the duration attribute to match using minutes

Example config:

templates:
  Radarr Only:
    build_collection: false
    schedule: daily
    radarr_add_missing: true
    filters:
      duration.gte: 60.0
    radarr_tag:
      - pmm
      - <<collection_name>>
collections:
  PTA:
    tmdb_director: 4762
    template: 
      name: Radarr Only

However, this adds releases such as: Ballchewer (2002) (TMDb: 704455) (runtime 1m) and Production Assistant (1992) (TMDb: 966259)

TMDB responde for ID=704455 (note runtime=1)
{
  "adult": false,
  "backdrop_path": null,
  "belongs_to_collection": null,
  "budget": 0,
  "genres": [],
  "homepage": "https://www.youtube.com/watch?v=vJ5Ooej_8EA",
  "id": 704455,
  "imdb_id": null,
  "original_language": "en",
  "original_title": "Ballchewer",
  "overview": "A short film directed by Paul Thomas Anderson.  Part of Adam Sandler's 'Meatball Series'.  Shot during the filming of  'Punch-Drunk Love'.",
  "popularity": 0.78,
  "poster_path": "/bsvYPrUscvLzDgojcljKv19ohIc.jpg",
  "production_companies": [],
  "production_countries": [],
  "release_date": "2002-11-01",
  "revenue": 0,
  "runtime": 1,
  "spoken_languages": [],
  "status": "Released",
  "tagline": "",
  "title": "Ballchewer",
  "video": false,
  "vote_average": 4.8,
  "vote_count": 5
}

Relevant Collection/Overlay/Playlist Definition

No response

Logs

No response

@chrisbenincasa chrisbenincasa added bug Bug is with Plex Meta Manager status:not-yet-viewed I haven't reviewed the Feature or Bug yet labels Oct 18, 2023
@YozoraXCII
Copy link
Contributor

You should be using duration.gte: 60 not duration.gte 60.0

@chazlarson
Copy link
Contributor

Wiki probably needs an update, since it implies decimals are OK:
image

@YozoraXCII
Copy link
Contributor

Wiki probably needs an update, since it implies decimals are OK: image

oh that's my bad then!

@chrisbenincasa
Copy link
Author

Thanks! I'll give it a shot tomorrow and report back.

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

4 participants