Quantcast
Channel: Recent Discussions — Plex Forums
Viewing all articles
Browse latest Browse all 151235

How to generate a PLEX media list (videos) text file

$
0
0

I like to keep an off-line listing of all my movies in plex. I didn't see a way to generate a simple list from within plex itself so I wrote a SQL script to generate one from the plex database directly. Here is the code, maybe someone else will find this useful as well.

This is the (abbreviated) help from the top of the file:

Creates a nice listing of all video files in PLEX. There are three types of videos that are read and formatted: "TV Show", "Video" (has no meta scrapper), "Movie". All three video types are put into single list with distinct title formatting for each. Example output of one Video, Movie and TV show:

title                   section filesize container duration   bitrate   dimension video audio
----------------------- ------- -------- --------- ---------- --------- --------- ----- -----
Misc/Bears Superbowl XX Misc    1466 MB  avi       180.0 Mins 1.09 Mbps 640x480   mpeg4 mp3
Star Wars Ep IV (1977)  Movies1 13436 MB mkv       124.7 Mins 14.3 Mbps 1904x816  h264  dca
Cat in the Hat S01E01   Kids TV 523 MB   mp4       26.2 Mins  2.67 Mbps 1280x720  h264  aac

Requires sqlite3 to be installed or alternatively use just the single SQL statement in some other tool.

Basically, run it like this:
sqlite3 com.plexapp.plugins.library.db <plex_video_list.sql

I personally use this (under Windows with cygwin having sqlite3 installed):
$ sqlite3 "$LOCALAPPDATA/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.db" <plex_video_list.sql

The output video list text file "plex_video_list.txt" is created in the current dir.


Viewing all articles
Browse latest Browse all 151235

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>