MinimServer Forum
? in mp3 file name for playlists doesn't work - Printable Version

+- MinimServer Forum (https://forum.minimserver.com)
+-- Forum: MinimServer (/forumdisplay.php?fid=1)
+--- Forum: Support (/forumdisplay.php?fid=4)
+--- Thread: ? in mp3 file name for playlists doesn't work (/showthread.php?tid=6700)

Pages: 1 2 3


? in mp3 file name for playlists doesn't work - jmpz - 10-10-2022 15:10

Hello!

I have a few mp3s with file names that have a ? . Initially, they failed to be found when added to a playlist, but I discovered that removing this resolved the issue. I've attached two screenshots of the logs, the first showing one file failing and then another rescan after removing the ? from the first error.


RE: ? in mp3 file name for playlists doesn't work - simbun - 10-10-2022 17:35

The ascii question mark is a reserved character in Windows, so if it's not working in Linux then I assume simoncn has applied a standard across all the platforms (I'll give it a go later but I'm not at home at the moment).

EDIT: The rules are here.

Because I use Windows and Linux I too have a common standard, and replace the question mark character with a unicode "equivalent" ?. Having said that, I name my files $discnumber.$tracknumber so I only need to change it for folders if they appear in artist and album titles.


RE: ? in mp3 file name for playlists doesn't work - simoncn - 10-10-2022 17:44

The rules that simbun mentioned do not apply to files in playlists on a Linux system.

I tried this on a Synology NAS and it is working for me. What device are you using to run MinimServer? Are your files on the same device or accessed using a network share?

Are you sure that the path in your playlist exactly matches the filename (either both with ? or both without ?) ?

It is possible that the ? is not a real ? but a replacement for some unprintable character. Can you check this?


RE: ? in mp3 file name for playlists doesn't work - jmpz - 12-10-2022 12:50

Thanks for checking this!

I'm using a Synology DS920+, the files are on the same device.

I believe the path matches exactly, I'll attach some screenshots showing the playlist and the location.

[Image: yhC3X6j.png]

[Image: VD1KrnX.png]

I wasn't sure how to check if the ? is real, but I tried deleting it and typing a question mark, updated the playlist to match, and it didn't seem to fix it.

thanks for looking into this!
Jason

(10-10-2022 17:44)simoncn Wrote:  The rules that simbun mentioned do not apply to files in playlists on a Linux system.

I tried this on a Synology NAS and it is working for me. What device are you using to run MinimServer? Are your files on the same device or accessed using a network share?

Are you sure that the path in your playlist exactly matches the filename (either both with ? or both without ?) ?

It is possible that the ? is not a real ? but a replacement for some unprintable character. Can you check this?



RE: ? in mp3 file name for playlists doesn't work - simoncn - 12-10-2022 14:37

(12-10-2022 12:50)jmpz Wrote:  I wasn't sure how to check if the ? is real, but I tried deleting it and typing a question mark, updated the playlist to match, and it didn't seem to fix it.

Did you do a rescan after these changes? Also, you might need to reload the library into your control point, depending on what control point you are using.


RE: ? in mp3 file name for playlists doesn't work - jmpz - 12-10-2022 15:05

I did re-scan, but it still seems to fail on those same files. I renamed the file by removing the '?', and exported it back to the Synology, and rescanned, and it didn't come up as an error.

Weirdly though, if I just add a ? to another random file, and add it to a playlist, it doesn't happen. So it does seem to be mostly limited to these specific ones. I can playback the files back normally through minim otherwise, they show up in the correct album and display perfectly.

Maybe the stream url is helpful?
[Image: HpXmECY.png]

(12-10-2022 14:37)simoncn Wrote:  
(12-10-2022 12:50)jmpz Wrote:  I wasn't sure how to check if the ? is real, but I tried deleting it and typing a question mark, updated the playlist to match, and it didn't seem to fix it.

Did you do a rescan after these changes? Also, you might need to reload the library into your control point, depending on what control point you are using.



RE: ? in mp3 file name for playlists doesn't work - simoncn - 12-10-2022 16:31

This URL shows the cause of the problem. As I suspected, the filename does not contain a normal question mark (0x3f, encoded in the URL as *3f) but an invalid UTF-8 character (0xf025, encoded in the URL as *ef*80*a5).

How was this file created/ripped and then copied to the NAS?


RE: ? in mp3 file name for playlists doesn't work - jmpz - 12-10-2022 17:20

Interesting! I bought it from Bandcamp, and it's imported using https://swinsian.com/, it's like iTunes. It imports it to the library and copies the file to the NAS. As far as I can see, it doesn't change the file name.

I just tried a test of taking an mp3 file, adding a ? to the name via OSX finder, adding it to my library and a playlist, and seeing it fail. So it does seem reproducible to some degree.

(12-10-2022 16:31)simoncn Wrote:  This URL shows the cause of the problem. As I suspected, the filename does not contain a normal question mark (0x3f, encoded in the URL as *3f) but an invalid UTF-8 character (0xf025, encoded in the URL as *ef*80*a5).

How was this file created/ripped and then copied to the NAS?



RE: ? in mp3 file name for playlists doesn't work - jmpz - 12-10-2022 17:33

I'm also seeing it for directories with _ [Image: DDRVri5.png]
The stream path is [Image: VH3Td3w.png]
Changing the directory name to SSS fixes it.


RE: ? in mp3 file name for playlists doesn't work - simoncn - 12-10-2022 18:14

The forward slash (/) is not a valid filename character. If the ripper is trying to name the folder for the band SS/S using a folder name SS/S, the result will be a folder named SS with a subfolder S. It sounds like either your ripper or your playlist creator has some bugs with how it handles some special characters.

In post #6 you said:

Weirdly though, if I just add a ? to another random file, and add it to a playlist, it doesn't happen. So it does seem to be mostly limited to these specific ones. I can playback the files back normally through minim otherwise, they show up in the correct album and display perfectly.

In post #8 you said:

I just tried a test of taking an mp3 file, adding a ? to the name via OSX finder, adding it to my library and a playlist, and seeing it fail. So it does seem reproducible to some degree.

From these two statements, I'm not clear whether this is working or failing with ? characters that you add manually to a filename without them.