INTERACT FORUM

Please login or register.

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

Author Topic: Audio Filename Rule won't works with dot [Solved]  (Read 1292 times)

vaso65

  • Junior Woodchuck
  • **
  • Posts: 54
Audio Filename Rule won't works with dot [Solved]
« on: June 28, 2022, 11:55:43 am »

Hello,

I have always used these rules to synchronize devices:

Audio filename rule: if(isequal([genre], Classica),/([composer]/) [Album] /([opera]/)[Disc #].[Track #].[Name],[Disc #].[Track #] - [Name])

From some releases it seems that the dot (in this case between [disc #] and [track #]) is no longer considered as before

for example:
   if there is a dot in the formula ([Disc #].[Track #]), the final name of the file is: 1.mp3  (1 is the disc number)
   if in the formula there is the - instead of the period ([Disc #]-[Track #]) the name of the final file is: 1-5 - Tainted Love.mp3
the correct file name has always been 1.5 - Tainted Love.mp3

I also tried treating it as a special "/." but it does not work

This problem is independent of the device used as destination (smartphone, pen-drive, ext-HD)

Thanks in advance
Logged

lepa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2033
Re: [BUG (?)] Audio Filename Rule won't works with dot
« Reply #1 on: June 28, 2022, 02:36:46 pm »

Audio filename rule: if(isequal([genre], Classica),/([composer]/) [Album] /([opera]/)[Disc #].[Track #].[Name],[Disc #].[Track #] - [Name])
seems to work as expected for me. Are you sure you didn't do some typo? That 1 you are seeing could also be true value from the IF decision, if you have a convenient typo. If you cold post example screenshot from RMC tool maybe someone could see if there is some problem with the expression in there
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2620
Re: [BUG (?)] Audio Filename Rule won't works with dot
« Reply #2 on: June 28, 2022, 02:52:04 pm »

Is this the full expression or is there more before/after it to handle other cases?
The "1" looks like the output of some boolean expression, perhaps it's not the Disc#.
Logged

vaso65

  • Junior Woodchuck
  • **
  • Posts: 54
Re: [BUG (?)] Audio Filename Rule won't works with dot
« Reply #3 on: June 29, 2022, 02:44:56 am »

The problem is not related to the "IF" but to the formatting of the file name.

I have simplified the formula so that it only contains the error.
I have attached the print screen with the formula in error (on the left) and the correct one (on the right)

ps I made the redetect of the devices so as not to have "clicked" some flags by mistake.
Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2620
Re: [BUG (?)] Audio Filename Rule won't works with dot
« Reply #4 on: June 29, 2022, 03:21:27 am »

Can you check if this happens only on filenames which have parenthesis? Like that "(demo)".
Logged

vaso65

  • Junior Woodchuck
  • **
  • Posts: 54
Re: [BUG (?)] Audio Filename Rule won't works with dot
« Reply #5 on: June 29, 2022, 03:31:58 am »

Can you check if this happens only on filenames which have parenthesis? Like that "(demo)".

The anomaly does not depend on the characters contained in the filename, I have tried with several files with or without special character


Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2620
Re: [BUG (?)] Audio Filename Rule won't works with dot
« Reply #6 on: June 29, 2022, 03:57:50 am »

OK. But you say it happens "for some releases". That means it only happens on some files, correct? Can you find a commonality between them? Something is triggering the issue (which looks like a bug)
Which exact version of MC are you using?

Quote
The anomaly does not depend on the characters contained in the filename
You mean the [Name] field right? The filename is then generated out of that.
Logged

vaso65

  • Junior Woodchuck
  • **
  • Posts: 54
Re: [BUG (?)] Audio Filename Rule won't works with dot
« Reply #7 on: June 29, 2022, 04:17:32 am »

OK. But you say it happens "for some releases". That means it only happens on some files, correct? Can you find a commonality between them? Something is triggering the issue (which looks like a bug)
Which exact version of MC are you using?

I tried with releases 28 and 29. (on Windows 11)
"From some release" I mean this effect appeared with an MC build that I don't know of.
I'm sure the formula worked because on my device, updated some time ago, the files had the correct file name.

You mean the [Name] field right? The filename is then generated out of that.
Yes

News:
(After many tests) It would seem that the dot is interpreted as the end of the filename so not all the formula is applied but only the first part, so the result is always disk_number.mp3

If I put a final dot [Disc #].[Track #] - [Name].  in the formula, the formula is solved correctly and the filename is correct.

Logged

zybex

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2620
Re: [BUG (?)] Audio Filename Rule won't works with dot
« Reply #8 on: June 29, 2022, 04:34:48 am »

News:
(After many tests) It would seem that the dot is interpreted as the end of the filename so not all the formula is applied but only the first part, so the result is always disk_number.mp3

If I put a final dot [Disc #].[Track #] - [Name].  in the formula, the formula is solved correctly and the filename is correct.

Great, that looks like the source of the bug :)

@Matt, can you please check what happens with multiple dots on the filename rule? Looks like a bug.
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42387
  • Shoes gone again!
Re: [BUG (?)] Audio Filename Rule won't works with dot
« Reply #9 on: June 29, 2022, 06:43:21 am »

We see the stuff after the dot as the extension on the filename because we don't put an extension on it when checking.

I'll try to fix it today.  Thanks for the help.
Logged
Matt Ashland, JRiver Media Center

vaso65

  • Junior Woodchuck
  • **
  • Posts: 54
Re: [BUG (?)] Audio Filename Rule won't works with dot
« Reply #10 on: June 29, 2022, 07:56:21 am »

Just to point out that during the checks I noticed that the formula [Disc #].[Track #] - [Name] (without last point) works correctly if used in the "Rename, move & copy files" window
Logged

lepa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2033
Re: [BUG (?)] Audio Filename Rule won't works with dot
« Reply #11 on: June 29, 2022, 08:41:38 am »

Yep, I checked it with RMC because I missed the handheld part for original post... ::)
So there it is working
Logged

vaso65

  • Junior Woodchuck
  • **
  • Posts: 54
Re: [BUG (?)] Audio Filename Rule won't works with dot
« Reply #12 on: June 29, 2022, 08:48:46 am »

So there it is working

Yes. The problem is present only in the configuration of handhelds
Logged

vaso65

  • Junior Woodchuck
  • **
  • Posts: 54
Re: [BUG (?)] Audio Filename Rule won't works with dot
« Reply #13 on: July 02, 2022, 05:38:11 am »

Another information

I mistakenly said "If I put a final dot [Disc #]. [Track #] - [Name]. In the formula, the formula is solved correctly and the filename is correct." but it is not fully correct.

The final point allows the construction of the file name but it is no longer possible to manage the extension

I have tried several workarounds but at the moment in the management of handhelds they do not work
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42387
  • Shoes gone again!
Re: [BUG (?)] Audio Filename Rule won't works with dot
« Reply #14 on: July 05, 2022, 10:23:07 am »

Should be fixed here:
https://yabb.jriver.com/interact/index.php/topic,133470.0.html

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

vaso65

  • Junior Woodchuck
  • **
  • Posts: 54
Re: Audio Filename Rule won't works with dot [Solved]
« Reply #15 on: July 05, 2022, 10:41:56 am »

Should be fixed here:
https://yabb.jriver.com/interact/index.php/topic,133470.0.html

Testing appreciated.  Thanks for the help.


I have done some tests and it seems to be working fine.

Thank you.
Logged
Pages: [1]   Go Up