egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TVmaze.com Eggdrop Script (Version 1.25 / 2015-10-03)
Goto page Previous  1, 2, 3, 4, 5, 6  Next
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
skyway
Voice


Joined: 02 Jul 2015
Posts: 2

PostPosted: Tue Sep 29, 2015 2:54 am    Post subject: Reply with quote

out where? Smile link ?
Back to top
View user's profile Send private message
x0x
Op


Joined: 10 Feb 2009
Posts: 140
Location: The Netherlands

PostPosted: Tue Sep 29, 2015 3:05 am    Post subject: Reply with quote

skyway wrote:
out where? Smile link ?


Please see the first post of this topic for the latest version of the script.
Back to top
View user's profile Send private message
Henkie2
Voice


Joined: 25 Sep 2015
Posts: 16

PostPosted: Tue Sep 29, 2015 6:10 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
x0x
Op


Joined: 10 Feb 2009
Posts: 140
Location: The Netherlands

PostPosted: Tue Sep 29, 2015 6:14 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Skekso
Voice


Joined: 02 Oct 2015
Posts: 1

PostPosted: Fri Oct 02, 2015 1:33 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
x0x
Op


Joined: 10 Feb 2009
Posts: 140
Location: The Netherlands

PostPosted: Sat Oct 03, 2015 5:10 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
zoggy
Voice


Joined: 24 Jun 2013
Posts: 4

PostPosted: Sat Oct 03, 2015 5:05 pm    Post subject: Reply with quote

eggdrop-1.6.21 w/tcl 8.6.1

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

Code:

[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:

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




debug info:

Code:

$ 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:

.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
Back to top
View user's profile Send private message
x0x
Op


Joined: 10 Feb 2009
Posts: 140
Location: The Netherlands

PostPosted: Sat Oct 03, 2015 6:38 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
philodox
Voice


Joined: 24 Oct 2015
Posts: 1

PostPosted: Sat Oct 24, 2015 12:21 pm    Post subject: Reply with quote

first of all thanks for a great script. Smile

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?
Back to top
View user's profile Send private message
x0x
Op


Joined: 10 Feb 2009
Posts: 140
Location: The Netherlands

PostPosted: Sat Oct 24, 2015 3:50 pm    Post subject: Reply with quote

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

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 Smile

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.
Back to top
View user's profile Send private message
Froggaard
Voice


Joined: 25 Sep 2015
Posts: 13

PostPosted: Tue Nov 03, 2015 12:13 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
Henkie2
Voice


Joined: 25 Sep 2015
Posts: 16

PostPosted: Sun Nov 08, 2015 9:05 am    Post subject: Reply with quote

Still hoping for some extra triggers sooner or later Smile
Like !today / !tomorrow and auto 10mins announce and airs in days/hours like Froggaard said. PEACE
Back to top
View user's profile Send private message
ballz
Voice


Joined: 14 Nov 2015
Posts: 2

PostPosted: Sat Nov 14, 2015 8:17 pm    Post subject: Reply with quote

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:

<?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:

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. Very Happy

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

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. Very Happy

Have fun & Thanks to the author of this TvMaze script, Its great. Wink
Back to top
View user's profile Send private message
Votex
Voice


Joined: 21 Jun 2014
Posts: 23

PostPosted: Mon Nov 16, 2015 11:22 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
ballz
Voice


Joined: 14 Nov 2015
Posts: 2

PostPosted: Tue Nov 17, 2015 7:32 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases All times are GMT - 4 Hours
Goto page Previous  1, 2, 3, 4, 5, 6  Next
Page 4 of 6

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber