Kodi Community Forum
[RELEASE] myTV - TV Guide Script (with pluginsnew script) - Printable Version

+- Kodi Community Forum (http://forum.kodi.tv)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: Add-ons Help and Support (/forumdisplay.php?fid=27)
+---- Forum: Program Add-ons (/forumdisplay.php?fid=151)
+---- Thread: [RELEASE] myTV - TV Guide Script (with pluginsnew script) (/showthread.php?tid=12895)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48


- Livin - 2005-09-28 18:58

(bigbellybilly @ sep. 28 2005,08:31 Wrote:the thread is getting a bit big.

maybe we should stop this one and creat two new ones

mytv - bugs

and

mytv - suggestions/requests/announcments

?
agreed but make it bugs & support


- gerner - 2005-09-28 22:49

hey jthunder, any more news on the command structure for tsreader ? my experience with the web scheduler plugin suggests that recording to file and then getting xbmc to play that file may not be the best way to simulate live tv watching.  for one thing there is a longish pause involved while the recorded file gets created, xbmc caches the file and then decodes the signal.

the mytheatre plugin i wrote that uses an avbroadcaster over http actually worked much better - although the recording and scehduling side of things was much flakier than web scheduler.

anyways, i'm interested in looking at the tsreader to see what we can come up with.


- jthunder - 2005-09-29 00:21

here is a link to the command server docs, in my testing it works well and the delay is minimal while playing the recorded .ts file.

http://www.coolstf.com/tsreader/control-server.html

and i've also requested a simple 'telnet' python script (due to my inexperience writing them) so that i can build a simple interface to it. anyone have any ideas? can i use the telnetlib python library to read and write commands from the server?

thanks


- BigBellyBilly - 2005-09-29 17:18

mytv v1.08 uploaded to xbmcscripts.com - but, its not visible yet (am waiting for moderator to sort it out)

changelog for this version:
new. 7-day fav show display - can also be run standalone (favshow.py)
new. favshow titles now highlighted on guide
new. saveprogramme_webscheduler.py - save/play using webscedular on your pc (http://dvb-ws.sourceforge.net/)
new. support for hauppauge wintv200 (setup in saveprogramme_hauppauge.py)
new. australian datasource - datasource_ausrss using rss feed
new. norwegian datasource - datasource_nettavisen
fix. zap2it display bug.
fix. all yahoo datasources - caused by site changes.
fix. telkku datasource - caused by site url changes.
fix. < > arrows not displayed properly on later xbmc builds
fix. first run bug: dialog 'initialising' overlaid datasource selection
changed. logo name matching
changed. up/down focus movment - now uses a constant 'middle time'
changed. menu structure - configmenu now a submenu from mainmenu to accomodate favshows
changed. error handling when channel unavailable.
added. some contributed telkku logos, plus others

as you can see, quite a big update, so any problems let me know.
as has been noted some of the html scraping datasource can break when the websites change, i can't contantly test them all, so i'm relying those users to let me know - or even better - fix it.

i'm going on holiday then on a 3-week course with work, so i'll only have time to attend to bug fixes.

thanks to all those who have contributed (from all corners of the planet) in one way or another.

cheers
bbb


- solexalex - 2005-09-29 18:29

thanks a lot for changes !

as the french webmaster of a python scripts website, i will try to give a look and understand how it works. that way, i hope to be able to fix when changes occur.

maybe i'll need your help, i'll contact you then Wink
see ya


- jthunder - 2005-09-29 19:14

(jthunder @ sep. 28 2005,23:21 Wrote:here is a link to the command server docs, in my testing it works well and the delay is minimal while playing the recorded .ts file.

http://www.coolstf.com/tsreader/control-server.html

and i've also requested a simple 'telnet' python script (due to my inexperience writing them) so that i can build a simple interface to it. anyone have any ideas? can i use the telnetlib python library to read and write commands from the server?

thanks
in addition to this control server documentation the following perl script was provided by the tsreader author. i've tried to get a python telnetlib script to interface with it, but i have never done any python coding, so i'm having all sorts of problems. i'm hoping that by posting this sample perl code, that i can get some nice soul to port it (or a base peice of it) to python.

should i open a new topic to discuss the development of a tsreader (dvb-s) plugin for mytv?

Quote:#a sample perl script showing some of the features
#in tsreader's control server

use telnet ();

#connect to tsreader's control server
$t = new net::telnet (timeout => 1,
port => 1399);
eval{$t->open("127.0.0.1");};
if ($@)
{die("unable to connect to tsreader - is the control server running?\n$@\n");};

#display what tsreader sent us
@line = $t->getline();
print "tsreader connected.\nresponse: @line\n";

#display functions in this program
print "functions supported are:\n";
print " 1 - print programs in mux\n";
print " 2 - display graph\n";
print " 3 - switch to a multicast udp mux\n";
print " 4 - play channel via vlc\n";
print "function? ";
$function = <stdin>;
chop $function;

if ($function eq 1)
{
#get and print a list of programs
$t->print("program");
print "these programs are defined:\n";
$doit = 1;
while($doit eq 1)
{
eval {@line = $t->getline(timeout => 1);};
if ($@)
{$doit=0;}
else
{print @line;}
}
}
elsif ($function eq 2)
{
#draw a graph
$dont_send = 0;
print "available graphs are:\n";
print " 0 - close any existing graph\n";
print " 1 - active pids by rate\n";
print " 2 - active pids by pid\n";
print " 3 - pid usage 2d pie\n";
print " 4 - pid usage 3d pie\n";
print " 5 - mux usage stacked area\n";
print " 6 - mux usage line\n";
print " 7 - video rate area\n";
print " 8 - video rate line\n";
print " 9 - program usage\n";
print " 10 - video composition\n";
print "which chart? ";
$chart = <stdin>;
chop $chart;
if ($chart eq 10)
{
print "program number? ";
$program_number = <stdin>;
chop $program_number;

$t->print("program $program_number");
@line = $t->getline(timeout => 1);
if (@line =~ /502/)
{
print("?invalid program number!\n");
$dont_send = 1;
}
}
if ($dont_send eq 0)
{
$t->print("graph $chart");
@line = $t->getline(timeout => 1);
}
}
elsif ($function eq 3)
{
#switch to the multicast source and restart tsreader
print "multicast address to listen to? ";
$multicast_address = <stdin>;
chop $multicast_address;
print "udp port to listen to? ";
$multicast_port = <stdin>;
chop $multicast_port;

$t->print("source tsreader_udpmulticast.dll");
@line = $t->getline(timeout => 1);
print "response to source: @line";

$t->print("tune $multicast_address $multicast_port");
@line = $t->getline(timeout => 1);
print "response to tune: @line";
}
elsif ($function eq 4)
{
$dont_send = 0;
print "program number? ";
$program_number = <stdin>;
chop $program_number;

$t->print("program $program_number");
@line = $t->getline(timeout => 1);
if (@line =~ /502/)
{
print("?invalid program number!\n");
$dont_send = 1;
}
if ($dont_send eq 0)
{
$t->print("play vlc1");
@line = $t->getline(timeout => 1);
print "response to play: @line";
}
}

#all done
$t->print("quit");



- BigBellyBilly - 2005-09-29 20:39

jthunder: i think a new thread might be best - i can see a lot of traffic about that subject comming.

i'll try and chip in with any mytv advice you need, but as i've said my time will be limited mostly to bug fixing only over next 3 weeks.

i've released mytv with debug still enabled by mistake, so v1.08a is the one you want.
or just change to debug = false in system\mytvlibrary.py file.

use this yousendit link unitl it appears on xbmcscripts.com

bbb


- KaHooli - 2005-09-30 11:01

i am getting this error when trying to run the 1.08a script...
[Image: mytverror.jpg]


- BigBellyBilly - 2005-09-30 11:03

that means your build of xbmc doesnt have the required python library installed.

update to a recent xbmc and all should be ok.


- KaHooli - 2005-09-30 11:06

Blush ooops!

thanks heaps!
you rock! :kickass:
and you are a god! :bowdown:


- KaHooli - 2005-09-30 11:24

maybe not...

i have updated to xbmc to this version xbmc-cvs_2005-09-27-t3ch and i am still getting the same error.


- BigBellyBilly - 2005-09-30 12:00

that was a fleeting god like status - lol

but, seriously, i've come across this before and the fix was that the build of xbmc was missing the image module.

did you do a complete wipe/install of the new build ?

i'm running on a 18-09-2005 gasgiver and a mate is running it on a 27-09 pimped no problems.

you could check for the module image.* in /e/apps/xbmc/python/lib/

bbb


- KaHooli - 2005-09-30 12:16

i did a complete wipe, and removed the xbmc memory item in the dash.

there are no image.* files in that dir.

humm... Confused


- KaHooli - 2005-09-30 13:53

you are back to god status :bowdown:

i will stay with the gasgiver builds for now. it all works perfectly!

thanks again,
kahooli


- Asteron - 2005-09-30 15:18

(bigbellybilly @ sep. 30 2005,06:00 Wrote:that was a fleeting god like status - lol

but, seriously, i've come across this before and the fix was that the build of xbmc was missing the image module.

did you do a complete wipe/install of the new build ?

i'm running on a 18-09-2005 gasgiver and a mate is running it on a 27-09 pimped no problems. 

you could check for the module image.* in /e/apps/xbmc/python/lib/

bbb
if the library is not in the cvs version of xbmc i think you should either include it or deal without it. there is no telling which custom libraries will be installed in peoples builds.