OrfiTeam / OrpheusDL

621 stars 77 forks source link

Playlist downloads shouldn't place tracks in CD folders #59

Open evan-goode opened 3 months ago

evan-goode commented 3 months ago

When I download a playlist, some tracks get placed in "CD 1", or "CD 2" folders. But I want a flat directory structure with all the FLACs in the same folder.

The problem seems to be here: https://github.com/OrfiTeam/OrpheusDL/blob/a45ff47913508d4c09971bdb847d5845984f1e64/orpheus/music_downloader.py#L356

Even if this behavior can be turned off via a config option, I think a "flat structure" should be the default for playlists.

Reproducer, using a TIDAL playlist:

~/git/OrpheusDL $ poetry run python3 ./orpheus.py https://tidal.com/browse/playlist/dbac91f6-29ef-40ac-b708-7e959cf2a736
...
~/git/OrpheusDL $ tree downloads/Orpheus\ CD\ Issue\ Reproducer
downloads/Orpheus CD Issue Reproducer
├── 2. Any Other Song.flac
├── CD 1
│   ├── 1. My Dearest Darling.flac
│   └── 1. My Dearest Darling.lrc
├── cover.jpg
└── Orpheus CD Issue Reproducer.m3u

2 directories, 5 files
RyanEskridge commented 3 months ago

I agree that this should be the default behavior for playlists.

Try this

"force_album_format": true