Skip to content

Commit

Permalink
Prepend show titles to recent episode labels
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Miroshnychenko committed Dec 12, 2023
1 parent ca6a25c commit 918ef9d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 4 additions & 2 deletions plugin.video.external.library/addon.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon id="plugin.video.external.library"
version="1.0.0"
version="1.0.1"
name="External Kodi Videolibrary Client"
provider-name="Roman V.M.">
<requires>
Expand All @@ -20,7 +20,9 @@
<icon>icon.png</icon>
</assets>
<source>https://github.com/romanvm/kodi.external.library</source>
<news>1.0.0: Initial public release.</news>
<news>1.0.1: Add show titles to recent episode item labels.

1.0.0: Initial public release.</news>
<reuselanguageinvoker>true</reuselanguageinvoker>
</extension>
</addon>
5 changes: 5 additions & 0 deletions plugin.video.external.library/libs/content_type_handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,11 @@ def get_plugin_category(self) -> str:
def get_sort_methods(self) -> List[int]:
return []

def get_media_items(self) -> Iterable[Dict[str, Any]]:
for media_item in super().get_media_items():
media_item['title'] = f'{media_item["showtitle"]} - {media_item["label"]}'
yield media_item


class MusicVideosHandler(PlayableContentMixin, BaseContentTypeHandler):
mediatype = 'musicvideo'
Expand Down

0 comments on commit 918ef9d

Please sign in to comment.