v0.37.0: Import from URL takes Spotify links

A Spotify track, album or playlist is read off Spotify's public embed
page, each song found on YouTube by the result closest to Spotify's
length, downloaded with the song flags, tagged with Spotify's
artist/title/album/track number, then imported and identified.
This commit is contained in:
2026-10-09 01:09:46 -07:00
parent 25b25f61fb
commit f164a22b64
9 changed files with 830 additions and 11 deletions
+12 -5
View File
@@ -1340,11 +1340,18 @@ class MainWindow(QMainWindow):
self._url_note = (f"tags proposed from filenames only ({problem})"
if problem else "")
# The chosen songs by their own pages, never the list link: that
# would download the whole list again, and a Mix reshuffles.
worker = url_import.UrlImportWorker(
dialog.download_urls(), self,
cookies_browser=cookies)
spotify = dialog.spotify_tracks()
if spotify:
# Spotify won't hand over audio: each song is found on YouTube
# and arrives already wearing Spotify's tags.
worker = url_import.SpotifyImportWorker(
spotify, self, cookies_browser=cookies)
else:
# The chosen songs by their own pages, never the list link: that
# would download the whole list again, and a Mix reshuffles.
worker = url_import.UrlImportWorker(
dialog.download_urls(), self,
cookies_browser=cookies)
if self._url_progress is not None:
self._url_progress.close()
self._url_progress.deleteLater()