v0.78.0: importing a playlist link can make a new playlist of the same name

Once a YouTube, SoundCloud or Spotify link turns out to be a named list,
Import from URL offers "Make a new playlist of these songs, named …"
(off unless ticked, the name editable). yt-dlp's listing now prints each
entry's playlist_title; Spotify's probe hands over the album's or
playlist's name. The playlist is made when the first song lands, so a
link that downloads nothing leaves no empty playlist, and the songs go
in in the link's order. Undoing "New Playlist" takes it all back in one
step.
This commit is contained in:
2026-10-23 01:47:41 -07:00
parent e368b8eb6e
commit 4a32baac3a
9 changed files with 327 additions and 7 deletions
+7
View File
@@ -745,6 +745,13 @@ persistence) → GUI (Qt widgets that read the manager and connect to its signal
get `gui/url_import_progress.py`, a non-modal per-song list (Hide keeps
downloading; clicking the status-bar line reopens it). `LTSTART` carries
the id, and `ERROR: [site] <id>: …` lines become `item_failed`.
**A named list can become a playlist** (Round 109): the probe also
prints `LTLIST %(playlist_title|)s` (Spotify's probe emits the album's
or playlist's name), and the dialog then offers "Make a new playlist of
these songs, named [it]", off unless ticked. `MainWindow` makes the
playlist when the *first* song lands (nothing downloaded → no empty
playlist) and adds each song with `undoable=False`, so undoing "New
Playlist" is the one step that takes it all back.
**A Spotify link** (Round 76, `spotify_link.py`, ported from trav's
`spotify-youtube` script) can't be downloaded, but Spotify's public
embed page (`open.spotify.com/embed/<kind>/<id>`, a `__NEXT_DATA__`