pull/35/head
meisnate12 4 years ago
parent 41c607dca2
commit 75eed3968f

@ -53,7 +53,7 @@ class RadarrAPI:
for t in self.send_get("{}tag".format(self.base_url)).json(): for t in self.send_get("{}tag".format(self.base_url)).json():
tag_cache[t["label"]] = t["id"] tag_cache[t["label"]] = t["id"]
for label in tag: for label in tag:
if label in tag_cache if label in tag_cache:
tag_nums.append(tag_cache[label]) tag_nums.append(tag_cache[label])
for tmdb_id in tmdb_ids: for tmdb_id in tmdb_ids:
try: try:

@ -54,7 +54,7 @@ class SonarrAPI:
for t in self.send_get("{}tag".format(self.base_url)).json(): for t in self.send_get("{}tag".format(self.base_url)).json():
tag_cache[t["label"]] = t["id"] tag_cache[t["label"]] = t["id"]
for label in tag: for label in tag:
if label in tag_cache if label in tag_cache:
tag_nums.append(tag_cache[label]) tag_nums.append(tag_cache[label])
for tvdb_id in tvdb_ids: for tvdb_id in tvdb_ids:
try: try:

Loading…
Cancel
Save