@euterpe.js/music-library
Advanced tools
Comparing version 1.0.8 to 1.0.9
{ | ||
"name": "@euterpe.js/music-library", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "A simple music library, acting as a Local DB as JS Object. Contains everything a person would need to store their music data for website playback.", |
@@ -197,2 +197,9 @@ export { RefTo, Ref, Song, Collection, DB, Artist, Platforms, CollectionType, from_json }; | ||
for (const song of db_stringified.songs) { | ||
try { | ||
if (song.url) | ||
song.url = new URL(song.url); | ||
} | ||
catch (e) { | ||
console.error("failed to parse song.url" + e); | ||
} | ||
if (song.artists) | ||
@@ -199,0 +206,0 @@ song.artists = song.artists.map((e) => ref_from_json(e)); |
Sorry, the diff of this file is not supported yet
29495
407