Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Having trouble exporting files and playlists to my phone (Poweramp - Android) (Read 726 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Having trouble exporting files and playlists to my phone (Poweramp - Android)

I have various Foobar playlists. I want to export only some of them to my phone, first by exporting the files, and then the .m3u8 playlist files which Poweramp recognizes. However, the .m3u8 files will be exported with the folder structure for my D: drive where the music in my computer is, so I'm trying to replicate that path URL in my phone.

https://i.imgur.com/ypktm2l.png

I'm only using the %path% file name pattern. As you can see, the folder structure gets created, but music files have their file extensions copied twice for some reason (song.opus.opus for example). Is there a way to filter this out, or even better, a way to more easily do this process?

I'm trying to transfer 1200 folders btw, so this is not something I can do manually in my SD card.

Re: Having trouble exporting files and playlists to my phone (Poweramp - Android)

Reply #1
Hi there,

I'm not sure how you're doing this exactly, but if it involves foobar title formatting, you can remove parts of the %path% with a $replace function. So instead of %path% you could try for example -

Code: [Select]
$replace($directory_path(%path%),$left(%path%,3),)\%filename%

So from your screenshot, the above would remove the 'D-\' folder. You can add extra arguments to the $replace to remove other folders if needed. And the %filename% field at the end should exclude the (double) extension.

Cheers

Re: Having trouble exporting files and playlists to my phone (Poweramp - Android)

Reply #2
Create a test playlist in your device and check the path in the m3u8 file (it will show the ID of your memory card, if you're using one). Then use the root for your mobile music with the $replace command referenced above.

For the duplicated file extensions issue, use $replace(%path%,'Your home music root','Your mobile music root',%filename_ext%,%filename%)

Also, I would remove all special characters from the file names: [%disc number%-][%track%] $cut($ascii(%title%),36)
Although that would break the mirroring of your two file structures