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

Converting IMDB id is slow #267

Closed
Alaksin opened this issue May 21, 2021 · 10 comments · Fixed by #277
Closed

Converting IMDB id is slow #267

Alaksin opened this issue May 21, 2021 · 10 comments · Fixed by #277
Assignees
Labels
bug Bug is with Plex Meta Manager

Comments

@Alaksin
Copy link

Alaksin commented May 21, 2021

I have this template

IMDb Genre:
    default:
      title: feature
      limit: 100
    imdb_list:
    - url: https://www.imdb.com/search/title/?title_type=<<title>>&user_rating=5.0,10.0&num_votes=100000,&genres=<<genre>>
      limit: <<limit>>
    - url: https://www.imdb.com/search/title/?title_type=<<title>>&user_rating=5.0,10.0&num_votes=100000,&genres=<<genre>>&sort=user_rating,desc
      limit: <<limit>>
    sort_title: ΩΩ1 <<collection_name>>
    sync_mode: sync
    collection_order: alpha
    name_mapping: "- Genres/<<collection_name>>"

and it is insanely slow compared to all my other collections. It takes about 15-20 minutes for one of these to run, and from looking at the output it looks like the IMDB id conversion is what takes time. Is there some way to speed this up? It takes more time for me to run the rest of my collections then it takes to run one IMDB collection, so it's kind of annoying having to literally spend hours for one refresh of my collection setup

@meisnate12
Copy link
Member

it should be caching the ids ill look into this

@meisnate12
Copy link
Member

so I ran Action on my system and it finished the collection in 1 minute 8 seconds do you have cache turned on?

@Alaksin
Copy link
Author

Alaksin commented May 21, 2021

I have this in my config.yml

settings:
  cache: true

@meisnate12
Copy link
Member

Can you post your meta.log?

@Alaksin
Copy link
Author

Alaksin commented May 21, 2021

2h48min runtime :S

meta.log

meisnate12 added a commit that referenced this issue May 21, 2021
@meisnate12
Copy link
Member

ok can you switch to the newest develop branch and try again

@Alaksin
Copy link
Author

Alaksin commented May 22, 2021

16m runtime now. Quite the improvement :)

@meisnate12
Copy link
Member

thats fantastic!

@Alaksin
Copy link
Author

Alaksin commented May 23, 2021

I made some more runs and I've noticed it takes quite a lot of time when it can't find the ids. The christmas collection for example has a lot of missing ids, and it took about 4 minutes, compared to maximum 30 seconds for the other genres

@meisnate12
Copy link
Member

theres not much i can do about that if you wanna add their imdb ids to tmdb in the proper place they would save and be quicker

@meisnate12 meisnate12 self-assigned this May 24, 2021
@meisnate12 meisnate12 added the bug Bug is with Plex Meta Manager label May 24, 2021
@meisnate12 meisnate12 mentioned this issue May 26, 2021
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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants