Writing custom channels for myself - what am I doing wrong?

So having spent ages trying to get radio station channels working, I’m not having any joy, so I basically ghetto coded my own one together, and it works great.

Only problem is I now want a second one, so I duplicate the bundle, and change the stream url and the name, but when I restart PMS, I’m presented with the new one only and not the old one.

Is there something else I’m missing that I have to change to get both to appear at the same time in the channel list?

I am guessing you didn’t change the name in the code. I would check all the files in the new channel to make sure. You may have already done this.

Check if both channels have a unique CFBundleIdentifier. You can find this value inside the Info.plist file.

    <key>CFBundleIdentifier</key>
    <string>com.plexapp.plugins.youruniquevaluehere</string>

Thank you, ill have a look this afternoon

Oops, i was meant to mark @sander1 response as the answer, not my own.

I need to change the CFBundleIdentifier and the @handler

I always create Global variables called Prefix and Title. Then I use that later in the @handler and in the @route. It makes it a little easier to edit when you are copying things from one channel to another.

TITLE = "My Channel Name" PREFIX = "/video/mychannelname" def Start(): ObjectContainer.title1 = TITLE @handler(PREFIX, TITLE) def MainMenu(): @route(PREFIX + "/myfunction") def MyFuntion():