bad fix for bad album art scaling
This commit is contained in:
1 parent
da82bfa3b9
commit
fd622d8a65
2 files changed
+9
-6
No files matched your search
+4
-5
@@ -370,8 +370,8 @@ class CoverArtPixels(Container):
|
||||
def render(self) -> RenderResult:
|
||||
if self.cover:
|
||||
width, height = self.size
|
||||
width -= 4
|
||||
height -= 4
|
||||
|
||||
height += 100
|
||||
|
||||
if width > height:
|
||||
width = height
|
||||
@@ -389,8 +389,7 @@ class CoverArtPixels(Container):
|
||||
|
||||
if CACHE and os.path.exists(cache_path):
|
||||
try:
|
||||
image = Image.open(cache_path)
|
||||
self.cover = image
|
||||
self.cover = Image.open(cache_path)
|
||||
except Exception as e:
|
||||
logging.error(f"Failed to load cached cover art {cache_path}: {e}")
|
||||
|
||||
@@ -529,7 +528,7 @@ class MainView(Screen):
|
||||
with Horizontal():
|
||||
with Vertical(classes="info", id='info'):
|
||||
yield NowPlaying(id="now-playing")
|
||||
yield ProgressBar()
|
||||
# yield ProgressBar()
|
||||
with Vertical(classes="column"):
|
||||
yield Label("Queue")
|
||||
yield QueueTable(id="queue")
|
||||
|
||||
Reference in new issue
Block a user