Bug #340

Drop UI's videos array

Added by Hammel over 3 years ago. Updated over 3 years ago.

Status:ClosedStart date:02 Jun 2014
Priority:NormalDue date:
Assignee:Hammel% Done:

100%

Category:UI
Target version:PiBox - 0.9.0
Severity:03 - Medium

Description

The UI keeps a list of Video objects separate from the LocalDB class. This causes problems. The fix is as follows.
  1. A directory scan computes the ListName and queries the DB for it.
  2. If found then the ListName is used in the list.
  3. If not found, then a new Video object is created and the ListName set and used in the list. The video object is added to the db.

From that point on the localDB should be queried for Video objects and the UI's videos array should be removed.

Associated revisions

Revision ce4d684e
Added by Hammel over 3 years ago

RM #339, RM #340: Make video file paths relative to video directory. Drop Video array used by UI and merge usage with LocalDB requirements, which means merging usage of filename, displayname and listname.

Revision ce4d684e
Added by Hammel over 3 years ago

RM #339, RM #340: Make video file paths relative to video directory. Drop Video array used by UI and merge usage with LocalDB requirements, which means merging usage of filename, displayname and listname.

Revision a0191b16
Added by Hammel over 3 years ago

RM #339, RM #340: Merge usage of filename, listname and displayname. Fix getVideo() to do lookups based on displayname.

Revision a0191b16
Added by Hammel over 3 years ago

RM #339, RM #340: Merge usage of filename, listname and displayname. Fix getVideo() to do lookups based on displayname.

Revision a6ffc635
Added by Hammel over 3 years ago

RM #331, RM #339, RM #340: Update movie list from DB only using new method. Show display name in TMDB field to allow editing. Load images based on relative paths. Use db entry when doing scan of tmdb. Set default paths when loading a new directory. Don't rebuild db if specified directory doesn't exist.

Revision a6ffc635
Added by Hammel over 3 years ago

RM #331, RM #339, RM #340: Update movie list from DB only using new method. Show display name in TMDB field to allow editing. Load images based on relative paths. Use db entry when doing scan of tmdb. Set default paths when loading a new directory. Don't rebuild db if specified directory doesn't exist.

History

#1 Updated by Hammel over 3 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

The use of a private array for Video objects in the UI has been removed and now only the LocalDB is used to store Video objects. The UI makes use of the db whenever it needs to access a video object.

This issue can be closed.

Also available in: Atom PDF