INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Can I Specify a Prefix to Each Line in a M3U Playlist in Device Sync Options  (Read 633 times)

dlmax63

  • Regular Member
  • World Citizen
  • ***
  • Posts: 165

I posted this a few days ago in the devices forum and have yet to receive any responses. I'm posting it here since maybe it should be a feature request in the options for syncing in MC. Following is what I originally posted in the devices forum:

I use a FiiO M11 Plus LTD and a M11 Pro. FiiO requires that each line of a playlist be prefaced with "/storage/external_sd/[file location and name]". I use the "Playlist Format" option of "M3U (relative paths, forward slashes)" and sync to the MicroSD card using a USB adapter in Windows 8.1.

Example output in the original M3U file:
../Music/Lenny Kravitz/5/8 - Fly Away - Lenny Kravitz - 5.m4a

Needed output in the M3U file:
/storage/external_sd/Music/Lenny Kravitz/5/8 - Fly Away - Lenny Kravitz - 5.m4a

Currently I have to do a 'find' and 'replace all' for each playlist file. (find: "../" replace all: "/storage/external_sd/")

Is there a way go get MC to do this automatically? If not, I'd like to request a feature to allow a prefix to be added to each line of the M3U file.

If adding the option of adding a prefix to the each line of a playlist in MC is not possible, does anyone know how to write a script to automate the action for multiple M3U files in a folder? Each time I sync about 20 playlists and it takes time to go through the steps for the find/replace action in Notepad. Automating it would be a time saver for me.

Thank you in advance.

P.S. I've attached examples of M3U example files and am using MC 28.0.80 (64-bit). (I've used JRiver since Media Jukebox 5)
Logged
Never kick a fresh turd on a hot day!

davelr

  • World Citizen
  • ***
  • Posts: 102

While you can write a script to do this, there are lots of programs out there designed to do multiple file search and replace functions. Do a search and pick one that works for you.
Logged

dlmax63

  • Regular Member
  • World Citizen
  • ***
  • Posts: 165

While you can write a script to do this, there are lots of programs out there designed to do multiple file search and replace functions. Do a search and pick one that works for you.

Yea, I guess I already knew that was an option. Thanks for the suggestion though. I was kind-of hoping there would be a way to do it on the front-end using MC. Maybe incorporate it into a future build if it doesn't currently have the ability.

A quick search came up with "FNR". Simple & efficient but up-front would be better.
Logged
Never kick a fresh turd on a hot day!
Pages: [1]   Go Up