Restyle New album page design (#77)

This commit is contained in:
restyled-io[bot]
2022-07-06 17:38:11 +03:00
committed by Mungai Geoffrey
parent 95ad7ceadc
commit 73891aa5cf
8 changed files with 29 additions and 28 deletions
+7 -2
View File
@@ -6,7 +6,9 @@ import random
from dataclasses import dataclass
from typing import List
from app import helpers, instances, models
from app import helpers
from app import instances
from app import models
from app.lib import taglib
from app.logger import logg
from app.settings import THUMBS_PATH
@@ -35,6 +37,7 @@ class RipAlbumImage:
class ValidateAlbumThumbs:
@staticmethod
def remove_obsolete():
"""
@@ -58,7 +61,9 @@ class ValidateAlbumThumbs:
Re-rip lost album thumbnails
"""
entries = os.scandir(THUMBS_PATH)
entries = [Thumbnail(entry.name) for entry in entries if entry.is_file()]
entries = [
Thumbnail(entry.name) for entry in entries if entry.is_file()
]
albums = helpers.Get.get_all_albums()
thumbs = [(album.hash + ".webp") for album in albums]
+1 -1
View File
@@ -4,10 +4,10 @@ This library contains the classes and functions related to the watchdog file wat
import os
import time
from app.logger import get_logger
from app import instances
from app.helpers import create_album_hash
from app.lib.taglib import get_tags
from app.logger import get_logger
from watchdog.events import PatternMatchingEventHandler
from watchdog.observers import Observer