From 9052b8401196c300ec36b4ab7aecdcc758d552a5 Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Mon, 4 Dec 2017 19:50:12 +0100 Subject: [PATCH] Fix .strm playback failing for addon paths - Partially fixes #354 --- resources/lib/playutils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/resources/lib/playutils.py b/resources/lib/playutils.py index 84eda6e0..3e268957 100644 --- a/resources/lib/playutils.py +++ b/resources/lib/playutils.py @@ -78,7 +78,10 @@ class PlayUtils(): playurl = self.API.validatePlayurl(path, self.API.getType(), forceCheck=True) - return tryEncode(playurl) + if playurl is None: + return + else: + return tryEncode(playurl) # set to either 'Direct Stream=1' or 'Transcode=2' # and NOT to 'Direct Play=0' if settings('playType') != "0":