Skip to content

Commit 692ad4f

Browse files
author
thomas
committed
Ignore trakt seasons in lists #66
1 parent 677ed62 commit 692ad4f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

plugins/trakt.py

+8-1
Original file line numberDiff line numberDiff line change
@@ -173,14 +173,21 @@ def get_list(list_id, config=None):
173173
else:
174174
item = {"media_type": item_types}
175175

176+
if item["media_type"] == "season":
177+
# Ignore seasons
178+
continue
179+
176180
if "ids" in item_data:
177181
meta = item_data
178182
else:
179183
meta = item_data[item["media_type"]]
180184

181185
if "imdb" in meta["ids"]:
182186
item["imdb_id"] = meta["ids"]["imdb"]
183-
item["title"] = meta["title"]
187+
try:
188+
item["title"] = meta["title"]
189+
except:
190+
breakpoint()
184191
if "year" in meta:
185192
item["release_year"] = meta["year"]
186193
items.append(item)

0 commit comments

Comments
 (0)