Sync File Masks Filenames [#16901][#16902]
Moderator: Gurus
-
- Posts: 159
- Joined: Sun Mar 15, 2020 11:24 am
Sync File Masks Filenames [#16901][#16902]
I think my player has problems with special characters. I'm using the Sync mask function in the device profile to create a new mask that uses 2 characters from the title, author, album name and track number. I have 100,000 song with some using special characters, foreign characters like Japanese, spaces, and null entries (no entry).
Is there something I can put into the character mask textbox to strip out anything but alphanumeric characters? I want it to generate only numbers and letters.
Is there something I can put into the character mask textbox to strip out anything but alphanumeric characters? I want it to generate only numbers and letters.
Re: Sync File Masks Filenames
I don't know if Sync uses [FilenameMappings] from the MediaMonkey.ini, but this is used to change characters to others when doing filename creation in MediaMonkey.
Download MediaMonkey | License
Help: Knowledge Base | MediaMonkey for Windows 5 | MediaMonkey for Android
Lowlander (MediaMonkey user since 2003)
Help: Knowledge Base | MediaMonkey for Windows 5 | MediaMonkey for Android
Lowlander (MediaMonkey user since 2003)
-
- Posts: 159
- Joined: Sun Mar 15, 2020 11:24 am
Re: Sync File Masks Filenames
I found the section but what exactly does it mean? e.g. 3A=2D? Is that hex?
Re: Sync File Masks Filenames
Yes, this may help: https://www.rapidtables.com/code/text/ascii-table.html
Download MediaMonkey | License
Help: Knowledge Base | MediaMonkey for Windows 5 | MediaMonkey for Android
Lowlander (MediaMonkey user since 2003)
Help: Knowledge Base | MediaMonkey for Windows 5 | MediaMonkey for Android
Lowlander (MediaMonkey user since 2003)
-
- Posts: 159
- Joined: Sun Mar 15, 2020 11:24 am
Re: Sync File Masks Filenames
Does the INI syntax read 'if this --> then replace with this'?
e.g. 3A=2D
== replace 3A with 2D?
e.g. 3A=2D
== replace 3A with 2D?
-
- Posts: 159
- Joined: Sun Mar 15, 2020 11:24 am
Re: Sync File Masks Filenames
Also, won't that affect filenames on the host OS and not syncing to a device?Lowlander wrote: ↑Thu Aug 20, 2020 4:36 pm Yes, this may help: https://www.rapidtables.com/code/text/ascii-table.html
Re: Sync File Masks Filenames
Yes, that's how it replaces, and yes this is used when creating filename in MediaMonkey. I don't know if it's used for Sync, it's something you'll have to try as the alternative is use $Replace() in the Mask which is very tedious if you have lots of characters to replace.
Download MediaMonkey | License
Help: Knowledge Base | MediaMonkey for Windows 5 | MediaMonkey for Android
Lowlander (MediaMonkey user since 2003)
Help: Knowledge Base | MediaMonkey for Windows 5 | MediaMonkey for Android
Lowlander (MediaMonkey user since 2003)
-
- Posts: 159
- Joined: Sun Mar 15, 2020 11:24 am
Re: Sync File Masks Filenames
I think the developers will need to add a function to masks.. something likeLowlander wrote: ↑Thu Aug 20, 2020 5:41 pm Yes, that's how it replaces, and yes this is used when creating filename in MediaMonkey. I don't know if it's used for Sync, it's something you'll have to try as the alternative is use $Replace() in the Mask which is very tedious if you have lots of characters to replace.
alphanum($title,2) + alphanum($artist,2) + alphanum($track,2) + alphanum($album,2)
where the function is alphanum and it takes an input variable and the number of characters to output.
It would have to replace anything except alpanumeric inputs (no spaces, no hyphens, etc.).
-
- Posts: 159
- Joined: Sun Mar 15, 2020 11:24 am
Sync with non-alpha characters
I'm trying to sync to an SD card. I'm trying to figure out why the player only finds a fraction of the songs in the m3u8 playlist. I can't determine what the problem is but it might have to do with special characters. Is the character in this playlist (selected row on the right) the same thing as the character used on the filename (on the left)? When I copy the filename on the left and paste/search for that string in the text editor on the right, it does find it in the playlist.
Re: Sync File Masks Filenames
The square indicates that the text editor can't display the character. It likely is the same.
As your filenames make little sense any way you may want to go with Random Number as filename, this way preventing any special characters from tags to end up in the filename.
As your filenames make little sense any way you may want to go with Random Number as filename, this way preventing any special characters from tags to end up in the filename.
Download MediaMonkey | License
Help: Knowledge Base | MediaMonkey for Windows 5 | MediaMonkey for Android
Lowlander (MediaMonkey user since 2003)
Help: Knowledge Base | MediaMonkey for Windows 5 | MediaMonkey for Android
Lowlander (MediaMonkey user since 2003)
-
- Posts: 159
- Joined: Sun Mar 15, 2020 11:24 am
Re: Sync File Masks Filenames
Random number and Autonumber were the first things I tried. There's one problem to both: they result in a geometric increase in the number of files. It appears that MM processes every playlist independently. So when a song exists in 3 playlists, it creates 3 different files on the device, each having a different name. In one experiment, I had 80GB of songs sync out to > 300GB, which exceeds the device capability.Lowlander wrote: ↑Sat Aug 22, 2020 12:16 pm The square indicates that the text editor can't display the character. It likely is the same.
As your filenames make little sense any way you may want to go with Random Number as filename, this way preventing any special characters from tags to end up in the filename.
Autonumber/Random would work *if* MM didn't create many copies of the same file.
Re: Sync File Masks Filenames
Correct, if a filename is unique MediaMonkey respects that and creates the multiple copies.
Download MediaMonkey | License
Help: Knowledge Base | MediaMonkey for Windows 5 | MediaMonkey for Android
Lowlander (MediaMonkey user since 2003)
Help: Knowledge Base | MediaMonkey for Windows 5 | MediaMonkey for Android
Lowlander (MediaMonkey user since 2003)
-
- Posts: 159
- Joined: Sun Mar 15, 2020 11:24 am
Re: Sync File Masks Filenames
The input filename is not unique. MM is unnecessarily creating copies of the same input file onto the SD card because it appears to process every playlist separately rather. MM does not use the same output file if that file is used across various playlists.
Code: Select all
PC Playlist Music Device
================ =========== =============
MySong1.mp3 ---> Playlist 1 --> Song1.mp3
---> Playlist 2 --> Song2.mp3
---> Playlist 3 --> Song3.mp3
---> Playlist 4 --> Song4.mp3
Bottom line, I don't think there is a solution right now without developers fixing this in MM.
Re: Sync File Masks Filenames
The [FilenameMappings] method failed on sync?
Download MediaMonkey | License
Help: Knowledge Base | MediaMonkey for Windows 5 | MediaMonkey for Android
Lowlander (MediaMonkey user since 2003)
Help: Knowledge Base | MediaMonkey for Windows 5 | MediaMonkey for Android
Lowlander (MediaMonkey user since 2003)
-
- Posts: 159
- Joined: Sun Mar 15, 2020 11:24 am
Re: Sync File Masks Filenames
Did not solve the problem. Not to mention the charactersets are huge. It's not just one or two characters. What is needed is a new function in the sync mask logic called ConvAlpha() which strips/converts non-alpha characters to strictly numbers and letters.
Not to mention, this really should be a developer solution rather than a customer one. Pretending I know nothing about computers, syncing doesn't work properly.