summaryrefslogtreecommitdiff
path: root/addon.py
diff options
context:
space:
mode:
authorJakob L. Kreuze <zerodaysfordays@sdf.org>2024-07-14 14:23:19 -0400
committerJakob L. Kreuze <zerodaysfordays@sdf.org>2024-07-14 14:23:31 -0400
commitffabdcf11f76e1bd90b231b5d9b1e4a54e63a5f0 (patch)
tree8a701a0180dd31cb578d8c4fedfdbe4af3aa0bf5 /addon.py
parent4715a137f9fbf326fdf88eb4dbc3cddcbcdf8eeb (diff)
Only mark MP4 portal submissions as playable
Diffstat (limited to 'addon.py')
-rw-r--r--addon.py5
1 files changed, 4 insertions, 1 deletions
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