From 0e8eb311afa3399117a07e1d1931df9f7808a47f Mon Sep 17 00:00:00 2001 From: Honey Date: Sat, 23 May 2026 20:39:21 +0200 Subject: [PATCH] fix: circular import causing navigate undefined; unified importer input MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove top-level ui.js import from soundcloud.js (broke views.js→soundcloud.js→ui.js→views.js cycle) - Use window.executeSpotifyDownload() instead to avoid the circular dep - Merge Spotify + SoundCloud into one unified URL input that auto-detects the service and colors the badge/button accordingly - resolveImporterLink() routes to the correct handler based on URL Co-Authored-By: Claude Sonnet 4.6 --- index.html | 46 +++++++++++++------------------- src/main.js | 4 ++- src/soundcloud.js | 23 +++++----------- src/spotify.js | 68 ++++++++++++++++++++++++++++++++++++++--------- 4 files changed, 84 insertions(+), 57 deletions(-) diff --git a/index.html b/index.html index 95fdea1..5b0db53 100644 --- a/index.html +++ b/index.html @@ -381,23 +381,29 @@
Song Importer
- - -
+ +
- +
-
- Track, Album oder Playlist-Link einfügen — Metadaten werden direkt von Spotify geladen und Songs via yt-dlp in die Library heruntergeladen. +
+
+
Spotify — Track, Album oder Playlist
+
SoundCloud — Track oder Playlist
+
+
Link einfügen → Metadaten werden geladen → via yt-dlp in die Navidrome Library herunterladen.
+ + + + + +
- - -
-
- - -
-
-
- Track oder Playlist-Link einfügen — Metadaten (Titel, Artist, Genre, Artwork) werden direkt von SoundCloud geladen und der Audio-Stream heruntergeladen. -
+