Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
belltown
Roku Guru

Re: Roku channel stream has 1 too many clicks

"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 <title>Stream HD</title>. Thx

Then you need to check whether item.title contains "HD".
0 Kudos
matrixebiz
Roku Guru

Re: Roku channel stream has 1 too many clicks

"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 <title>Stream HD</title>. 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
0 Kudos
belltown
Roku Guru

Re: Roku channel stream has 1 too many clicks

"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.
0 Kudos
matrixebiz
Roku Guru

Re: Roku channel stream has 1 too many clicks

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
0 Kudos