diff options
| author | Jakob L. Kreuze <zerodaysfordays@sdf.org> | 2024-07-14 14:23:19 -0400 |
|---|---|---|
| committer | Jakob L. Kreuze <zerodaysfordays@sdf.org> | 2024-07-14 14:23:31 -0400 |
| commit | ffabdcf11f76e1bd90b231b5d9b1e4a54e63a5f0 (patch) | |
| tree | 8a701a0180dd31cb578d8c4fedfdbe4af3aa0bf5 /addon.py | |
| parent | 4715a137f9fbf326fdf88eb4dbc3cddcbcdf8eeb (diff) | |
Only mark MP4 portal submissions as playable
Diffstat (limited to 'addon.py')
| -rw-r--r-- | addon.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |