INTERACT FORUM

Please login or register.

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

Author Topic: Handheld Sync Replacing Slash Characters in Field with Underscores  (Read 2946 times)

glynor

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

I've been trying to re-sync my phone for an upcoming trip, which I haven't actually been doing lately (because JRemote is usually good enough). I've hit a problem.  I've long used a system to sync between MC and iTunes.  It amounts to this:

1. I have a handheld device added to MC called iTunes which has a list of all files that are worth syncing to iTunes from my MC database.  This includes all music that I'd ever want to access, all Audiobooks, etc, but filters out Test Files, Podcasts, and other similar files.

2. This handheld device syncs to a location on a hard drive.  The Audio Path under Files, Paths, & More is simply: [Handheld Audio Path]\

3. [Handheld Audio Path] is a calculated field with the following expression:
Code: [Select]
Audio\If(IsEmpty([Media Sub Type]),Music,[Media Sub Type])\If(IsEmpty([Artist]),Unknown,Clean([Artist],3))\If(IsEmpty([Album]),Unknown,Clean([Album],3))If(IsEmpty([Disc #],1),,\[Disc #])
4. That expression works and spits out:


This setup has, for a long time, worked in the past. I previously had it automated, and I have a set of these files on my disk from the last time MC did the sync (which was probably quite some time ago, but not "forever").  I'd turned off the automation at one point, and was just tonight trying to fix it.  In any case, at some point in development, between late-MC19 and now (I'd guess), however, this existing setup that used to work, broke.

When I sync my files using this system, instead of the "expected path" of:
M:\iTunes_cache\Audio\Music\ABBA\Gold - Greatest Hits

I get:
M:\iTunes_cache\Audio_Music_ABBA_Gold - Greatest Hits
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Handheld Sync Replacing Slash Characters in Field with Underscores
« Reply #1 on: April 18, 2015, 12:51:38 pm »

bump
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Handheld Sync Replacing Slash Characters in Field with Underscores
« Reply #2 on: April 19, 2015, 09:21:29 am »

So, I figured out what it is doing now, and why it no longer works, but it stinks, so I'm hoping there's a way around it.  Basically, the Handheld engine is now parsing any fields you add to the File Path box and stripping out slashes.  If I paste the same expression (listed above) directly into the box, then it works correctly.

But that means I need to change the expression in two places if I ever need to tweak it (because the same expression is used by MCiS to generate the iTunes File Key).

Is there any way to disable this parsing?  Maybe if I wrap it in an expression of its own of some kind?
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

Cmagic

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1196
  • Enjoying life with a little music....
Re: Handheld Sync Replacing Slash Characters in Field with Underscores
« Reply #3 on: September 08, 2015, 07:20:21 am »

Hi Glynor,

Think I'm in the same boat.
I am using a calculated field to compute some (rather convoluted) file paths for use in various RMCF presets. All backslashes are now replaced by underscore when using the field!

Did you find any nice workaroud so as to avoid this automatic parsing?..

All the best,

Christian
Logged
Until the color of a man's skin is of no more significance
than the color of his eyes.
Bob Marley (War)

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
Re: Handheld Sync Replacing Slash Characters in Field with Underscores
« Reply #4 on: September 08, 2015, 07:56:35 am »

CMagic:  Are you using Rename, Move, and Copy?  If so, look in the lower part of the interface, just under the Preview Pane.  You'll see a check box for "replace slashes in expressions".  Turn that off and it will not replace slashes.

I've seen this problem in Handheld Sync and there is not a similar option that I'm aware of.

Brian.
Logged

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Handheld Sync Replacing Slash Characters in Field with Underscores
« Reply #5 on: September 08, 2015, 08:37:52 am »

Yes. I'd like the same option for Handheld Sync.
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

Cmagic

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1196
  • Enjoying life with a little music....
Re: Handheld Sync Replacing Slash Characters in Field with Underscores
« Reply #6 on: September 09, 2015, 12:48:11 am »

Wow! thanks Brian,

Exactly what I was looking for.
Hmmm, i've been using MC for many years and did not notice this checkbox in RMCF, thanks.

@Glynor. I checked handeld and, you're right no option of the kind in there.

Anyway now that we've bumped the topic, the option might appear in MC21? :=)

Have a nice day (or night) folks,

Christian

Logged
Until the color of a man's skin is of no more significance
than the color of his eyes.
Bob Marley (War)
Pages: [1]   Go Up