From 968132099e1b7b78a2b9c226504a1b5ee24d0a9c Mon Sep 17 00:00:00 2001 From: Jonathan Wong Date: Tue, 20 Oct 2015 22:38:43 -0700 Subject: [PATCH 01/13] Change metadata 'type' to 'media_type' --- data/interfaces/default/info.html | 82 +++++++++++++++---------------- plexpy/datafactory.py | 2 +- plexpy/pmsconnect.py | 24 ++++----- plexpy/webserve.py | 8 +-- 4 files changed, 59 insertions(+), 57 deletions(-) diff --git a/data/interfaces/default/info.html b/data/interfaces/default/info.html index 197fda70..f77127e2 100644 --- a/data/interfaces/default/info.html +++ b/data/interfaces/default/info.html @@ -11,7 +11,7 @@ data :: Usable parameters (if not applicable for media type, blank value will be == Global keys == rating_key Returns the unique identifier for the media item. -type Returns the type of media. Either 'movie', 'show', 'season', 'episode', 'artist', 'album', or 'track'. +meida_type Returns the type of media. Either 'movie', 'show', 'season', 'episode', 'artist', 'album', or 'track'. art Returns the location of the item's artwork title Returns the name of the movie, show, episode, artist, album, or track. duration Returns the standard runtime of the media. @@ -60,7 +60,7 @@ DOCUMENTATION :: END % if data:
- % if data['type'] != 'library': + % if data['media_type'] != 'library':
% endif
@@ -68,7 +68,7 @@ DOCUMENTATION :: END
- % if data['type'] != 'library': + % if data['media_type'] != 'library':