Welcome to SpaceBucket.com

Navigation: Home, News, Links, E-mails, Comments, Various, Images, Golf, Users, About SB
 
Various
My Freevo XML channel script (the one on freevo's site didn't work properly). You can then take the output and put it in your local_conf.py file for tv_channels:

#!/usr/bin/perl

$count = 0;
while () {
        chomp;
        if (/^\s+$/) {
                $xmlid = $1;
                $count++;
        }
        elsif (/^\s+(.+)<\/display-name>$/) {
                if ($count == 1){
                        $freevoid = $1;
                }
                elsif ($count == 3){
                        $channelid = $1
                }
                $count++;
        }
        elsif (/^\s+<\/channel>$/) {
                print "('$xmlid', '$freevoid', '$channelid'),\n";
                $count = 0;
        }
}