summaryrefslogtreecommitdiff
path: root/addon.py
diff options
context:
space:
mode:
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