mirror of
https://github.com/jellyfin/jellycon.git
synced 2025-02-20 05:42:05 +00:00
add trailer link for TV Shows as well
This commit is contained in:
parent
7ee942ab7f
commit
4f08389149
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<addon id="plugin.video.embycon"
|
||||
name="EmbyCon"
|
||||
version="1.8.11"
|
||||
version="1.8.12"
|
||||
provider-name="Team B">
|
||||
<requires>
|
||||
<import addon="xbmc.python" version="2.25.0"/>
|
||||
|
@ -337,7 +337,7 @@ def show_menu(params):
|
||||
li.setProperty('menu_id', 'transcode')
|
||||
action_items.append(li)
|
||||
|
||||
if result["Type"] == "Movie":
|
||||
if result["Type"] in ("Movie", "Series"):
|
||||
li = xbmcgui.ListItem(string_load(30307))
|
||||
li.setProperty('menu_id', 'play_trailer')
|
||||
action_items.append(li)
|
||||
|
@ -519,7 +519,7 @@ def add_gui_item(url, item_details, display_options, folder=True):
|
||||
if display_options["addUserRatings"]:
|
||||
info_labels["userrating"] = item_details.critic_rating
|
||||
|
||||
if item_type == 'movie':
|
||||
if item_type in ('movie', 'series'):
|
||||
info_labels["trailer"] = "plugin://plugin.video.embycon?mode=playTrailer&id=" + item_details.id
|
||||
|
||||
list_item.setInfo('video', info_labels)
|
||||
|
Loading…
x
Reference in New Issue
Block a user