From ffabdcf11f76e1bd90b231b5d9b1e4a54e63a5f0 Mon Sep 17 00:00:00 2001 From: "Jakob L. Kreuze" Date: Sun, 14 Jul 2024 14:23:19 -0400 Subject: Only mark MP4 portal submissions as playable --- addon.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/addon.py b/addon.py index 10d3b1d..a03587b 100644 --- a/addon.py +++ b/addon.py @@ -299,7 +299,10 @@ class NewgroundsPlugin(object): else: info_tag.setMpaa("PG") - list_item.setProperty("IsPlayable", "true") + if video.content_url is not None: + list_item.setProperty("IsPlayable", "true") + else: + list_item.setProperty("IsPlayable", "false") url = get_url(action="play_video", video=video.content_url) is_folder = False -- cgit v1.3