Fix .strm playback failing for addon paths

- Partially fixes #354
This commit is contained in:
tomkat83 2017-12-04 19:50:12 +01:00
parent f86582689b
commit 9052b84011
1 changed files with 4 additions and 1 deletions

View File

@ -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":