From 6eb5fa7ac719400a97c234f780d41d88c00c44e0 Mon Sep 17 00:00:00 2001 From: Timmy Welch Date: Mon, 4 Jul 2022 15:53:44 -0700 Subject: [PATCH] Fix #324 Co-authored-by: Mizaki --- comictaggerlib/comicvinetalker.py | 2 +- comictaggerlib/coverimagewidget.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/comictaggerlib/comicvinetalker.py b/comictaggerlib/comicvinetalker.py index 71fc00d..83e397a 100644 --- a/comictaggerlib/comicvinetalker.py +++ b/comictaggerlib/comicvinetalker.py @@ -777,7 +777,7 @@ class ComicVineTalker: # This async version requires the issue page url to be provided! self.issue_id = issue_id url_list = self.fetch_cached_alternate_cover_urls(issue_id) - if url_list is not None: + if url_list: ComicVineTalker.alt_url_list_fetch_complete(url_list) return diff --git a/comictaggerlib/coverimagewidget.py b/comictaggerlib/coverimagewidget.py index bd7c1b3..80b6ba2 100644 --- a/comictaggerlib/coverimagewidget.py +++ b/comictaggerlib/coverimagewidget.py @@ -215,7 +215,7 @@ class CoverImageWidget(QtWidgets.QWidget): comic_vine.async_fetch_alternate_cover_urls(utils.xlate(self.issue_id), cast(str, issue_page_url)) def alt_cover_url_list_fetch_complete(self, url_list: list[str]) -> None: - if len(url_list) > 0: + if url_list: self.url_list.extend(url_list) self.imageCount = len(self.url_list) self.update_controls()