From 22c807ddbb1bc5e76b8f8b12c2555be933d17711 Mon Sep 17 00:00:00 2001 From: rembo10 Date: Wed, 18 Jul 2012 19:02:33 +0530 Subject: [PATCH] Fix for circular import --- headphones/albumart.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/headphones/albumart.py b/headphones/albumart.py index 88a2b416..3b80e5f5 100644 --- a/headphones/albumart.py +++ b/headphones/albumart.py @@ -13,7 +13,7 @@ # You should have received a copy of the GNU General Public License # along with Headphones. If not, see . -from headphones import db, cache +from headphones import db def getAlbumArt(albumid): @@ -26,7 +26,10 @@ def getAlbumArt(albumid): def getCachedArt(albumid): - c = Cache() + from headphones import cache + + c = cache.Cache() + artwork_path = c.get_artwork_from_cache(AlbumID=albumid) if not artwork_path: