INTERACT FORUM

Please login or register.

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

Author Topic: clean() is not replacing dot characters, leading to filename truncation  (Read 1259 times)

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2554

I don't know if this is Linux-specific, but even when running clean() in mode 3, the filename outputs of my files stop whenever there is a dot character followed by a space. Perhaps dots should be replaced by underscores on Linux?

Code: [Select]
clean([Artist] - [Name], 3)
Code: [Select]
>find -exec basename '{}' ';' | egrep '^.{,20}$'
The 1975 - Talk!.mp3
The 1975 - Mine.mp3
The 1975 - Ugh!.mp3
A.A.mp3
Alt-J - Intro.mp3
Alt-J - Ms.mp3
Alt-J - 3ww.mp3
Alt-J - Pleader.mp3
Aurora - Home.mp3
Aurora - Runaway.mp3
Bayonne - QA.mp3
Bayonne - I Know.mp3
Bayonne - Gift.mp3
Bayonne - Kind.mp3
Bon Iver - Flume.mp3
Broods - Peach.mp3
Broods - L.A.F.mp3
Chvrches - Lungs.mp3
Circ - Danger.mp3
Deakin - Just Am.mp3
Dr.mp3
Dr (1).mp3
Dr (2).mp3
Dr (3).mp3
Dr (4).mp3
G.mp3
Grandaddy - A.M.mp3
Grimes - Genesis.mp3
HAERTS - Sign.mp3
HAERTS - Matter.mp3
Haim - Falling.mp3
Haim - The Wire.mp3
Haim - My Song 5.mp3
Haim - Let Me Go.mp3
Haltya - Fry.mp3
Jamie Xx - Gosh.mp3
Lights - Banner.mp3
Lucius - Madness.mp3
M.mp3
M (1).mp3
M (2).mp3
M (3).mp3
M (4).mp3
M (5).mp3
Mgmt - The Youth.mp3
Mgmt - Kids.mp3
Ms Mr - Btsk.mp3
Ms Mr - No Trace.mp3
Mt. St.mp3
Mt. St (1).mp3
Mt. St (2).mp3
Mt. St (3).mp3
Nizlopi - Jcb.mp3
O.A.R.mp3
O.A.R (1).mp3
Phish - Ocelot.mp3
Phoenix - S.O.S.mp3
Phox - 1936.mp3
Poliça - Smug.mp3
Portugal.mp3
Portugal (1).mp3
Portugal (2).mp3
Portugal (3).mp3
Portugal (4).mp3
Portugal (5).mp3
Portugal (6).mp3
Portugal (7).mp3
Portugal (8).mp3
Portugal (9).mp3
Portugal (10).mp3
Portugal (11).mp3
Portugal (12).mp3
Portugal (13).mp3
Portugal (14).mp3
Portugal (15).mp3
Portugal (16).mp3
Portugal (17).mp3
Portugal (18).mp3
Portugal (19).mp3
Portugal (20).mp3
Portugal (21).mp3
Ratatat - Bilar.mp3
Ratatat - Drugs.mp3
Ratatat - Rome.mp3
Ratatat - Cherry.mp3
St.mp3
St (1).mp3
St (2).mp3
St (3).mp3
St (4).mp3
St (5).mp3
St (6).mp3
St (7).mp3
St (8).mp3
St (9).mp3
St (10).mp3
Starcadian - Sgt.mp3
Sting - Roxanne.mp3
Toto - Africa.mp3
U.S.mp3
Vensaire - Mt.mp3
Whitney - Follow.mp3
Yeasayer - 2080.mp3
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 41934
  • Shoes gone again!

Where are you entering this?

I'm trying in the Rename, Move & Copy Files dialog on Windows and clean([Artist] - [Name], 3) works fine.

I named my trusty Abba this:
a . b . c . Dancing Queen

And the name comes out as:
Abba - a. b. c. Dancing Queen

Are you maybe entering somewhere else?  Or are we looking at a Linux specific thing?

Thanks.
Logged
Matt Ashland, JRiver Media Center

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2554

I'm entering it into the filename field of handheld sync. I'm syncing to a FAT32 drive, not sure if that would be an issue.
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 41934
  • Shoes gone again!

