From aaa201560182f83409f34fb65caad5d74c782ece Mon Sep 17 00:00:00 2001 From: krateng Date: Sun, 13 Aug 2023 01:04:25 +0200 Subject: [PATCH] Removed superfluous album art fallback --- README.md | 3 --- maloja/images.py | 7 +------ 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/README.md b/README.md index 2624cb4..361c1d7 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,6 @@ [![](https://img.shields.io/pypi/v/malojaserver?label=PyPI&style=for-the-badge&logo=pypi&logoColor=white)](https://pypi.org/project/malojaserver/) [![](https://img.shields.io/docker/v/krateng/maloja?label=Dockerhub&style=for-the-badge&logo=docker&logoColor=white)](https://hub.docker.com/r/krateng/maloja) -[![](https://img.shields.io/pypi/l/malojaserver?style=for-the-badge)](https://github.com/krateng/maloja/blob/master/LICENSE) -[![](https://img.shields.io/codeclimate/maintainability/krateng/maloja?style=for-the-badge)](https://codeclimate.com/github/krateng/maloja) - Simple self-hosted music scrobble database to create personal listening statistics. No recommendations, no social network, no nonsense. ![screenshot](https://raw.githubusercontent.com/krateng/maloja/master/screenshot.png) diff --git a/maloja/images.py b/maloja/images.py index ad92e68..ec07a73 100644 --- a/maloja/images.py +++ b/maloja/images.py @@ -227,12 +227,7 @@ def resolve_image(artist_id=None,track_id=None,album_id=None): table = 'albums' getfunc, entity_id = database.sqldb.get_album, album_id - if (entitytype == 'track') and malojaconfig["USE_ALBUM_ARTWORK_FOR_TRACKS"]: - track = database.sqldb.get_track(entity_id) - if track.get("album"): - entity_id = database.sqldb.get_album_id(track["album"]) - entitytype = 'album' - getfunc = database.sqldb.get_album + # is another thread already working on this? with image_resolve_controller_lock: