diff --git a/resources/lib/plex_api.py b/resources/lib/plex_api.py index d3df72e5..2eb66b99 100644 --- a/resources/lib/plex_api.py +++ b/resources/lib/plex_api.py @@ -485,12 +485,11 @@ class API(object): return cast(unicode, self.item.get('title', 'Missing Title Name')) def sorttitle(self): - """ + """ Returns an item's sorting name/title or the title itself if not found "Missing Title" if both are not present """ - return cast(unicode, self.item.get('titleSort', - self.item.get('title','Missing Title'))) + return cast(unicode, self.item.get('titleSort', self.item.get('title', 'Missing Title'))) def artist_name(self): """