I'm entering it into the filename field of handheld sync. I'm syncing to a FAT32 drive, not sure if that would be an issue.

I just entered the same expression for the "Audio Filename Rule" of a handheld, did the transfer, and got:
Abba - a . b . c .ape

So that seemed to work on Windows.

Maybe we'll try Linux tomorrow at the office.
Logged
Matt Ashland, JRiver Media Center

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2554

Additionally, using clean() in the filename options is not allowing the following tracks to be written to a FAT32 Sansa Clip Sport Plus.

Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 41934
  • Shoes gone again!

We just tried doing the same test using a FAT32 mount on Linux and it still worked fine.  The extra dots showed up at the end of the filename before the extension.

I'm not sure if there's something else we should be testing?

Thanks.

Here is the mounted filesystem with it's mounted parameters:
Code: [Select]
/dev/sde1 on /mnt/fat32 type vfat (rw,nosuid,nodev,noexec,relatime,uid=1000,gid=1000,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro,user=bob)
And the file we copied:
Code: [Select]
$ ls -l /mnt/fat32/Al\ Stewart/The\ Best\ Of\ Al\ Stewart\ -\ Songs\ From\ the\ Radio/
total 4920
-rwxr-xr-x 1 bob bob 5035965 Jul  9 10:03 Al Stewart - Delia's Gone - a.b.c...mp3

And the handheld filename rule:
Code: [Select]
Clean([Artist] - [Name], 3)
Logged
Matt Ashland, JRiver Media Center

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2554

It's also happening when I sync to my ext4 partition so let's forget about it being filesystem specific.

When I don't use a filename rule the file is synced correctly, which means that MC is capable of outputting dots correctly.

It's only when I use the filename rule that the filenames are truncated on dots. It doesn't matter if I use clean() or not, same issue.

I've tried inserting dots into both [Artist] and [Name] and they both truncate, so it's not field specific.

