This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

TVmaze.com Eggdrop Script (Version 1.25 / 2015-10-03)

Support & discussion of released scripts, and announcements of new releases.
s
skyway
Voice
Posts: 2
Joined: Thu Jul 02, 2015 11:41 am

Post by skyway »

out where? :) link ?
x
x0x
Op
Posts: 140
Joined: Tue Feb 10, 2009 6:42 am

Post by x0x »

skyway wrote:out where? :) link ?
Please see the first post of this topic for the latest version of the script.
H
Henkie2
Voice
Posts: 34
Joined: Fri Sep 25, 2015 2:55 pm

Post by Henkie2 »

x0x are you also going to add some more triggers now it's working for old and new versions of tcl? like !today and auto announce 10 mins show? Thanks
x
x0x
Op
Posts: 140
Joined: Tue Feb 10, 2009 6:42 am

Post by x0x »

Henkie2 wrote:x0x are you also going to add some more triggers now it's working for old and new versions of tcl? like !today and auto announce 10 mins show? Thanks
Maybe in a future release, yes.
S
Skekso
Voice
Posts: 1
Joined: Fri Oct 02, 2015 1:19 pm

Post by Skekso »

Getting some funky output for country on web series. TCL 8.6 and eggdrop 1.6.21

<bot> Show: Bloodline " Network: Netflix " Genre: Drama Family
<bot> Premiered: 2015-03-20 (name {United States} code US timezone America/New_York) " Status: Running " URL: http://www.tvmaze.com/shows/1372/bloodline
<bot> Last: S01E13 aired 2015-03-20
x
x0x
Op
Posts: 140
Joined: Tue Feb 10, 2009 6:42 am

Post by x0x »

Skekso wrote:Getting some funky output for country on web series. TCL 8.6 and eggdrop 1.6.21

<bot> Show: Bloodline " Network: Netflix " Genre: Drama Family
<bot> Premiered: 2015-03-20 (name {United States} code US timezone America/New_York) " Status: Running " URL: http://www.tvmaze.com/shows/1372/bloodline
<bot> Last: S01E13 aired 2015-03-20
Thanks! Just released a new version of the script.
z
zoggy
Voice
Posts: 4
Joined: Mon Jun 24, 2013 1:30 pm

Post by zoggy »

eggdrop-1.6.21 w/tcl 8.6.1

using latest tclmaze v1.25, I also see " being used instead of •.

Code: Select all

[04:01pm] <Bot> Show: Heroes Reborn " Network: NBC " Genre: Drama Action Science-Fiction
[04:01pm] <Bot> Premiered: 2015-09-24 " Status: Running " URL: http://www.tvmaze.com/shows/1415/heroes-reborn
[04:01pm] <Bot> Previous: S01E03 aired 2015-10-01 " Next: S01E04 airs 2015-10-08 at 08:00 PM EDT
also missing shows return 404?

Code: Select all

[04:06pm] <user> !last archer (2009)
[04:06pm] <Bot> user, there was an http error: ( 404 ) ok


debug info:

Code: Select all

$ echo "puts [info tclversion]" | tclsh
8.6
$ echo "puts [info patchlevel]" | tclsh
8.6.1
$ echo "puts [package require json]" | tclsh
1.1.2

Code: Select all

.tcl encoding names
Tcl: cp860 cp861 cp862 cp863 cp864 tis-620 cp865 cp866 gb2312-raw gb12345 cp950 cp949 cp869 dingbats ksc5601 macCentEuro cp874 macUkraine gb2312 jis0201 euc-cn euc-jp iso8859-10 macThai jis0208 iso2022-jp macIceland iso2022 iso8859-13 iso8859-14 jis0212 cp737 iso8859-15 iso8859-16 big5 euc-kr macRomania macTurkish gb1988 iso2022-kr macGreek cp437 ascii macRoman iso8859-1 iso8859-2 iso8859-3 koi8-r macCroatian iso8859-4 ebcdic iso8859-5 cp1250 macCyrillic iso8859-6 cp1251 macDingbats cp1252
Tcl: koi8-u iso8859-7 iso8859-8 cp1253 cp1254 iso8859-9 cp1255 cp850 cp1256 cp932 identity cp852 cp1257 cp1258 macJapan shiftjis utf-8 cp936 cp855 cp775 symbol unicode cp857
x
x0x
Op
Posts: 140
Joined: Tue Feb 10, 2009 6:42 am

Post by x0x »

Hmm?

!tv heroes reborn
Show: Heroes Reborn • Network: NBC • Genre: Drama Action Science-Fiction
Premiered: 2015-09-24 • Status: Running • URL: http://www.tvmaze.com/shows/1415/heroes-reborn
Previous: S01E03 aired 2015-10-01 • Next: S01E04 airs 2015-10-08 at 08:00 PM EDT

