+ public Image getSourceCover(String source) {
+ // no cache for the source cover
+ return lib.getSourceCover(source);
+ }
+
+ @Override
+ public void setSourceCover(String source, String luid) {
+ lib.setSourceCover(source, luid);
+ cacheLib.setSourceCover(source, getSourceCover(source));
+ }
+
+ @Override
+ protected void invalidateInfo(String luid) {
+ if (luid == null) {
+ metas = null;
+ } else if (metas != null) {
+ MetaData meta = lib.getInfo(luid);
+ for (int i = 0; i < metas.size(); i++) {
+ if (metas.get(i).getLuid().equals(luid)) {
+ metas.remove(i--);
+ }
+ }
+
+ if (meta != null) {
+ metas.add(meta);
+ }
+ }
+
+ cacheLib.invalidateInfo(luid);
+ lib.invalidateInfo(luid);