Bug 4523 - Can't Rescan from Squeezebox
: Can't Rescan from Squeezebox
Status: RESOLVED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Plugin
: 6.5.1
: PC Windows XP
: P2 normal (vote)
: ---
Assigned To: Chris Owens
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-11-19 00:30 UTC by Philip Meyer
Modified: 2007-01-24 23:18 UTC (History)
1 user (show)

See Also:
Category: ---


Attachments
may work (517 bytes, patch)
2006-11-19 02:23 UTC, KDF
Details | Diff
patch against trunk (2.27 KB, patch)
2006-12-10 14:59 UTC, KDF
Details | Diff
Rescan.pm patch for 6.5.1 (2.47 KB, patch)
2006-12-11 01:33 UTC, Philip Meyer
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Philip Meyer 2006-11-19 00:30:10 UTC
On a squeezebox client, the rescan plugin has an option "Press PLAY to rescan now ->".

I have tried pressing play, but the rescan doesn't happen.  I see a bump-left animation.

As there is also a Right-Arrow on the right-hand side of the option, I tried to press the
right-arrow button on the remote, but that doesn't do anything.

In desperation, I managed to perform the rescan from the squeezebox by setting a rescan time
of 1 min in the future, and then set the Rescan timer ON.  The rescan worked.  I then turned the
timer OFF.

SlimServer Version: 6.5.1 - TRUNK - Windows XP - EN - cp1252
Server IP address: 192.168.1.2
Perl Version: 5.8.8 MSWin32-x86-multi-thread
MySQL Version: 5.0.24-community-nt
Comment 1 KDF 2006-11-19 02:23:12 UTC
Created attachment 1720 [details]
may work

this should do what is required, but I haven't had time to test.
Comment 2 Philip Meyer 2006-11-19 03:27:51 UTC
That seems to fix the play button to start the rescan, thanks.

There's still the spurious right-arrow on the display though (or is there meant to be further options by pressing right-arrow?)
Comment 3 Philip Meyer 2006-12-10 07:35:31 UTC
I tried to do a rescan from a Squeezebox again today.
I selected a rescan type of "Clear library and rescan everything", but it didn't clear the library.
It also didn't find new music that I know I have recently entered in my library.

I tried twice - the first attempt was from a Squeezebox, the second from softsqueeze.
Looking in the log, it does indicate that a rescan was started:

2006-12-10 14:51:27.7484 About to look for files in M:\Music\SlimServer Music
2006-12-10 14:51:27.7616 For files with extensions in: [(?i-xsm:\.(?:ape|wma|wav|wave|mp3|mp2|flc|flac|m4a|mov|m4b|mp4|mp+|mpc|ogg|aif|aiff|lnk|cue)$)]
2006-12-10 14:52:37.5125 Found 59 files in M:\Music\SlimServer Music
2006-12-10 14:52:43.0755 About to look for files in M:\Music\SlimServer Playlists
2006-12-10 14:52:43.0768 For files with extensions in: [(?i-xsm:\.(?:asf|wax|asx|lnk|wpl|m3u|pls|xspf|cue|lnk)$)]
2006-12-10 14:52:48.8875 Found 1 files in M:\Music\SlimServer Playlists
2006-12-10 14:53:58.4744 CustomScan: Skipping artist Various Artists
2006-12-10 14:54:00.7483 CustomScan: Skipping album No Album
2006-12-10 15:27:49.7846 About to look for files in M:\Music\SlimServer Music
2006-12-10 15:27:49.7857 For files with extensions in: [(?i-xsm:\.(?:ape|wma|wav|wave|mp3|mp2|flc|flac|m4a|mov|m4b|mp4|mp+|mpc|ogg|aif|aiff|lnk|cue)$)]
2006-12-10 15:28:08.7528 Found 12 files in M:\Music\SlimServer Music
2006-12-10 15:28:09.7220 About to look for files in M:\Music\SlimServer Playlists
2006-12-10 15:28:09.7232 For files with extensions in: [(?i-xsm:\.(?:asf|wax|asx|lnk|wpl|m3u|pls|xspf|cue|lnk)$)]
2006-12-10 15:29:20.8756 CustomScan: Skipping artist Various Artists
2006-12-10 15:29:22.8279 CustomScan: Skipping album No Album


I noticed quite a lot of hard-disk chatter the second time.  I think this is because after a scan, other plugins
receive a notification of a rescan and perform their custom actions.

I'm suprised that this bug hasn't been allocated to someone yet - I think it should be fixed for the 6.5.1 official release.
Comment 4 Philip Meyer 2006-12-10 07:39:39 UTC
I take back the bit about it not finding new music - I must have had temporary blindness,
because I can now see the new album that I added.

I certainly didn't clear the library and do a full rescan though.
Comment 5 KDF 2006-12-10 14:59:24 UTC
Created attachment 1735 [details]
patch against trunk

this will get rid of the unnecessary right arrow, and pressing PLAY will trigger a scan of the type selected by the rescantype pref.

patch does not apply to 6.5, but should still work if patched manually.
Comment 6 Philip Meyer 2006-12-11 01:33:59 UTC
Created attachment 1736 [details]
Rescan.pm patch for 6.5.1

This combines both of KDF's patches, and reverts the trace logging call to work in  6.5.1 (logger is 7.0?).
Comment 7 KDF 2006-12-12 12:43:56 UTC
patch in trunk at change 10950.

will leave open and create changelog entry when a target is decided 
Comment 8 KDF 2007-01-24 23:18:24 UTC
Applied to 6.5 branch at change 11276. so, this can be closed at least.