diff --git a/resources/lib/listing/listing.py b/resources/lib/listing/listing.py index a93d503..0b7d12d 100644 --- a/resources/lib/listing/listing.py +++ b/resources/lib/listing/listing.py @@ -1,4 +1,5 @@ import json +import os.path from abc import ABC, abstractmethod from typing import Optional import xbmcgui @@ -74,7 +75,8 @@ def _create_items(self, criterion: dict, sort_field: str, sort_dir: int, params: pass def _create_item(self, scene: dict, **kwargs): - title = kwargs['title'] if 'title' in kwargs else scene['title'] + title = kwargs['title'] if 'title' in kwargs else scene['title'] \ + if not scene['title'] == '' else os.path.split(scene['files'][0]['path'])[1] screenshot = kwargs['screenshot'] if 'screenshot' in kwargs else scene['paths']['screenshot'] file = scene['files'][0] # / 10 because rating is 1 to 100 and Kodi uses 1 to 10 diff --git a/resources/lib/stash_interface.py b/resources/lib/stash_interface.py index c28a177..4220a38 100644 --- a/resources/lib/stash_interface.py +++ b/resources/lib/stash_interface.py @@ -66,6 +66,7 @@ def find_scenes(self, scene_filter=None, sort_field='title', sort_dir='asc'): audio_codec width height + path } studio { name @@ -124,6 +125,7 @@ def find_scene(self, id): audio_codec width height + path } studio { name @@ -155,6 +157,7 @@ def find_scene(self, id): audio_codec width height + path } studio { name @@ -296,6 +299,8 @@ def find_scene_markers(self, markers_filter=None, sort_field='title', sort_dir=0 rating100 date created_at + resume_time + last_played_at paths { screenshot } @@ -305,9 +310,11 @@ def find_scene_markers(self, markers_filter=None, sort_field='title', sort_dir=0 audio_codec width height + path } studio { name + image_path } performers { name