Writing CH-files for Channels plugin

For help and support with Universal Media Server
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
Post Reply
tubby
Posts: 9
Joined: Wed Feb 27, 2013 7:06 pm

Writing CH-files for Channels plugin

Post by tubby »

I've been trying to write a ch-file for a popular online streaming service. The channels-plugin is perfect for my needs :-)

I'm trying to use the "recurse" function for folders since the list of media is divided into several pages "1,2,3 ... 35,36" and so on.
Below is and example of the structure of the folders for the channel. I'm curious abouthow the recurse type actually works.

Code: Select all

 folder {
        name=A-Z
        type=ATZ
        url=http://www.thesite.com/
        folder {
                matcher=a regexp
                order=url,name
                prop=peek
                  folder {
                    matcher=a regexp
                    order=url
                    type=empty
                        folder { #this is found
			    matcher=a regexp
                            order=url,name
                            type=recurse
                            prop=auto_media
                            macro=a macro with item and media
                            }

                    }
                }
        }
In the example above the folder which I have commented with "#this is found" is matched and added as a folder correctly. However when the folder is opened by a client the matcher for the folder is evaluated again instead of the macro that is defined for the folder. Can someone shed some light on what I am doing wrong?
pen
Posts: 60
Joined: Mon Sep 02, 2013 11:47 pm

Re: Writing CH-files for Channels plugin

Post by pen »

Hi tubby....

Did u get any insights on this? I'm also considering making a script for a site and will have the same problem (maybe the same site ;) . Have you found any documentation at all how to do write the scripts? The regex part is the easy one but what about the rest? Is it some language or a propriatary script format?

Edit: Found the description how to write ch files here:

https://github.com/SharkHunter/Channel/ ... ter/README

Pen
Server Ubuntu 12.04, Renderer Samsung 46D6300
Post Reply