Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion resources/lib/listing/listing.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import json
import os.path
from abc import ABC, abstractmethod
from typing import Optional
import xbmcgui
Expand Down Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions resources/lib/stash_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ def find_scenes(self, scene_filter=None, sort_field='title', sort_dir='asc'):
audio_codec
width
height
path
}
studio {
name
Expand Down Expand Up @@ -124,6 +125,7 @@ def find_scene(self, id):
audio_codec
width
height
path
}
studio {
name
Expand Down Expand Up @@ -155,6 +157,7 @@ def find_scene(self, id):
audio_codec
width
height
path
}
studio {
name
Expand Down Expand Up @@ -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
}
Expand All @@ -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
Expand Down