Sv443 před 1 měsícem
rodič
revize
f3e48fdad7
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      src/features/lyricsCache.ts

+ 2 - 2
src/features/lyricsCache.ts

@@ -112,7 +112,7 @@ export function addLyricsCacheEntryBest(artist: string, song: string, url: strin
   // always keep the cache <= max size
   cache.splice(getFeature("lyricsCacheMaxSize"));
 
-  log("Added cache entry for best result", artist, "-", song, "\n", entry);
+  log(`Added lyrics cache entry for best result:`, entry);
 
   emitInterface("bytm:lyricsCacheEntryAdded", { entry, type: "best" });
   return lyricsCacheMgr.setData({ cache });
@@ -152,7 +152,7 @@ export function addLyricsCacheEntryPenalized(artist: string, song: string, url:
   // always keep the cache <= max size
   cache.splice(getFeature("lyricsCacheMaxSize"));
 
-  log("Added penalized cache entry for", artist, "-", song, "with penalty fraction", penaltyFr, "\n", entry);
+  log(`Added penalized cache entry (with a penalty fraction of ${penaltyFr}):\n`, entry);
 
   emitInterface("bytm:lyricsCacheEntryAdded", { entry, type: "penalized" });
   return lyricsCacheMgr.setData({ cache });