watsonbox / exportify

Export/Backup Spotify playlists using the Web API
https://exportify.app/
MIT License
3.15k stars 435 forks source link

Add ISRC data #116

Closed korzunov-e-v closed 1 year ago

korzunov-e-v commented 2 years ago

Some services required ISRC while importing.

Slotos commented 1 year ago

This seems to be a sufficient minimal change:

diff --git a/src/components/data/TracksBaseData.tsx b/src/components/data/TracksBaseData.tsx
index 6c0e99c..8e90a80 100644
--- a/src/components/data/TracksBaseData.tsx
+++ b/src/components/data/TracksBaseData.tsx
@@ -26,7 +26,10 @@ class TracksBaseData extends TracksData {
       "Track Duration (ms)",
       "Track Preview URL",
       "Explicit",
-      "Popularity"
+      "Popularity",
+      "ISRC",
+      "EAN",
+      "UPC"
     ]
   }

@@ -58,7 +61,10 @@ class TracksBaseData extends TracksData {
           item.track.duration_ms,
           item.track.preview_url == null ? '' : item.track.preview_url,
           item.track.explicit,
-          item.track.popularity
+          item.track.popularity,
+          item.track.external_ids?.isrc,
+          item.track.external_ids?.ean,
+          item.track.external_ids?.upc,
         ]
       ]
     }))