Action Item #526

Consider migrating to using Plex database

Added by Hammel over 2 years ago. Updated about 2 years ago.

Status:In ProgressStart date:16 Jun 2016
Priority:UrgentDue date:
Assignee:Hammel% Done:

10%

Category:Database
Target version:PiBox - 0.12.0
Severity:01 - Critical

Description

This would work if I can query an existing Plex database for a specificied path (movie or TV). Then only use those in the local db using the original VideoFE format. The idea is that the user just needs to copy directory trees to a USB stick and then use VideoLib to parse out a local db from the associated Plex db from whence those trees came. It allows reuse of the Plex data in a simplified format.

Here are some links to review:
  1. Plex Web API Overview
  2. Plex export - for exporting data from the db
  3. Plex Media Server URL Commands
  4. Using the API to retrieve Library metadata

It isn't clear what version I'm running or which version these links support.

History

#1 Updated by Hammel over 2 years ago

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

To query for a particular movie video:

This will retrieve the JSON for that video, which can then be stored in the local db (modified as needed for videofe)

This hasn't been tested for TV shows but I think it should still work as long as the correct section is used. VideoLib will have to retrieve the sections and have the use select which sections are for movies and which are for TV shows.

#2 Updated by Hammel over 2 years ago

The following will retrieve data in JSON format:

curl -H "Accept: application/json" http://feynman.gfxmuse.org:32400/library/sections/2/all?title=A

#3 Updated by Hammel about 2 years ago

  • Priority changed from Immediate to Urgent

#4 Updated by Hammel about 2 years ago

  • Target version changed from 0.11.0 to 0.12.0

Also available in: Atom PDF