ebb-earl-co / tidal-wave

Waving at the TIDAL music service
Apache License 2.0
38 stars 2 forks source link

Add CLI flag --no-flatten to control Playlist and Mix behavior #82

Closed ebb-earl-co closed 6 months ago

ebb-earl-co commented 6 months ago

Based on feature request from #63, add a top-level CLI flag to tidal-wave. This flag, --no-flatten, is a no-op for everything but playlists and mixes.

By default (and, up to this point), when a playlist or mix URL is passed to tidal-wave, the program retrieves all the tracks and/or videos specified by the mix/playlist and then moves all the media to a subdirectory of either Playlists or Mixes which itself is a subdirectory of the output directory passed to tidal-wave. Then, the media that have just been moved are renamed, specifying the order that they appear in the playlist, padded to three digits. For example, take this mix generated by TIDAL image

The first track, "Where You Are" is the first track in its album, "Where You Are", so the track is originally downloaded to ~/Music/John Summit/Where You Are [278684344] [2023]/01 - Where You Are [CD].flac. Whereas the default Mix behavior is to move this track to ~/Music/Mixes/My Daily Discovery [016dccd302e9ac6132d8334cfbc022]/001 - Where You Are [CD].flac, this pull request adds the option to leave the track where it was downloaded first.