jstraw wrote: 
> I'd run python on that box. Is this script something you could share?
You can download it 'here'
(https://www.nexus0.net/pub/sw/misc/m3u_tool.py).
general help:

Code:
--------------------
    
  
  m3u_tool.py -h
  usage: m3u_tool.py [-h] [-V] [--log-level {CRITICAL,ERROR,WARNING,INFO,DEBUG}]
  {info,copytracks,paths-to-m3u,fixm3u} ...
  
  operation modes:
  {info,copytracks,paths-to-m3u,fixm3u}
  info                print information about a playlist
  copytracks          copy tracks referenced by a playlist or a directory to
  any location
  paths-to-m3u        converts list of paths to m3u
  fixm3u              tries to fix an existing m3u file
  
--------------------

You'll want the "copytracks" mode:

Code:
--------------------
    
  m3u_tool.py copytracks -h
  usage: m3u_tool.py copytracks [-h] [--preserve-dir-level levels]
  [--no-sanitize-pathname] [--no-convert-to-lossy]
  [--no-copy-covers] [--clobber] [--simulate]
  source destdir
  
  positional arguments:
  source                playlist or directory
  destdir               destination directory
  
  optional arguments:
  --preserve-dir-level levels
  preserve directory levels (default: 1)
  --no-sanitize-pathname
  do not sanitize pathname
  --no-convert-to-lossy
  do not convert audio files to mp3
  --no-copy-covers      do not copy covers (cover|folder).(jpg|png)
  --clobber             overwrite destination files (default: False)
  --simulate            simulate copy operations (default: False)
  
--------------------


e.g.
m3u_tool.py --no-convert-to-lossy playlist.m3u destination_dir
(if your tracks are organized as .../artist - album/song.flac) 
m3u_tool.py --no-convert-to-lossy --preserve-dir-level 2 playlist.m3u
destination_dir
(if your tracks are organized as .../artist/album/song.flac) 

Since this script hasn't been tested on Windows, use  --simulate for
some trial runs (this means no files will be copied)

Note that for some advanced functions (e.g. transcoding tracks to mp3),
ffmpeg / ffprobe and mp3gain are required. For just copying, there are
no external dependencies.



SW: 'Web UI for LMS'
(http://forums.slimdevices.com/showthread.php?98186-Announce-Alternative-Web-Interface-(beta))
| 'Playlist Editor / Generator'
(http://forums.slimdevices.com/showthread.php?108199-Announce-LMS-Playlist-Editor)
| 'Music Classification'
(http://forums.slimdevices.com/showthread.php?108278-Announce-Essentia-Integration-music-classification-(moods-genres-))
| 'Similar Music'
(http://forums.slimdevices.com/showthread.php?108495-Announce-LMSmusly-play-similar-music)
| 'LMSlib2go' (https://www.nexus0.net/pub/sw/lmslib2go/)
HowTos: 'build a self-contained LMS'
(http://forums.slimdevices.com/showthread.php?99648-Howto-build-a-self-contained-LMS)
| 'Ogg Opus'
(http://forums.slimdevices.com/showthread.php?107011-Howto-play-Ogg-Opus-files)
| 'Bluetooth/ALSA'
(http://forums.slimdevices.com/showthread.php?107230-Howto-Bluetooth-streaming-to-from-LMS-(ALSA-only-no-PulseAudio))
------------------------------------------------------------------------
Roland0's Profile: http://forums.slimdevices.com/member.php?userid=56808
View this thread: http://forums.slimdevices.com/showthread.php?t=111132

_______________________________________________
Squeezecenter mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/squeezecenter

Reply via email to