Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Level 7

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".
https://github.com/belltown/
0 Kudos
Highlighted
Level 9

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
Highlighted
Level 7

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.
https://github.com/belltown/
0 Kudos
Highlighted
Level 9

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