Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #2 (assigned defect)

Opened 4 years ago

Last modified 4 years ago

Make sure the directory monitoring is updated if the music folder is changed

Reported by: stuarth Owned by: stuarth
Priority: major Milestone: Release v1.0
Component: Plugin Version:
Keywords: Cc:

Description (last modified by stuarth) (diff)

If the folder is changed we need to make sure we remove existing monitors and add new ones (having first forgotten about any pending modifications that might have caused us to rescan one of the old folders).

We need to make sure that we don't do that until after any main SqueezeCenter rescan is finished.

Change History

comment:1 Changed 4 years ago by stuarth

  • Status changed from new to assigned

Strategy:

  1. Remember the current music folder setting when the rescan-done event is fired.
  2. When the rescan-done event fires check to see if the current music folder is the same as it was the last time we got a rescan-done - if it isn't then we know the music folder has changed.

If the music folder has changed then all the existing monitors should be removed (the event un-registered and the hash cleared), then added from scratch for the new folder as happens on plugin startup at the moment.

comment:2 Changed 4 years ago by stuarth

  • Description modified (diff)
Note: See TracTickets for help on using tickets.