Pages

Saturday, January 5, 2013

WeepeeTV and VLC (2)


Created createwptvxml.pl and weepeetv.lua (for use with vlc)

createwptvxml.pl is a simple screenscaper perl script (yes it's written in Perl and not in a cool language like Python or Ruby) which logs in on the WeepeeTV site and creates an XML containing the necessary m3u8 stream URLS.

This XML can be used to feed other applications on your local network e.g. for use with VLC (see weepeetv.lua)
The xml file format is as follows:
<?xml version='1.0'?>
<items>
<item>
<title>channel</title>
<thumb>https://weepee.tv/img/channels/channel.jpg</thumb>
<h264>https://weepeetv.my-stream.eu/channel/uuid/channeluuid/stream.m3u8</h264>
</item>
</items>

To run the script change the variables on top of createwptvmxl.pl
## change these variables
my $ACCOUNT="uxxxxxx";
my $PASSWORD="secret";
my $CURL="/usr/bin/curl";
my $XMLFILE="wptv.xml";
my @sort=("een","canvas","bbc1","bbc2","acht","vtm","2be","vitaya","jim","ketnet","bbcentertainment","kanaalz","vtmKzoom,"tvllogosmall","livetv");

You can find the code on github

2 comments:

  1. Hi 42Wim,

    I tried your code, but it did not work. I got some errors. I started checking the source code a bit, and I assume that the format of the channels.html file changed.

    An example, for an img url that i have is the following : "img src="https://weepee.tv/img/channellogos/app/canvas.png""
    I assume that it used to be different, looking at the regex.
    I am not an expert for Regex nor Perl. Could you confirm that this format is different as before ?

    ReplyDelete
  2. Hi Filip, correct, they changed their html pages this weekend :-)
    Fixed now on github too

    ReplyDelete