From 87cd106b28bb2e91c0d87af48a03b5c364f2206a Mon Sep 17 00:00:00 2001 From: Mizaki Date: Wed, 4 Jan 2023 23:51:39 +0000 Subject: [PATCH 1/6] Add source logo and URL to series window --- comictaggerlib/seriesselectionwindow.py | 11 +++ comictaggerlib/ui/seriesselectionwindow.ui | 95 ++++++++++++++++----- comictalker/talkers/comicvine.py | 4 +- comictalker/talkers/logos/comicvine.png | Bin 0 -> 17414 bytes 4 files changed, 89 insertions(+), 21 deletions(-) create mode 100644 comictalker/talkers/logos/comicvine.png diff --git a/comictaggerlib/seriesselectionwindow.py b/comictaggerlib/seriesselectionwindow.py index 7c1c479..7ab4fda 100644 --- a/comictaggerlib/seriesselectionwindow.py +++ b/comictaggerlib/seriesselectionwindow.py @@ -161,6 +161,17 @@ class SeriesSelectionWindow(QtWidgets.QDialog): # Load to retrieve settings self.talker_api = talker_api + # Display talker logo and set url + self.lblSourceName.setText( + 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) + # Set the minimum row height to the default. # this way rows will be more consistent when resizeRowsToContents is called self.twList.verticalHeader().setMinimumSectionSize(self.twList.verticalHeader().defaultSectionSize()) diff --git a/comictaggerlib/ui/seriesselectionwindow.ui b/comictaggerlib/ui/seriesselectionwindow.ui index 4812423..967768f 100644 --- a/comictaggerlib/ui/seriesselectionwindow.ui +++ b/comictaggerlib/ui/seriesselectionwindow.ui @@ -7,7 +7,7 @@ 0 0 950 - 480 + 600 @@ -17,23 +17,84 @@ false - + - - - - 300 - 450 - + + + 0 - - - 300 - 450 - + + QLayout::SetMaximumSize - + + 0 + + + + + + 0 + 0 + + + + + 300 + 450 + + + + + 300 + 450 + + + + + + + + 2 + + + 1 + + + Qt::Horizontal + + + + + + + Data Source: + + + + + + + + 300 + 100 + + + + + 300 + 100 + + + + 0 + + + + + + + @@ -85,17 +146,11 @@ Year - - AlignCenter - Issues - - AlignCenter - diff --git a/comictalker/talkers/comicvine.py b/comictalker/talkers/comicvine.py index 3b264f3..0bc7223 100644 --- a/comictalker/talkers/comicvine.py +++ b/comictalker/talkers/comicvine.py @@ -167,7 +167,9 @@ class ComicVineTalker(ComicTalker): wait_on_ratelimit: bool = False, ): super().__init__(version, cache_folder, api_url, api_key) - self.source_details = SourceDetails(name="Comic Vine", ident="comicvine") + self.source_details = SourceDetails( + name="Comic Vine", ident="comicvine", logo="comictalker/talkers/logos/comicvine.png" + ) self.static_options = SourceStaticOptions( website="https://comicvine.gamespot.com/", has_issues=True, diff --git a/comictalker/talkers/logos/comicvine.png b/comictalker/talkers/logos/comicvine.png new file mode 100644 index 0000000000000000000000000000000000000000..9e3bb89ad0b447a2d6091bfe80cff89d7e39fb17 GIT binary patch literal 17414 zcmV+1KqJ42P)h*S6o&wT(AgxLu$!{GDVyEo_u5TDl1&dJA&ChAgAI-`#tru( z$+j%XvU(qlruVsbZhf9}&hL-snSSq`8CfO)d|oeUMw&ZMIp=e}lkFa4xXlKm!5eyqnLDa5VPvhD!3N+A=rZCRmENCX2xX<1g#vSi4zEFq-? z1VT*z1JK#kHI&U|pZsZm5H=7n5CTFN6Eq%nER3;?=Nrs? z5F@}v2-pAW0Iq;Mh^#R>YhYBskkY!}7}E<30OQ~H0E2)6^qV&PkB^U3BZPRHl=6L2 zh?_0TiYF3@KsX$U3=R&Yv$@=Dz`nUQiY4WzrIdfv*wC1WMx()UKo`RMOKS~5L8K;1 ztR+FBv6@0pj_%jm5yoKrrFUJIqEl2x8-x@{A(28bp(+Fj@3X=m{(S^9em-lAZ>||% zjX%&@8*Pj+Mx&K-UDqwTu2PQc=%V9TN+~I&90EFx)`zt*2aPfNeQi{D6Y&3WwB~Zl zvhI*V+zDcRJRURgSS%R~hAhjnCO(+SWQu(Q{r5PI^Ya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r#%3o7g3>THZJ&dg!{DM3aWqA>D0 z0@hl|i#$owOayY9h)#>hj7qM;ze;w7Lk13s0Igf^7R-E}nWq5USIJfQH-?Dp@;$$~wA28;oV*W=ar0-PE>E*GsTZG^ zapaBxxCuS&RN>bH&+~Tsjm9#0-)k;eFo@&s3(H;S+);u2ggVPoQQ_AO1K^{;A3thG zL{L_xi=rs2sw!cTlSFhLz!NQ5RQL_^I}I@52WuDJIVX9Z7f~GbMR0|fj)=%L3{NXo zRQPpeivaJeHe*LbP?e?YL{VmK6%p|<7Cwj7B^N6y{2S-PW+NPVR0=brD2iUE+pR?S zM&G&50bJJws0#mfELe^AajVr@@$>GSLz<>(oF*0`7aY+cY_O;iMTH+_$@)nchRfZx zLseDMjk-y%EE8cqOw4DnhAGdA3co?V@aEGn41<^J^IoslZ+F^-b2P_H2e|HM(f)E3 z{w@E$8?!I)>k(c|gsjM4bi0ui;a`d9pa8d^TZ+nNd8vKhk3ZP6m$z@*76(D_-1q&1 zs0X4c%BJIeV~lMC!5_w${Q$P=BT+Upy8(O#prMaKQI!7`{{X}}Me45P>C^xK002ov JPDHLkV1hfU6hr_3 literal 0 HcmV?d00001 From 725b2c66d3017bd023aa62efa557e8edb6b52513 Mon Sep 17 00:00:00 2001 From: Mizaki Date: Thu, 12 Jan 2023 16:58:50 +0000 Subject: [PATCH 2/6] Use imageWidget for source logo and URL. --- comictaggerlib/seriesselectionwindow.py | 20 +++++++++++++------- comictalker/talkers/comicvine.py | 4 +++- 2 files changed, 16 insertions(+), 8 deletions(-) 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/", From 55e3b7c7e0f5f9fb1213bb5ac5039de5eca799d1 Mon Sep 17 00:00:00 2001 From: Mizaki Date: Fri, 13 Jan 2023 21:27:40 +0000 Subject: [PATCH 3/6] Use name for URL display. Window sizes. --- comictaggerlib/seriesselectionwindow.py | 8 +++---- comictaggerlib/ui/seriesselectionwindow.ui | 25 ++++++++++++++------- comictalker/talkers/logos/comicvine.png | Bin 17414 -> 0 bytes 3 files changed, 21 insertions(+), 12 deletions(-) delete mode 100644 comictalker/talkers/logos/comicvine.png diff --git a/comictaggerlib/seriesselectionwindow.py b/comictaggerlib/seriesselectionwindow.py index 215c037..7fc512d 100644 --- a/comictaggerlib/seriesselectionwindow.py +++ b/comictaggerlib/seriesselectionwindow.py @@ -163,19 +163,19 @@ 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.source_details.name}' ) self.imageSourceWidget = CoverImageWidget( - self.lblSourceLogo, + self.imageSourceLogo, CoverImageWidget.URLMode, options.runtime_config.user_cache_dir, talker_api, False, ) - gridlayoutSourceLogo = QtWidgets.QGridLayout(self.lblSourceLogo) + gridlayoutSourceLogo = QtWidgets.QGridLayout(self.imageSourceLogo) gridlayoutSourceLogo.addWidget(self.imageSourceWidget) - gridlayoutSourceLogo.setContentsMargins(0, 0, 0, 0) + gridlayoutSourceLogo.setContentsMargins(0, 2, 0, 0) self.imageSourceWidget.set_url(talker_api.source_details.logo) # Set the minimum row height to the default. diff --git a/comictaggerlib/ui/seriesselectionwindow.ui b/comictaggerlib/ui/seriesselectionwindow.ui index 967768f..2cb570e 100644 --- a/comictaggerlib/ui/seriesselectionwindow.ui +++ b/comictaggerlib/ui/seriesselectionwindow.ui @@ -67,13 +67,28 @@
+ + + 0 + 0 + + + + + 300 + 16777215 + + Data Source: + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop + - + 300 @@ -83,15 +98,9 @@ 300 - 100 + 16777215 - - 0 - - - -
diff --git a/comictalker/talkers/logos/comicvine.png b/comictalker/talkers/logos/comicvine.png deleted file mode 100644 index 9e3bb89ad0b447a2d6091bfe80cff89d7e39fb17..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 17414 zcmV+1KqJ42P)h*S6o&wT(AgxLu$!{GDVyEo_u5TDl1&dJA&ChAgAI-`#tru( z$+j%XvU(qlruVsbZhf9}&hL-snSSq`8CfO)d|oeUMw&ZMIp=e}lkFa4xXlKm!5eyqnLDa5VPvhD!3N+A=rZCRmENCX2xX<1g#vSi4zEFq-? z1VT*z1JK#kHI&U|pZsZm5H=7n5CTFN6Eq%nER3;?=Nrs? z5F@}v2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Ls#u$|Ak}nqALcWm6WHUx7U67XS3z&aw&#hNflHPuY zV<*$>d3lJvFAp#{to>%dlLx~0_U7j;&5bd*uA}q0d@-FF%jWZWfe^20tsgSRJZg+N zS4Vi_*J+Z- zaC~YGNjloU!S)?nG5Pfqe1CBsS-z+*eEI6?KayK(sVIsf$x?>MLq~L0M5a-P5V5MO z!mmWrGp0E#m}X(P?r{4I9?n~w{pK-#x!fJ;)KUbvdaaG?vu4mPJlfV_Wi4e{mgjj+ zfZTILr$ppu0MAra6@Jyi8)KFXfJ3j_8DlTmsNmJyrN|c-IW;?H8cc3Kr#%3o7g3>THZJ&dg!{DM3aWqA>D0 z0@hl|i#$owOayY9h)#>hj7qM;ze;w7Lk13s0Igf^7R-E}nWq5USIJfQH-?Dp@;$$~wA28;oV*W=ar0-PE>E*GsTZG^ zapaBxxCuS&RN>bH&+~Tsjm9#0-)k;eFo@&s3(H;S+);u2ggVPoQQ_AO1K^{;A3thG zL{L_xi=rs2sw!cTlSFhLz!NQ5RQL_^I}I@52WuDJIVX9Z7f~GbMR0|fj)=%L3{NXo zRQPpeivaJeHe*LbP?e?YL{VmK6%p|<7Cwj7B^N6y{2S-PW+NPVR0=brD2iUE+pR?S zM&G&50bJJws0#mfELe^AajVr@@$>GSLz<>(oF*0`7aY+cY_O;iMTH+_$@)nchRfZx zLseDMjk-y%EE8cqOw4DnhAGdA3co?V@aEGn41<^J^IoslZ+F^-b2P_H2e|HM(f)E3 z{w@E$8?!I)>k(c|gsjM4bi0ui;a`d9pa8d^TZ+nNd8vKhk3ZP6m$z@*76(D_-1q&1 zs0X4c%BJIeV~lMC!5_w${Q$P=BT+Upy8(O#prMaKQI!7`{{X}}Me45P>C^xK002ov JPDHLkV1hfU6hr_3 From 5d66815765ca5496590beb723040aca63bf2fb85 Mon Sep 17 00:00:00 2001 From: Mizaki Date: Fri, 20 Jan 2023 00:29:02 +0000 Subject: [PATCH 4/6] Add attrib string for source. Add logo and URL to issues window. --- comictaggerlib/issueselectionwindow.py | 17 +++++ comictaggerlib/seriesselectionwindow.py | 2 +- comictaggerlib/ui/issueselectionwindow.ui | 88 ++++++++++++++++++----- comictalker/talkerbase.py | 2 + comictalker/talkers/comicvine.py | 1 + 5 files changed, 91 insertions(+), 19 deletions(-) diff --git a/comictaggerlib/issueselectionwindow.py b/comictaggerlib/issueselectionwindow.py index fc48fc2..0f04800 100644 --- a/comictaggerlib/issueselectionwindow.py +++ b/comictaggerlib/issueselectionwindow.py @@ -76,6 +76,23 @@ class IssueSelectionWindow(QtWidgets.QDialog): self.url_fetch_thread = None self.issue_list: list[ComicIssue] = [] + # Display talker logo and set url + self.lblIssuesSourceName.setText( + f'{talker_api.static_options.attribution_string} {talker_api.source_details.name}' + ) + + self.imageIssuesSourceWidget = CoverImageWidget( + self.imageIssuesSourceLogo, + CoverImageWidget.URLMode, + options.runtime_config.user_cache_dir, + talker_api, + False, + ) + gridlayoutIssuesSourceLogo = QtWidgets.QGridLayout(self.imageIssuesSourceLogo) + gridlayoutIssuesSourceLogo.addWidget(self.imageIssuesSourceWidget) + gridlayoutIssuesSourceLogo.setContentsMargins(0, 2, 0, 0) + self.imageIssuesSourceWidget.set_url(talker_api.source_details.logo) + if issue_number is None or issue_number == "": self.issue_number = "1" else: diff --git a/comictaggerlib/seriesselectionwindow.py b/comictaggerlib/seriesselectionwindow.py index 7fc512d..05bcc84 100644 --- a/comictaggerlib/seriesselectionwindow.py +++ b/comictaggerlib/seriesselectionwindow.py @@ -163,7 +163,7 @@ class SeriesSelectionWindow(QtWidgets.QDialog): # Display talker logo and set url self.lblSourceName.setText( - f'Data Source: {talker_api.source_details.name}' + f'{talker_api.static_options.attribution_string} {talker_api.source_details.name}' ) self.imageSourceWidget = CoverImageWidget( diff --git a/comictaggerlib/ui/issueselectionwindow.ui b/comictaggerlib/ui/issueselectionwindow.ui index 8e3845c..2362f9c 100644 --- a/comictaggerlib/ui/issueselectionwindow.ui +++ b/comictaggerlib/ui/issueselectionwindow.ui @@ -7,7 +7,7 @@ 0 0 872 - 550 + 670 @@ -74,9 +74,6 @@ Title - - AlignCenter - @@ -93,20 +90,75 @@ - - - - 300 - 450 - - - - - 300 - 450 - - - + + + + + + 300 + 450 + + + + + 300 + 450 + + + + + + + + + 0 + 0 + + + + 2 + + + 1 + + + Qt::Horizontal + + + + + + + + 300 + 16777215 + + + + Data Source: + + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop + + + + + + + + 300 + 100 + + + + + 300 + 16777215 + + + + + diff --git a/comictalker/talkerbase.py b/comictalker/talkerbase.py index 7e87304..fcd7be6 100644 --- a/comictalker/talkerbase.py +++ b/comictalker/talkerbase.py @@ -40,6 +40,7 @@ class SourceStaticOptions: def __init__( self, website: str = "", + attribution_string: str = "", # Website link will be added after this text using source_details.name has_issues: bool = False, has_alt_covers: bool = False, requires_apikey: bool = False, @@ -47,6 +48,7 @@ class SourceStaticOptions: has_censored_covers: bool = False, ) -> None: self.website = website + self.attribution_string = attribution_string self.has_issues = has_issues self.has_alt_covers = has_alt_covers self.requires_apikey = requires_apikey diff --git a/comictalker/talkers/comicvine.py b/comictalker/talkers/comicvine.py index 46be864..f10e7c9 100644 --- a/comictalker/talkers/comicvine.py +++ b/comictalker/talkers/comicvine.py @@ -174,6 +174,7 @@ class ComicVineTalker(ComicTalker): ) self.static_options = SourceStaticOptions( website="https://comicvine.gamespot.com/", + attribution_string="Data Source:", has_issues=True, has_alt_covers=True, requires_apikey=True, From d0e3b487ebd42fd16f81427b5605d7389591c0e8 Mon Sep 17 00:00:00 2001 From: Mizaki Date: Sun, 22 Jan 2023 17:16:33 +0000 Subject: [PATCH 5/6] Mark label for external links. attrib str to be complete. --- comictaggerlib/issueselectionwindow.py | 4 +--- comictaggerlib/seriesselectionwindow.py | 4 +--- comictaggerlib/ui/issueselectionwindow.ui | 3 +++ comictaggerlib/ui/seriesselectionwindow.ui | 3 +++ comictalker/talkerbase.py | 2 +- comictalker/talkers/comicvine.py | 2 +- 6 files changed, 10 insertions(+), 8 deletions(-) diff --git a/comictaggerlib/issueselectionwindow.py b/comictaggerlib/issueselectionwindow.py index 0f04800..12cc245 100644 --- a/comictaggerlib/issueselectionwindow.py +++ b/comictaggerlib/issueselectionwindow.py @@ -77,9 +77,7 @@ class IssueSelectionWindow(QtWidgets.QDialog): self.issue_list: list[ComicIssue] = [] # Display talker logo and set url - self.lblIssuesSourceName.setText( - f'{talker_api.static_options.attribution_string} {talker_api.source_details.name}' - ) + self.lblIssuesSourceName.setText(talker_api.static_options.attribution_string) self.imageIssuesSourceWidget = CoverImageWidget( self.imageIssuesSourceLogo, diff --git a/comictaggerlib/seriesselectionwindow.py b/comictaggerlib/seriesselectionwindow.py index 05bcc84..0401930 100644 --- a/comictaggerlib/seriesselectionwindow.py +++ b/comictaggerlib/seriesselectionwindow.py @@ -162,9 +162,7 @@ class SeriesSelectionWindow(QtWidgets.QDialog): self.talker_api = talker_api # Display talker logo and set url - self.lblSourceName.setText( - f'{talker_api.static_options.attribution_string} {talker_api.source_details.name}' - ) + self.lblSourceName.setText(talker_api.static_options.attribution_string) self.imageSourceWidget = CoverImageWidget( self.imageSourceLogo, diff --git a/comictaggerlib/ui/issueselectionwindow.ui b/comictaggerlib/ui/issueselectionwindow.ui index 2362f9c..4d23de9 100644 --- a/comictaggerlib/ui/issueselectionwindow.ui +++ b/comictaggerlib/ui/issueselectionwindow.ui @@ -140,6 +140,9 @@ Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop + + true + diff --git a/comictaggerlib/ui/seriesselectionwindow.ui b/comictaggerlib/ui/seriesselectionwindow.ui index 2cb570e..ceafc65 100644 --- a/comictaggerlib/ui/seriesselectionwindow.ui +++ b/comictaggerlib/ui/seriesselectionwindow.ui @@ -85,6 +85,9 @@ Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop + + true + diff --git a/comictalker/talkerbase.py b/comictalker/talkerbase.py index fcd7be6..9c70c7c 100644 --- a/comictalker/talkerbase.py +++ b/comictalker/talkerbase.py @@ -40,7 +40,7 @@ class SourceStaticOptions: def __init__( self, website: str = "", - attribution_string: str = "", # Website link will be added after this text using source_details.name + attribution_string: str = "", # Full string including web link: Source: Example has_issues: bool = False, has_alt_covers: bool = False, requires_apikey: bool = False, diff --git a/comictalker/talkers/comicvine.py b/comictalker/talkers/comicvine.py index f10e7c9..54aa372 100644 --- a/comictalker/talkers/comicvine.py +++ b/comictalker/talkers/comicvine.py @@ -174,7 +174,7 @@ class ComicVineTalker(ComicTalker): ) self.static_options = SourceStaticOptions( website="https://comicvine.gamespot.com/", - attribution_string="Data Source:", + attribution_string="Data Source: Comic Vine", has_issues=True, has_alt_covers=True, requires_apikey=True, From c6e3266f605fefdd3ca0950ddccc32793890fc1b Mon Sep 17 00:00:00 2001 From: Mizaki Date: Wed, 1 Feb 2023 15:39:24 +0000 Subject: [PATCH 6/6] More verbose attrib string --- comictalker/talkerbase.py | 2 +- comictalker/talkers/comicvine.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/comictalker/talkerbase.py b/comictalker/talkerbase.py index 9c70c7c..6ef88aa 100644 --- a/comictalker/talkerbase.py +++ b/comictalker/talkerbase.py @@ -40,7 +40,7 @@ class SourceStaticOptions: def __init__( self, website: str = "", - attribution_string: str = "", # Full string including web link: Source: Example + attribution_string: str = "", # Full string including web link, example: Metadata provided by Example has_issues: bool = False, has_alt_covers: bool = False, requires_apikey: bool = False, diff --git a/comictalker/talkers/comicvine.py b/comictalker/talkers/comicvine.py index 54aa372..6826edb 100644 --- a/comictalker/talkers/comicvine.py +++ b/comictalker/talkers/comicvine.py @@ -174,7 +174,7 @@ class ComicVineTalker(ComicTalker): ) self.static_options = SourceStaticOptions( website="https://comicvine.gamespot.com/", - attribution_string="Data Source: Comic Vine", + attribution_string="Metadata provided by Comic Vine", has_issues=True, has_alt_covers=True, requires_apikey=True,