Resizing logos
Corrected small issue with resizing logos as a follow-up to the constant resize problem.
This commit is contained in:
parent
95bdf15d8f
commit
a1779c52e3
@ -76,7 +76,7 @@ class NRSC5_DUI(object):
|
|||||||
self.debugLog("OS Determination: Windows = {}".format(self.windowsOS))
|
self.debugLog("OS Determination: Windows = {}".format(self.windowsOS))
|
||||||
|
|
||||||
self.app_name = "NRSC5-DUI"
|
self.app_name = "NRSC5-DUI"
|
||||||
self.version = "2.1.0"
|
self.version = "2.1.1"
|
||||||
self.web_addr = "https://github.com/markjfine/nrsc5-dui"
|
self.web_addr = "https://github.com/markjfine/nrsc5-dui"
|
||||||
self.copyright = "Copyright © 2017-2019 Cody Nybo & Clayton Smith, 2019 zefie, 2021 Mark J. Fine"
|
self.copyright = "Copyright © 2017-2019 Cody Nybo & Clayton Smith, 2019 zefie, 2021 Mark J. Fine"
|
||||||
musicbrainzngs.set_useragent(self.app_name,self.version,self.web_addr)
|
musicbrainzngs.set_useragent(self.app_name,self.version,self.web_addr)
|
||||||
@ -402,7 +402,7 @@ class NRSC5_DUI(object):
|
|||||||
saveStr = os.path.join(aasDir, baseStr)
|
saveStr = os.path.join(aasDir, baseStr)
|
||||||
|
|
||||||
if ((newArtist=="") and (newTitle=="")):
|
if ((newArtist=="") and (newTitle=="")):
|
||||||
self.coverImage = os.path.join(aasDir, self.stationLogos[self.stationStr][self.streamNum])
|
self.displayLogo()
|
||||||
self.streamInfo['Album']=""
|
self.streamInfo['Album']=""
|
||||||
self.streamInfo['Genre']=""
|
self.streamInfo['Genre']=""
|
||||||
return
|
return
|
||||||
@ -502,9 +502,6 @@ class NRSC5_DUI(object):
|
|||||||
print("general error in the musicbrainz routine")
|
print("general error in the musicbrainz routine")
|
||||||
|
|
||||||
# now display it by simulating a window resize
|
# now display it by simulating a window resize
|
||||||
#self.height = 0
|
|
||||||
#self.width = 0
|
|
||||||
#self.on_cover_resize(self.mainWindow)
|
|
||||||
self.showArtwork(self.coverImage)
|
self.showArtwork(self.coverImage)
|
||||||
|
|
||||||
def showArtwork(self, art):
|
def showArtwork(self, art):
|
||||||
|
Loading…
Reference in New Issue
Block a user