ghomasHudson / Jellyfin-Auto-Collections

Automatically make jellyfin collections from IMDB, Letterboxd lists and more.
MIT License
60 stars 9 forks source link

IMDb 'popular' doesn't seem to work? #14

Closed thunderstorm654 closed 1 year ago

thunderstorm654 commented 1 year ago

Trying to use 'popular' with the imdb_chart.py script. Just throws an error:

thunderstorm@BH:~/Jellyfin-Auto-Collections-master$ python3 imdb_chart.py
Getting collections list...

Traceback (most recent call last):
  File "/home/thunderstorm/Jellyfin-Auto-Collections-master/imdb_chart.py", line 36, in <module>
    list_name = html.unescape(res.text.split('<h1 class="header">')[1].split("</h1>")[0])
IndexError: list index out of range

Is there another way to get the popular chart in or is this a bug?

In config.ini I just have imdb_chart_ids = ["popular"]

Thanks :)

thunderstorm654 commented 1 year ago

My bad, the chart name for most popular is 'moviemeter'. Adding here in case anyone else runs into it :)