JamesChannel
10 years agoVisitor
Brightscript "Compilation Failed"
Hello, I'm trying to modify a section of code to add an If statement if title = example but getting that error when trying to side load to my Roku;
it just reads a M3U file and the "HDPosterUrl: "pkg:/images/HD/" + title + ".jpg"," part works and grabs the correct image depending on the title that is fed through but now I'm trying to add a few If statements to display a different "ShortDescriptionLine1" depending on the title but not working. Probably have the syntax wrong 😞
I wish there was a program you could run the script through to check for errors before zipping and installing on the Roku.
If inExtinf
maPath = rePath.Match (line)
If maPath.Count () = 2
path = maPath [1]
m3u8List.Push ({
Title: title,
Length: length,
HDPosterUrl: "pkg:/images/HD/" + title + ".jpg",
SDPosterUrl: "pkg:/images/SD/" + title + ".jpg",
If Title = "Example"
ShortDescriptionLine1: "Example 1",
ShortDescriptionLine2: "Example 2",
Endif
Stream: {Url: path + streamid}
bitrate: 0
StreamFormat: "hls"
SwitchingStrategy: "full-adaptation"
})
inExtinf = False
Endif
Endif
it just reads a M3U file and the "HDPosterUrl: "pkg:/images/HD/" + title + ".jpg"," part works and grabs the correct image depending on the title that is fed through but now I'm trying to add a few If statements to display a different "ShortDescriptionLine1" depending on the title but not working. Probably have the syntax wrong 😞
I wish there was a program you could run the script through to check for errors before zipping and installing on the Roku.