It looks like the temp file is created with the correct filename in the logs, but it's not logging the output filename so I can't tell if that's the problem area:
Code: [Select]
0007917: 139662236563200: Handheld: CHHUploadWorkerUploadThread::Thread: Creating file object (filename: /home/bryan/.jriver/Media Center 25/Temp/102 - A.A. Bondy - There's a Reason.mp3)
0007917: 139662236563200: Handheld: CHHUploadWorkerUploadThread::Thread: Sending upload command
0007917: 139662236563200: Handheld: CHHPluginThread::ProcessCommand: Start
0007917: 139662236563200: Handheld: CHHPluginThread::PerformFunctionCall: Start
0007917: 139662236563200: Handheld: CHHPluginThread::PerformFunctionCall: Posting message to plugin thread
0007917: 139662236563200: Handheld: CHHPluginThread::PerformFunctionCall: Blocking until call completes
0007917: 139666707810048: Handheld: CHHPluginThread::Thread: Command = 1025
0007917: 139666707810048: Handheld: CPortableDriveGeneric::Upload: Start
0007917: 139666707810048: Handheld: CPortableDriveBase::GetBasePathFromFile: Start
0007917: 139666707810048: Handheld: CPortableDriveBase::GetBasePathFromFile: Finish (0 ms)
0007918: 139666707810048: Handheld: CPortableDriveBase::TransferFile: Start
0007918: 139666707810048: Handheld: CPortableDriveBase::TransferFile: Filename: /home/bryan/.jriver/Media Center 25/Temp/102 - A.A. Bondy - There's a Reason.mp3
0007918: 139666707810048: Handheld: CPortableDriveBase::TransferFile: Opening input file
0007918: 139666707810048: Handheld: CPortableDriveBase::TransferFile: Analyzing input file
0007918: 139666707810048: Handheld: CPortableDriveBase::TransferFile: Creating output filename and path
0007918: 139666707810048: Handheld: CPortableDriveBase::TransferFile: Creating output file
0007918: 139666707810048: Handheld: CPortableDriveBase::TransferFile: Allocating space for file
0007918: 139666707810048: Handheld: CPortableDriveBase::TransferFile: Starting transfer loop
0007918: 139666707810048: Handheld: CPortableDriveBase::TransferFile:     Reading 7272098 bytes
0007921: 139666707810048: Handheld: CPortableDriveBase::TransferFile:     Writing 5813884 bytes
0007929: 139666707810048: Handheld: CPortableDriveBase::TransferFile:     Sending progress
0007929: 139666707810048: Handheld: CPortableDriveBase::TransferFile:     EOF
0007929: 139666707810048: Handheld: CPortableDriveBase::TransferFile: Finished transfer

Code: [Select]
>ls ./A*   
./A.A.mp3

I've been trying it with conversion/dsp on/off and it has no effect. Even when the original file is synced the filename is truncated.
Logged

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13487

It's also happening when I sync to my ext4 partition so let's forget about it being filesystem specific.

When I don't use a filename rule the file is synced correctly, which means that MC is capable of outputting dots correctly.

It's only when I use the filename rule that the filenames are truncated on dots. It doesn't matter if I use clean() or not, same issue.

I've tried inserting dots into both [Artist] and [Name] and they both truncate, so it's not field specific.

It looks like the temp file is created with the correct filename in the logs, but it's not logging the output filename so I can't tell if that's the problem area:
Code: [Select]
0007917: 139662236563200: Handheld: CHHUploadWorkerUploadThread::Thread: Creating file object (filename: /home/bryan/.jriver/Media Center 25/Temp/102 - A.A. Bondy - There's a Reason.mp3)
0007917: 139662236563200: Handheld: CHHUploadWorkerUploadThread::Thread: Sending upload command
0007917: 139662236563200: Handheld: CHHPluginThread::ProcessCommand: Start
0007917: 139662236563200: Handheld: CHHPluginThread::PerformFunctionCall: Start
0007917: 139662236563200: Handheld: CHHPluginThread::PerformFunctionCall: Posting message to plugin thread
0007917: 139662236563200: Handheld: CHHPluginThread::PerformFunctionCall: Blocking until call completes
0007917: 139666707810048: Handheld: CHHPluginThread::Thread: Command = 1025
0007917: 139666707810048: Handheld: CPortableDriveGeneric::Upload: Start
0007917: 139666707810048: Handheld: CPortableDriveBase::GetBasePathFromFile: Start
0007917: 139666707810048: Handheld: CPortableDriveBase::GetBasePathFromFile: Finish (0 ms)
0007918: 139666707810048: Handheld: CPortableDriveBase::TransferFile: Start
0007918: 139666707810048: Handheld: CPortableDriveBase::TransferFile: Filename: /home/bryan/.jriver/Media Center 25/Temp/102 - A.A. Bondy - There's a Reason.mp3
0007918: 139666707810048: Handheld: CPortableDriveBase::TransferFile: Opening input file
0007918: 139666707810048: Handheld: CPortableDriveBase::TransferFile: Analyzing input file
0007918: 139666707810048: Handheld: CPortableDriveBase::TransferFile: Creating output filename and path
0007918: 139666707810048: Handheld: CPortableDriveBase::TransferFile: Creating output file
0007918: 139666707810048: Handheld: CPortableDriveBase::TransferFile: Allocating space for file
0007918: 139666707810048: Handheld: CPortableDriveBase::TransferFile: Starting transfer loop
0007918: 139666707810048: Handheld: CPortableDriveBase::TransferFile:     Reading 7272098 bytes
0007921: 139666707810048: Handheld: CPortableDriveBase::TransferFile:     Writing 5813884 bytes
0007929: 139666707810048: Handheld: CPortableDriveBase::TransferFile:     Sending progress
0007929: 139666707810048: Handheld: CPortableDriveBase::TransferFile:     EOF
0007929: 139666707810048: Handheld: CPortableDriveBase::TransferFile: Finished transfer

Code: [Select]
>ls ./A*   
./A.A.mp3

I've been trying it with conversion/dsp on/off and it has no effect. Even when the original file is synced the filename is truncated.
I tried it with a different filename closer to yours and reproduced it.
Not sure what's going on yet.
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 41934
  • Shoes gone again!

This was a bugger, but next build should fix it.

We were stripping everything but the extension off the filename, but I don't think the extension was on the filename at that point so it just stripped anything else.

Thanks for the help.
Logged
Matt Ashland, JRiver Media Center

BryanC

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2554

Good news, thanks!
Logged
Pages: [1]   Go Up