Removed superfluous album art fallback

This commit is contained in:
krateng 2023-08-13 01:04:25 +02:00
parent 424ce0e679
commit aaa2015601
2 changed files with 1 additions and 9 deletions

View File

@ -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)

View File

@ -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: