mirror of
https://github.com/jellyfin/jellycon.git
synced 2024-11-27 08:10:28 +00:00
add tags to media items
This commit is contained in:
parent
83993f4304
commit
ef5714e5d2
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<addon id="plugin.video.embycon"
|
||||
name="EmbyCon"
|
||||
version="1.9.94"
|
||||
version="1.9.95"
|
||||
provider-name="Team B">
|
||||
<requires>
|
||||
<import addon="xbmc.python" version="2.25.0"/>
|
||||
|
@ -78,7 +78,8 @@ def get_details_string():
|
||||
"PremiereDate",
|
||||
"ProductionYear",
|
||||
"AirTime",
|
||||
"Status"
|
||||
"Status",
|
||||
"Tags"
|
||||
]
|
||||
|
||||
if include_media:
|
||||
|
@ -63,6 +63,7 @@ class ItemDetails:
|
||||
tagline = ""
|
||||
status = None
|
||||
media_streams = None
|
||||
tags = None
|
||||
|
||||
resume_time = 0
|
||||
duration = 0
|
||||
@ -155,6 +156,11 @@ def extract_item_info(item, gui_options):
|
||||
if item["Taglines"] is not None and len(item["Taglines"]) > 0:
|
||||
item_details.tagline = item["Taglines"][0]
|
||||
|
||||
item_details.tags = []
|
||||
if item["TagItems"] is not None and len(item["TagItems"]) > 0:
|
||||
for tag_info in item["TagItems"]:
|
||||
item_details.tags.append(tag_info["Name"])
|
||||
|
||||
# set the item name
|
||||
# override with name format string from request
|
||||
name_format = gui_options["name_format"]
|
||||
@ -554,6 +560,7 @@ def add_gui_item(url, item_details, display_options, folder=True, default_sort=F
|
||||
info_labels["dateadded"] = item_details.date_added
|
||||
info_labels["country"] = item_details.production_location
|
||||
info_labels["mpaa"] = item_details.mpaa
|
||||
info_labels["tag"] = item_details.tags
|
||||
|
||||
if display_options["addUserRatings"]:
|
||||
info_labels["userrating"] = item_details.critic_rating
|
||||
|
@ -134,7 +134,7 @@ while not xbmc.abortRequested:
|
||||
if user_changed or first_run:
|
||||
server_speed_check_data = settings.getSetting("server_speed_check_data")
|
||||
server_host = download_utils.get_server()
|
||||
if server_host != "" and server_host != "<none>" and server_host not in server_speed_check_data:
|
||||
if server_host is not None and server_host != "" and server_host != "<none>" and server_host not in server_speed_check_data:
|
||||
message = "This is the first time you have connected to this server.\nDo you want to run a connection speed test?"
|
||||
response = xbmcgui.Dialog().yesno("First Connection", message)
|
||||
if response:
|
||||
|
Loading…
Reference in New Issue
Block a user