Rename function
This commit is contained in:
parent
81f0fe1157
commit
b93925d678
2 changed files with 7 additions and 8 deletions
|
@ -314,8 +314,8 @@ def GetPlexCollections(mediatype):
|
||||||
return collections
|
return collections
|
||||||
|
|
||||||
|
|
||||||
def GetPlexPlaylist(itemid, librarySectionUUID, mediatype='movie',
|
def init_plex_playqueue(itemid, librarySectionUUID, mediatype='movie',
|
||||||
trailers=False):
|
trailers=False):
|
||||||
"""
|
"""
|
||||||
Returns raw API metadata XML dump for a playlist with e.g. trailers.
|
Returns raw API metadata XML dump for a playlist with e.g. trailers.
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -14,7 +14,7 @@ from utils import window, settings, tryEncode, tryDecode, language as lang
|
||||||
import downloadutils
|
import downloadutils
|
||||||
|
|
||||||
from PlexAPI import API
|
from PlexAPI import API
|
||||||
from PlexFunctions import GetPlexPlaylist
|
from PlexFunctions import init_plex_playqueue
|
||||||
from PKC_listitem import PKC_ListItem as ListItem, convert_PKC_to_listitem
|
from PKC_listitem import PKC_ListItem as ListItem, convert_PKC_to_listitem
|
||||||
from playlist_func import add_item_to_kodi_playlist, \
|
from playlist_func import add_item_to_kodi_playlist, \
|
||||||
get_playlist_details_from_xml, add_listitem_to_Kodi_playlist, \
|
get_playlist_details_from_xml, add_listitem_to_Kodi_playlist, \
|
||||||
|
@ -134,11 +134,10 @@ class PlaybackUtils():
|
||||||
else:
|
else:
|
||||||
trailers = True
|
trailers = True
|
||||||
# Post to the PMS. REUSE THE PLAYQUEUE!
|
# Post to the PMS. REUSE THE PLAYQUEUE!
|
||||||
xml = GetPlexPlaylist(
|
xml = init_plex_playqueue(plex_id,
|
||||||
plex_id,
|
plex_lib_UUID,
|
||||||
plex_lib_UUID,
|
mediatype=api.getType(),
|
||||||
mediatype=api.getType(),
|
trailers=trailers)
|
||||||
trailers=trailers)
|
|
||||||
get_playlist_details_from_xml(playqueue, xml=xml)
|
get_playlist_details_from_xml(playqueue, xml=xml)
|
||||||
|
|
||||||
if (not homeScreen and not seektime and sizePlaylist < 2 and
|
if (not homeScreen and not seektime and sizePlaylist < 2 and
|
||||||
|
|
Loading…
Reference in a new issue