You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug(catalog): duplicate tracks created when re-importing same YouTube URL #42
Importing the same YouTube video more than once creates duplicate entries in the library, even though deduplication logic exists.
Root cause
normalizeSource() performed only a plain string trim. URLs like https://www.youtube.com/watch?v=xxx&t=10, https://youtu.be/xxx, and https://youtube.com/watch?v=xxx?si=yyy are the same video but produce different normalized strings, bypassing the duplicate check in findTrackBySource().
Fix
normalizeSource() now extracts the 11-character YouTube video ID from both youtu.be/<id> and ?v=<id> forms and returns yt:<id> as the canonical key. All URL variants for the same video now deduplicate correctly.
Fixed: normalizeSource() now extracts the 11-char YouTube video ID from all URL variants (youtu.be, ?v=, etc.) so re-importing the same video is detected as a duplicate and the existing entry is updated rather than duplicated.
Activity
thcp commentedon May 17, 2026
Fixed: normalizeSource() now extracts the 11-char YouTube video ID from all URL variants (youtu.be, ?v=, etc.) so re-importing the same video is detected as a duplicate and the existing entry is updated rather than duplicated.
feat(ui-refactor): DAW redesign, library overhaul, sections, analysis…