From 4f6156cf30d047a6f8a4a61ad8c6073efa2815cc Mon Sep 17 00:00:00 2001 From: croneter Date: Fri, 9 Aug 2019 15:40:39 +0200 Subject: [PATCH] Rename class to PlaylistItem --- resources/lib/playlist_func.py | 8 ++++---- resources/lib/playutils.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/resources/lib/playlist_func.py b/resources/lib/playlist_func.py index 56322a5f..7fde8bd4 100644 --- a/resources/lib/playlist_func.py +++ b/resources/lib/playlist_func.py @@ -130,7 +130,7 @@ class Playqueue_Object(object): LOG.debug('Playlist cleared: %s', self) -class Playlist_Item(object): +class PlaylistItem(object): """ Object to fill our playqueues and playlists with. @@ -319,7 +319,7 @@ def playlist_item_from_kodi(kodi_item): Supply with data['item'] as returned from Kodi JSON-RPC interface. kodi_item dict contains keys 'id', 'type', 'file' (if applicable) """ - item = Playlist_Item() + item = PlaylistItem() item.kodi_id = kodi_item.get('id') item.kodi_type = kodi_item.get('type') if item.kodi_id: @@ -398,7 +398,7 @@ def playlist_item_from_plex(plex_id): Returns a Playlist_Item """ - item = Playlist_Item() + item = PlaylistItem() item.plex_id = plex_id with PlexDB(lock=False) as plexdb: db_item = plexdb.item_by_id(plex_id) @@ -421,7 +421,7 @@ def playlist_item_from_xml(xml_video_element, kodi_id=None, kodi_type=None): xml_video_element: etree xml piece 1 level underneath """ - item = Playlist_Item() + item = PlaylistItem() api = API(xml_video_element) item.plex_id = api.plex_id item.plex_type = api.plex_type diff --git a/resources/lib/playutils.py b/resources/lib/playutils.py index 755dded1..d7eec3d6 100644 --- a/resources/lib/playutils.py +++ b/resources/lib/playutils.py @@ -17,7 +17,7 @@ class PlayUtils(): def __init__(self, api, playqueue_item): """ init with api (PlexAPI wrapper of the PMS xml element) and - playqueue_item (Playlist_Item()) + playqueue_item (PlaylistItem()) """ self.api = api self.item = playqueue_item