Skip to content

Commit

Permalink
update search
Browse files Browse the repository at this point in the history
  • Loading branch information
meisnate12 committed Dec 11, 2024
1 parent 8c094ca commit 412b5f3
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Kometa Media Stinger Ratings

Last generated at: December 11, 2024 07:28 PM UTC
Last generated at: December 11, 2024 08:13 PM UTC

This is an autogenerated list for mapping TMDb IDs to Media Stinger Ratings for use with [Kometa](https://github.com/Kometa-Team/Kometa).

Expand Down
12 changes: 8 additions & 4 deletions stinger.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,19 @@
tmdb_item = tmdb.movie(override[title])
else:
try:
searches = tmdb.movie_search(search_title, year=search_year)
searches = tmdb.movie_search(search_title, primary_release_year=search_year)
tmdb_item = searches.results[0]
except TMDbException:
try:
searches = tmdb.movie_search(search_title)
searches = tmdb.movie_search(search_title, year=search_year)
tmdb_item = searches.results[0]
except TMDbException:
rows.append(("", rating_str, title, "WARNING IGNORED: TMDb ID Not Found"))
continue
try:
searches = tmdb.movie_search(search_title)
tmdb_item = searches.results[0]
except TMDbException:
rows.append(("", rating_str, title, "WARNING IGNORED: TMDb ID Not Found"))
continue
tmdb_title = f"{tmdb_item.name} ({tmdb_item.release_date.year})"
if tmdb_title == title:
tmdb_title = ""
Expand Down
6 changes: 3 additions & 3 deletions stingers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
13335: 4
672: 21
10592: -1
1487: 63
456740: 63
11887: -1
112336: 4
522931: 18
Expand Down Expand Up @@ -217,7 +217,7 @@
11649: 5
13051: 11
2123: 12
10625: 1
673593: 1
38055: 12
4566: 2
10139: 2
Expand Down Expand Up @@ -390,7 +390,7 @@
27581: 11
227973: 53
423: 4
30197: 4
9899: 4
7220: -1
14444: 4
865: 3
Expand Down
5 changes: 3 additions & 2 deletions tmdb_override.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"WALL-E (2008)": 10681
"Texas Chainsaw (2013)": 76617
"Pirate Radio (2009)": 18947
"Pirate Radio (2009)": 18947
"Resident Evil: The Final Chapter (2017)": 173897
"The Green Inferno (2015)": 171424

0 comments on commit 412b5f3

Please sign in to comment.