Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
phil65 committed Jan 11, 2016
1 parent 7cba822 commit 6332b15
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions resources/lib/local_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,17 +273,14 @@ def merge_with_local_movie_info(self, online_list=[], library_first=True, sortke
local_items = []
remote_items = []
for online_item in online_list:
found = False
index = False
if "imdb_id" in online_item and online_item["imdb_id"] in self.movie_imdbs:
index = self.movie_imdbs.index(online_item["imdb_id"])
found = True
elif online_item['title'].lower() in self.movie_titles:
index = self.movie_titles.index(online_item['title'].lower())
found = True
elif "OriginalTitle" in online_item and online_item["OriginalTitle"].lower() in self.movie_otitles:
index = self.movie_otitles.index(online_item["OriginalTitle"].lower())
found = True
if found:
if index:
local_item = self.get_movie(self.movie_ids[index])
if local_item:
try:
Expand Down

0 comments on commit 6332b15

Please sign in to comment.