Page 1 of 1

Writing CH-files for Channels plugin

Posted: Sun Aug 25, 2013 7:18 pm
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?

Re: Writing CH-files for Channels plugin

Posted: Mon Sep 16, 2013 2:26 am
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