Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
billylarsson authored Dec 1, 2021
1 parent a2801df commit 8e3526a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bscripts/cover_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,7 @@ def download_cover_then_set(self, db_input):
if not self.cover_path:
t.start_thread(
slave_fn=self.download_imdb_cover,
slave_args=db_input,
slave_kwargs=dict(db_input=db_input),
master_fn=download_cover_then_set,
master_args=(self, db_input,)
)
Expand Down Expand Up @@ -872,7 +872,8 @@ def another_hack(self):
self.rating_widget.gather_rating(data[0]) # todo avoid these hacks

if not self.get_cover_from_cache(db_input=data[0], download=False): # False, dont want to use main thread
t.start_thread(self.download_imdb_cover, slave_args=data[0], master_fn=another_hack, master_args=self)
t.start_thread(self.download_imdb_cover,
slave_kwargs=dict(db_input=(data[0])), master_fn=another_hack, master_args=self)
else:
another_hack(self)
else:
Expand Down

0 comments on commit 8e3526a

Please sign in to comment.