INTERACT FORUM

Please login or register.

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

Author Topic: [BUG?] handheld sync creates endless dupes  (Read 1123 times)

mattkhan

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3981
[BUG?] handheld sync creates endless dupes
« on: October 16, 2017, 03:27:57 am »

I have created a device which is just some location on disk, told it to sync all audio and applied some basic options (see pic) including an expression for the path as follows

Code: [Select]
removecharacters(replace(if(isequal([Album Artist (Auto)],/(Multiple Artists/),0),Various,[Album Artist (Auto)])\[Album]if(isempty([Disc #]),\,\D[Disc #]\),/ ,_),/://)\

the result is an apparently endless stream of dupes, it creates a new file for every single library entry every single time I press sync. It also creates some files with cache in the title as well (conversion cache path was at the default value) though didn't seem to do this for every single one. Example directory is shown in the attached pic.

This looks like a bug to me.

Version tested = 23.0.73


Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42046
  • Shoes gone again!
Re: [BUG?] handheld sync creates endless dupes
« Reply #1 on: October 16, 2017, 09:24:07 am »

I think it's just the trailing slash causing trouble.

Because this works fine:
Code: [Select]
removecharacters(replace(if(isequal([Album Artist (Auto)],/(Multiple Artists/),0),Various,[Album Artist (Auto)])\[Album]if(isempty([Disc #]),,\D[Disc #]),/ ,_),/://)\
And this syncs over and over:
Code: [Select]
removecharacters(replace(if(isequal([Album Artist (Auto)],/(Multiple Artists/),0),Various,[Album Artist (Auto)])\[Album]if(isempty([Disc #]),\,\D[Disc #]\),/ ,_),/://)\
As for why that's happening, we're still investigating.
Logged
Matt Ashland, JRiver Media Center

mattkhan

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3981
Re: [BUG?] handheld sync creates endless dupes
« Reply #2 on: October 16, 2017, 09:52:34 am »

ah ok, good spot, thanks.

FWIW I originally had the filename in this path until I realised this only controls the directory and you can't set the filename (and hence suggesting https://yabb.jriver.com/interact/index.php/topic,112049.msg779627.html#msg779627 as one for the 1hr spot)

I did have another idea around readability of expressions but I figured that had no chance of fitting in the 1hr window
Logged
Pages: [1]   Go Up