Feature #454

Need to support auto-detect of new video databases

Added by Hammel about 5 years ago. Updated 5 months ago.

Status:ClosedStart date:29 Jun 2015
Priority:UrgentDue date:
Assignee:Hammel% Done:

100%

Category:Database
Target version:PiBox - 1.1.0 - Upgrades
Severity:03 - Medium

Description

VideoFE doesn't support handling of hot-plugged USB sticks. To support these I need to have a thread that continues scanning and updates the local db. This includes plugging in a new stick and removing an existing one. It probably makes sense for the thread to use a double-buffered db: create one and then quickly (via mutex lock) replace the current one.

Associated revisions

Revision 7aa22a61
Added by Hammel 5 months ago

RM #454: Add watcher thread that uses inotify to look for db changes and updates the display immediately.

Revision edca0865
Added by Hammel 5 months ago

RM #454: Don't update lists until a TAB is used (avoids possible async references). Fix poster display to be appropriate for which db type is being displayed, including showing no poster if there are no entries for a given db. Fix buffer overrun when reading config file.

History

#1 Updated by Hammel about 5 years ago

  • Subject changed from Need to support auto-detect of new libraries to Need to support auto-detect of new video databases

#2 Updated by Hammel about 4 years ago

Actually what I need is to use inotify to watch for directory changes. This is much more efficient than the scanning I'm currently doing. I just need a thread to handle the inotify events.

#3 Updated by Hammel almost 4 years ago

  • Target version changed from 0.11.0 to 0.12.0

#4 Updated by Hammel over 1 year ago

  • Target version changed from 0.12.0 to 1.1.0 - Upgrades

#5 Updated by Hammel 5 months ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 70

This is close to done. I've got the inotify stuff working. The problem now is how I update the poster. That gets updated when the liststore is changed. However, if the liststore is cleared then the poster remains. Also, the poster doesn't get cleared if we switch from movies to TV or back.

I have code now that does do this but it's crashing because of some memory leak. Fix that and I can call this done.

#6 Updated by Hammel 5 months ago

  • Status changed from In Progress to Closed
  • % Done changed from 70 to 100

Done. Buffer overrun in reading config file was causing crashes. Poster update is now fixed. Dynamic updates are NOT done but if a db disappears and user tries to use a removed entry the app switches to the other db, which will be updated at that point.

Tested, committed and pushed.

Closing issue.

Also available in: Atom PDF