Skip to content

canidas/playlistcopy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

playlistcopy

playlistcopy is a Python 3 program for merging and copying (and syncing) several tracks of several playlists (m3u/m3u8) to a destination device, even splitted in folders and shuffled.

Per default playlistcopy rewrites file names to artist - album - track (with help of hsaudiotag3k) so it's important to have correct file tags. It also handles not unique source tracks (if the same track is on several playlists). A track is identified by its file name (rewritten one from tags or real filename if disabled).

playlistcopy has two possible modes: sync and append. In sync mode playlistcopy removes all files which are not on the given playlists! In comparison to sync, append does not do any deletion.

Originally I wrote this script for my Kenwood car radio which only recognizes 255 tracks per folder (and 254 folders in total) on an USB-device. Nobody wants to split thousands of tracks by hand…

Tasks

sync, append

Sync or append. See above.

playlistcopy task [PARAMETERS] destination playlist [playlist ...]
--dry-run, -n

Only make a trial run (No copying and deletion)

--no-rewrite-filenames

Don't rewrite filenames (No use of file tags)

--shuffle

Shuffle tracks in destination (Only new tracks, for tracks-per-folder)

--reshuffle

Perform reshuffle after sync or append

--tracks-per-folder

Maximum track count per folder (default 0, 0 = single folder)

--folder-names

Format for folder names (for tracks-per-folder, default: "Folder %d")

destination

Path to destination (e.g. usb storage)

playlist [...]

Path to playlist file; multiple playlists possible (M3U/M3U8)

reshuffle

Randomly move all files between all existing destination folders (according format for folder name). This is usually needed after a sync with shuffle as sync/append only fill all folders and place new tracks in new folders without any reshuffle.

playlistcopy reshuffle [PARAMETERS] destination
--dry-run, -n

Only make a trial run (No copying and deletion)

--folder-names

Format for folder names (for tracks-per-folder, default: "Folder %d")

destination

Path to destination (e.g. usb storage)

stats

Stats about tracks in destination. Sums by track count per artist or per track (including percentage).

playlistcopy stats [PARAMETERS] destination
--group-by Group by artist (default) or track

Common Arguments ~~~~~~~~~~~~~~~~

================= ===== ==================================================================
--help, -h

Print help and exit

--verbose, -v

Show output for all actions of tracks (follows after task!)

--version, -V

Print version and exit

Dependencies

  • Python 3.1 (at least)
  • hsaudiotag3k (semi-optional)
  • chardet (optional)

License

playlistcopy is licensed under the terms of GPLv3+.

About

playlistcopy is a Python 3 program for randmomized copying tracks playlist of (M3U/M3U8) to a destination device.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages