# Roku channel stream has 1 too many clicks

**URL:** <https://forum.developer.roku.com/t/roku-channel-stream-has-1-too-many-clicks/7692>\
**Category:** Archived\
**Tags:** roku-developer-program\
**Created:** [January 5, 2016, 8:14pm UTC](https://forum.developer.roku.com/t/roku-channel-stream-has-1-too-many-clicks/7692 "2016-01-05T20:14:51Z")\
**Posts on this page:** 4\
**Page:** 3

<div class="post-metadata">

**Author:** ![belltown](https://avatars.discourse-cdn.com/v4/letter/b/8edcca/32.png) [@belltown](https://forum.developer.roku.com/u/belltown)\
**Post date:** [June 26, 2016, 1:50am UTC](https://forum.developer.roku.com/t/roku-channel-stream-has-1-too-many-clicks/7692/41 "2016-06-26T01:50:09Z")

</div>

> “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”.

---

<div class="post-metadata">

**Author:** ![matrixebiz](https://avatars.discourse-cdn.com/v4/letter/m/8dc957/32.png) [@matrixebiz](https://forum.developer.roku.com/u/matrixebiz)\
**Post date:** [June 26, 2016, 2:13am UTC](https://forum.developer.roku.com/t/roku-channel-stream-has-1-too-many-clicks/7692/42 "2016-06-26T02:13:22Z")

</div>

> “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)

```auto

        If item.title <> "HD"
                    stream.url = _getXmlString (media, "streamUrl")
                    stream.url = stream.url + authenticationCode
        End If

```

---

<div class="post-metadata">

**Author:** ![belltown](https://avatars.discourse-cdn.com/v4/letter/b/8edcca/32.png) [@belltown](https://forum.developer.roku.com/u/belltown)\
**Post date:** [June 26, 2016, 3:41pm UTC](https://forum.developer.roku.com/t/roku-channel-stream-has-1-too-many-clicks/7692/43 "2016-06-26T15:41:00Z")

</div>

> “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.

---

<div class="post-metadata">

**Author:** ![matrixebiz](https://avatars.discourse-cdn.com/v4/letter/m/8dc957/32.png) [@matrixebiz](https://forum.developer.roku.com/u/matrixebiz)\
**Post date:** [June 26, 2016, 5:34pm UTC](https://forum.developer.roku.com/t/roku-channel-stream-has-1-too-many-clicks/7692/44 "2016-06-26T17:34:25Z")

</div>

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;

```auto

        If item.title = "HD"
                    stream.url = _getXmlString (media, "streamUrl")
                    stream.url = stream.url + authenticationCode
        End If

```

to checking what the item.title CONTAINS;

```auto

        If item.title <> "HD"
                    stream.url = _getXmlString (media, "streamUrl")
                    stream.url = stream.url + authenticationCode
        End If

```

[Previous page](https://forum.developer.roku.com/t/roku-channel-stream-has-1-too-many-clicks/7692.md?page=2)
