“matrixebiz” wrote:
Hello, that is great for all the streams but like I mentioned I only want it to add the ‘authenticationcode’ to only the streams that have ‘HD’ in the . Thx
Then you need to check whether item.title contains “HD”.
“belltown” wrote:
“matrixebiz” wrote:
Hello, that is great for all the streams but like I mentioned I only want it to add the ‘authenticationcode’ to only the streams that have ‘HD’ in the . Thx
Then you need to check whether item.title contains “HD”.
Do I do this instead then after line 345? (Sorry, don’t know the coding)
If item.title <> "HD"
stream.url = _getXmlString (media, "streamUrl")
stream.url = stream.url + authenticationCode
End If
“matrixebiz” wrote:
(Sorry, don’t know the coding)
I would think that after being active in the Roku Developer Forum for 2½ years, it would be a good time for you to start learning to use the tools of your trade.
Yeah, I’ve tried to read some of the BrightScript code guides but it does not make any sense to me so I have learned by asking in the forums and whether or not what I have changed will work or not, so if you had approved what I think the command should be then that is one step closer to learning correct ‘IF’ statement syntax.
So by my code below I’m trying to figure out if changing the statement from checking for what the item.title IS;
If item.title = "HD"
stream.url = _getXmlString (media, "streamUrl")
stream.url = stream.url + authenticationCode
End If
to checking what the item.title CONTAINS;
If item.title <> "HD"
stream.url = _getXmlString (media, "streamUrl")
stream.url = stream.url + authenticationCode
End If
