Remove old itemtypes

This commit is contained in:
croneter 2018-10-24 15:23:38 +02:00
parent 205dc3fab8
commit e7899d656d
3 changed files with 2 additions and 1847 deletions

File diff suppressed because it is too large Load diff

View file

@ -10,15 +10,12 @@ from . import plexdb_functions as plexdb
from . import kodidb_functions as kodidb
from .plex_api import API
from . import variables as v
###############################################################################
LOG = getLogger('PLEX.itemtypes.common')
# Note: always use same order of URL arguments, NOT urlencode:
# plex_id=<plex_id>&plex_type=<plex_type>&mode=play
###############################################################################
def process_path(playurl):
"""

View file

@ -998,7 +998,7 @@ def playlist_xsp(mediatype, tagname, viewid, viewtype="", delete=False):
# Using write process since there's no guarantee the xml declaration works
# with etree
itemtypes = {
kinds = {
'homevideos': 'movies',
'movie': 'movies',
'show': 'tvshows'
@ -1014,7 +1014,7 @@ def playlist_xsp(mediatype, tagname, viewid, viewtype="", delete=False):
'<value>%s</value>\n\t'
'</rule>\n'
'</smartplaylist>\n'
% (itemtypes.get(mediatype, mediatype), plname, tagname)))
% (kinds.get(mediatype, mediatype), plname, tagname)))
LOG.info("Successfully added playlist: %s", tagname)