diff --git a/comictaggerlib/seriesselectionwindow.py b/comictaggerlib/seriesselectionwindow.py index 7ab4fda..215c037 100644 --- a/comictaggerlib/seriesselectionwindow.py +++ b/comictaggerlib/seriesselectionwindow.py @@ -163,14 +163,20 @@ class SeriesSelectionWindow(QtWidgets.QDialog): # Display talker logo and set url self.lblSourceName.setText( - f'
Data Source: {talker_api.static_options.website}
' + f'Data Source: {talker_api.static_options.website}' ) - source_label_logo = QtGui.QPixmap(talker_api.source_details.logo) - if source_label_logo.height() > 100 or source_label_logo.width() > 300: - source_label_logo = source_label_logo.scaled( - 300, 100, QtCore.Qt.KeepAspectRatio, QtCore.Qt.SmoothTransformation - ) - self.lblSourceLogo.setPixmap(source_label_logo) + + self.imageSourceWidget = CoverImageWidget( + self.lblSourceLogo, + CoverImageWidget.URLMode, + options.runtime_config.user_cache_dir, + talker_api, + False, + ) + gridlayoutSourceLogo = QtWidgets.QGridLayout(self.lblSourceLogo) + gridlayoutSourceLogo.addWidget(self.imageSourceWidget) + gridlayoutSourceLogo.setContentsMargins(0, 0, 0, 0) + self.imageSourceWidget.set_url(talker_api.source_details.logo) # Set the minimum row height to the default. # this way rows will be more consistent when resizeRowsToContents is called diff --git a/comictalker/talkers/comicvine.py b/comictalker/talkers/comicvine.py index 0bc7223..46be864 100644 --- a/comictalker/talkers/comicvine.py +++ b/comictalker/talkers/comicvine.py @@ -168,7 +168,9 @@ class ComicVineTalker(ComicTalker): ): super().__init__(version, cache_folder, api_url, api_key) self.source_details = SourceDetails( - name="Comic Vine", ident="comicvine", logo="comictalker/talkers/logos/comicvine.png" + name="Comic Vine", + ident="comicvine", + logo="https://comicvine.gamespot.com/a/bundles/comicvinesite/images/logo.png", ) self.static_options = SourceStaticOptions( website="https://comicvine.gamespot.com/",