mirror of
https://github.com/krateng/maloja.git
synced 2025-06-15 23:02:06 +03:00
Removed superfluous album art fallback
This commit is contained in:
parent
424ce0e679
commit
aaa2015601
@ -4,9 +4,6 @@
|
|||||||
[](https://pypi.org/project/malojaserver/)
|
[](https://pypi.org/project/malojaserver/)
|
||||||
[](https://hub.docker.com/r/krateng/maloja)
|
[](https://hub.docker.com/r/krateng/maloja)
|
||||||
|
|
||||||
[](https://github.com/krateng/maloja/blob/master/LICENSE)
|
|
||||||
[](https://codeclimate.com/github/krateng/maloja)
|
|
||||||
|
|
||||||
Simple self-hosted music scrobble database to create personal listening statistics. No recommendations, no social network, no nonsense.
|
Simple self-hosted music scrobble database to create personal listening statistics. No recommendations, no social network, no nonsense.
|
||||||
|
|
||||||

|

|
||||||
|
@ -227,12 +227,7 @@ def resolve_image(artist_id=None,track_id=None,album_id=None):
|
|||||||
table = 'albums'
|
table = 'albums'
|
||||||
getfunc, entity_id = database.sqldb.get_album, album_id
|
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?
|
# is another thread already working on this?
|
||||||
with image_resolve_controller_lock:
|
with image_resolve_controller_lock:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user