!l archer
Show: Archer • Last episode: S06E13 "Drastic Voyage: Part Ii" aired 2015-04-02
p
philodox
Voice
Posts: 1
Joined: Sat Oct 24, 2015 12:10 pm

Post by philodox »

first of all thanks for a great script. :)

is it possible to request support for themes for use with other sitebot script like ie. pzs-ng and for easy change of bot output to channel?
x
x0x
Op
Posts: 140
Joined: Tue Feb 10, 2009 6:42 am

Post by x0x »

philodox wrote:first of all thanks for a great script. :)

is it possible to request support for themes for use with other sitebot script like ie. pzs-ng and for easy change of bot output to channel?
Thank you for your compliments :)

There are a couple of features I'd like to add and one of them includes an easy way to change the channel output of the script. I need to work around some issues first tho. If only I had the time....

For now, you'll have to be creative and modify the script yourself. I'm back home in a week and have some time again to work on it myself.
F
Froggaard
Voice
Posts: 13
Joined: Fri Sep 25, 2015 5:20 am

Post by Froggaard »

It is possible to make airs in XX days
Eg.
[05:09:37] <+TV> Show: The Blacklist :: Next episode: S03E06 - Sir Crispin Crandall airs 2015-11-05 (1 day - 22 Hours) :: http://www.tvmaze.com/shows/69/the-blacklist
H
Henkie2
Voice
Posts: 34
Joined: Fri Sep 25, 2015 2:55 pm

Post by Henkie2 »

Still hoping for some extra triggers sooner or later :)
Like !today / !tomorrow and auto 10mins announce and airs in days/hours like Froggaard said. PEACE
b
ballz
Voice
Posts: 2
Joined: Sat Nov 14, 2015 8:10 pm

Post by ballz »

I use this script and I made a solution for myself to display the Today schedule. I run a cron job once per day to run my today script (php). This creates me a local text copy of the daily schedule. I then use this to echo to my channel. It also only uses 1 API request per day rather than 1 every trigger.

Your welcome to try my solution for yourself until things are added to this script.

Code: Select all

<?php
$file = fopen("tv.txt", "w") or die("Unable to open file!");
$today = date("Y-m-d");
$mychans = array("AMC","The CW", "FOX","NBC","ABC","FX","SyFy");
$url = "http://api.tvmaze.com/schedule?date=" . $today;
$json = file_get_contents($url);
$data = json_decode($json,true);
$last = count($data) - 1; // might need later
$title = "\002\00304Full Schedule For \00308" . $today . "\r\n";
$chanlist = "Channels Listed - " . join(" ",$mychans) . "\r\n";
fwrite ($file, $title);
fwrite ($file, $chanlist);
foreach ($data as $kkey ) {
$season = $kkey['season'];
$ep = $kkey['number'];
$showname = $kkey['show']['name'];
$airs = $kkey['airtime'];
$episodename = $kkey['name'];
$channel = $kkey['show']['network']['name'];
if (in_array($channel, $mychans)){
$myline = $airs . " - " . $channel . " - " . $showname . " - Season " . $season . " - Episode " . $ep . "\r\n";
fwrite($file, $myline);
}
}
fclose($file);
?>
This runs once daily at approx 6am UK time. Then on my eggdrop I use this small script.

Code: Select all

bind pub - "!today" today
proc today {chan args} {
    set fp [open "tv.txt" r]
    set file_data [read $fp]
    close $fp
    set data [split $file_data "\n"]
    foreach line $data {
        putserv "PRIVMSG #channel : $line"
        }
}
its a bit of a dirty fix, but it works fine. :D

Remember to use full paths to your txt file, i removed mine from the src. :D

I should also add I am a self taught coder by reading other scripts and google, I have no doubt this can be simplified, it works so I didnt bother looking at cutting down the size. :D

Have fun & Thanks to the author of this TvMaze script, Its great. ;)
V
Votex
Voice
Posts: 23
Joined: Sat Jun 21, 2014 6:52 pm

Post by Votex »

Hello there

could someone please guide me to how install "Json" on windows so i can make this script work on my bot on windows OS

I tried and tried but still a dead end
b
ballz
Voice
Posts: 2
Joined: Sat Nov 14, 2015 8:10 pm

Post by ballz »

Im a little out of touch, isnt Windrop run through Cygwin? If so I believe you need to update your cygwin tcl files. You might find you need to install cygwin (from the cygwin homepage) and do some compiling. If i get time over the next few days I'll grab a copy and try on a VM.
Post Reply