Skip to content

Commit

Permalink
Revert
Browse files Browse the repository at this point in the history
  • Loading branch information
TEALC82 committed Jul 12, 2024
1 parent c1f94dc commit 7261129
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions stream_fusion/utils/metdata/tmdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,9 @@ def get_metadata(self, id, type):
languages=self.config['languages']
)
else:
if data["tv_results"][0]["origin_country"] == "JP":
atitles = [self.replace_weird_characters(data["tv_results"][0]["name"])]
parts = atitles.split(':', 1)
update_titles = parts[0].strip()
else:
update_titles = [self.replace_weird_characters(data["tv_results"][0]["name"])]

result = Series(
id=id,
titles=update_titles,
titles=[self.replace_weird_characters(data["tv_results"][0]["name"])],
season="S{:02d}".format(int(full_id[1])),
episode="E{:02d}".format(int(full_id[2])),
languages=self.config['languages']
Expand All @@ -45,13 +38,7 @@ def get_metadata(self, id, type):
if type == "movie":
result.titles.append(self.replace_weird_characters(data["movie_results"][0]["title"]))
else:
if data["tv_results"][0]["origin_country"] == "JP":
atitles = [self.replace_weird_characters(data["tv_results"][0]["name"])]
parts = atitles.split(':', 1)
update_titles = parts[0].strip()
result.titles.append(self.replace_weird_characters(update_titles))
else:
result.titles.append(self.replace_weird_characters(data["tv_results"][0]["name"]))
result.titles.append(self.replace_weird_characters(data["tv_results"][0]["name"]))

self.logger.info("Got metadata for " + type + " with id " + id)
return result

0 comments on commit 7261129

Please sign in to comment.