INTERACT FORUM

Please login or register.

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

Author Topic: Handheld sync wants to resync constantly  (Read 3397 times)

mattkhan

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4231
Handheld sync wants to resync constantly
« on: December 26, 2015, 04:24:10 pm »

I setup a new handheld device to sync a particular playlist using the following expression as the target path

Code: [Select]
[Album Artist (auto)]\[Album]if(IsEmpty([Disc #]),,Delimit(field(disc #),,/\D))\

I executed the sync & the files are synced as expected.
I then immediately pressed "recheck sync", everything is back in the queue and it wants to sync all the files again but checking in windows explorer shows the files.
The jriver log shows a series of entries like

Code: [Select]
1091406: 8032: Handheld: CPortableDriveGeneric::GetFiles: File 'D:\MUSIC\Blondie\Atomic\16-One_Way_Or_Another.mp3' not found in the device database
1091406: 8032: Import: JRAnalyzer::Open: Start
1091406: 8032: Import: JRAnalyzer::AddFile: Start
1091406: 8032: Import: JRAnalyzer::AddFile: Filename: D:\MUSIC\Blondie\Atomic\16-One_Way_Or_Another.mp3
1091406: 8032: Import: JRAnalyzer::AddFileMJ: Start
1091406: 8032: Import: JRAnalyzer::AddFileMJ: Finish (0 ms)
1091406: 8032: Import: JRAnalyzer::AddFile: Finish (0 ms)
1091406: 8032: Import: JRAnalyzer::Open: Finish (0 ms)
1091422: 7428: Handheld: CHHPluginThread::PerformFunctionCall: Finish (result: 0) (16 ms)
1091422: 7428: Handheld: CHHPluginThread::ProcessCommand: Finish (16 ms)
1091422: 7428: Handheld: CHHManager::UpdatePluginDeviceInfo: Finish (16 ms)

If I cut and paste that path into explorer then it wants to play the file, i.e. it clearly exists.

If I go back to the sync options and change the path to

Code: [Select]
[Album Artist (auto)]\[Album]

and "recheck sync" again then it now thinks the files are on the device (even though the target path is not the same)

It seems that the expression in the path is leading jriver astray.

Am I doing something wrong or is this a bug?

Logged

mattkhan

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4231
Re: Handheld sync wants to resync constantly
« Reply #1 on: December 26, 2015, 05:44:59 pm »

I suspect this is leading to weird artefacts in the output.

For example, I can look at a particular device and it reports as fully synced but I look at the device itself and it has a listing like

Code: [Select]
/d/AUDIOBOOKS/David Walliams/Billionaire Boy
$ ls -la
total 101812
drwxr-xr-x 1 Matt Matt       0 Dec 26 22:39 .
drwxr-xr-x 1 Matt Matt       0 Dec 26 22:39 ..
-rw-r--r-- 1 Matt Matt 3146165 Dec 26 22:33 01-Chapter_1.mp3
-rw-r--r-- 1 Matt Matt 3354978 Dec 26 22:33 02-Chapter_2.mp3
-rw-r--r-- 1 Matt Matt 2960537 Dec 26 22:33 03-Chapter_3.mp3
-rw-r--r-- 1 Matt Matt 2939195 Dec 26 22:33 04-Chapter_4.mp3
-rw-r--r-- 1 Matt Matt 3087432 Dec 26 22:33 05-Chapter_5.mp3
-rw-r--r-- 1 Matt Matt 2669866 Dec 26 22:33 06-Chapter_6.mp3
-rw-r--r-- 1 Matt Matt 3142348 Dec 26 22:33 07-Chapter_7.mp3
-rw-r--r-- 1 Matt Matt 2646637 Dec 26 22:33 08-Chapter_8.mp3
-rw-r--r-- 1 Matt Matt 2392160 Dec 26 22:33 09-Chapter_9.mp3
-rw-r--r-- 1 Matt Matt 3811399 Dec 26 22:33 10-Chapter_10.mp3
-rw-r--r-- 1 Matt Matt 2642939 Dec 26 22:33 11-Chapter_11.mp3
-rw-r--r-- 1 Matt Matt 2417932 Dec 26 22:33 12-Chapter_12.mp3
-rw-r--r-- 1 Matt Matt 3345278 Dec 26 22:33 13-Chapter_13.mp3
-rw-r--r-- 1 Matt Matt 2616738 Dec 26 22:33 14-Chapter_14 (8).mp3
-rw-r--r-- 1 Matt Matt 2352779 Dec 26 22:33 15-Chapter_15 (8).mp3
-rw-r--r-- 1 Matt Matt 3008702 Dec 26 22:33 16-Chapter_16 (8).mp3
-rw-r--r-- 1 Matt Matt 3171932 Dec 26 22:33 17-Chapter_17 (8).mp3
-rw-r--r-- 1 Matt Matt 2904515 Dec 26 22:33 18-Chapter_18 (8).mp3
-rw-r--r-- 1 Matt Matt 2921811 Dec 26 22:33 19-Chapter_19 (6).mp3
-rw-r--r-- 1 Matt Matt 4308571 Dec 26 22:33 20-Chapter_20 (6).mp3
-rw-r--r-- 1 Matt Matt 2922209 Dec 26 22:33 21-Chapter_21.mp3
-rw-r--r-- 1 Matt Matt 3315007 Dec 26 22:33 22-Chapter_22.mp3
-rw-r--r-- 1 Matt Matt 3276888 Dec 26 22:33 23-Chapter_23.mp3
-rw-r--r-- 1 Matt Matt 3085749 Dec 26 22:33 24-Chapter_24.mp3
-rw-r--r-- 1 Matt Matt 2763663 Dec 26 22:33 25-Chapter_25.mp3
-rw-r--r-- 1 Matt Matt 2587374 Dec 26 22:33 26-Chapter_26.mp3
-rw-r--r-- 1 Matt Matt 3926299 Dec 26 22:33 27-Chapter_27.mp3
-rw-r--r-- 1 Matt Matt 2691286 Dec 26 22:33 28-Chapter_28.mp3
-rw-r--r-- 1 Matt Matt 2812822 Dec 26 22:33 29-Chapter_29.mp3
-rw-r--r-- 1 Matt Matt 4543293 Dec 26 22:33 30-Chapter_30.mp3
-rw-r--r-- 1 Matt Matt 3108428 Dec 26 22:33 31-Chapter_31 (3).mp3
-rw-r--r-- 1 Matt Matt 3282296 Dec 26 22:33 32-Chapter_32 (3).mp3
-rw-r--r-- 1 Matt Matt 3793368 Dec 26 22:33 33-Chapter_33 (2).mp3
-rw-r--r-- 1 Matt Matt 2225335 Dec 26 22:33 34-Chapter_34 (2).mp3

The sync doesn't seem to care about the filename but can see that all entries are present.

I'm not sure why handheld sync seems quite broken for me, I really haven't done anything odd that I can see. To think I was holding off writing a script to mung stuff onto a device :)
Logged

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
Re: Handheld sync wants to resync constantly
« Reply #2 on: December 26, 2015, 05:57:39 pm »

I've had quite a bit of unusual behavior with Handheld Sync.  Some things I can't even get the interpreter to process as a path.  In those cases, I've built a custom field instead that holds the expression.  Then I can just use the field name, and then it seems to be able to follow my expression for the path.

Maybe it's worth a try to put your expression into a field instead?  Just an idea.

Handheld Sync is sort of mysterious to me because there are many reports of it acting strangely.  For my part, I can't seem to figure out how it determines when a device is connected.  It seems to store the device definition in one of it's INI files, but it doesn't seem to consistently detect when the same device is connected.  I don't have tons of experimentation time in with this, but I've certainly had to redefine a device several times due to this.

Handheld Sync is one of those things that's really great in theory, but I'm having trouble with it in practice.

Brian.
Logged

mattkhan

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4231
Re: Handheld sync wants to resync constantly
« Reply #3 on: December 26, 2015, 06:12:43 pm »

thanks for the tip (re using a predefined field).

Have you got things to work reliably in any use cases?
Logged

mattkhan

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4231
Re: Handheld sync wants to resync constantly
« Reply #4 on: December 26, 2015, 06:16:57 pm »

following up on the earlier comment about odd filenames, I deleted everything and resynced. Now every single filename has a suffix like "foo (x).mp3" where x is presumably the no of times it has synced the file over.
Logged

mattkhan

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4231
Re: Handheld sync wants to resync constantly
« Reply #5 on: December 28, 2015, 06:41:08 pm »

Handheld Sync is one of those things that's really great in theory, but I'm having trouble with it in practice.
fwiw I put together a short script that can do a cutdown handheld sync good enough for my use case (i.e. take a flac library, mix with a playlist, convert to mp3 and dump to a particular file when a device is plugged in)

works on linux anyway (probably works on cygwin too) -> https://github.com/3ll3d00d/jrmc-utils
Logged

blgentry

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 8014
Re: Handheld sync wants to resync constantly
« Reply #6 on: December 28, 2015, 07:00:33 pm »

thanks for the tip (re using a predefined field).

Have you got things to work reliably in any use cases?

I missed this when you wrote it.  My experimentation with a complex path definition was an experiment I was doing to try to do some library copying tasks.  I ended up scrapping it because I couldn't get it to do what I wanted.

Otherwise, my use of Handheld Sync has been pretty basic:  Just simple paths and a couple of smartlists to drive it.  My main problem has been with handheld definition.  I've also had seemingly inconsistent behavior with what's on the device, versus what gets copied.  It seems like it tries to duplicate some files, but honestly, I can't document anything specific.  It's just something I noticed a few times more than a month ago and I don't have any specifics.  I guess I'm trying to say that Handheld Sync mostly works, but seems to act weird for me.  If I find anything specific that's worth mentioning, I'll try to post about it.

Brian.
Logged
Pages: [1]   Go Up