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.
V
Votex
Voice
Posts: 23
Joined: Sat Jun 21, 2014 6:52 pm

Post by Votex »

ballz wrote: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.
I got this problem asking for json package for windows

Image

could someone help me please ?
f
fr3n
Voice
Posts: 16
Joined: Fri Dec 02, 2005 10:06 am

Post by fr3n »

I think you need tcllib for windows
H
Henkie2
Voice
Posts: 34
Joined: Fri Sep 25, 2015 2:55 pm

Post by Henkie2 »

Votex try this one?
http://www.opensource.apple.com/source/ ... n/json.tcl

and load before x0x's tvmaze.tcl ;)
H
Henkie2
Voice
Posts: 34
Joined: Fri Sep 25, 2015 2:55 pm

Post by Henkie2 »

ballz wrote:I use this script and I made a solution for myself to display the Today schedule.
Oke :) thanks will check
F
Froggaard
Voice
Posts: 13
Joined: Fri Sep 25, 2015 5:20 am

Post by Froggaard »

Froggaard wrote: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
I have made my own change in the script.. All credits to x0x :)
http://pastebin.com/KB0H0nVt
[05:05:12] <~Froggaard> !n blacklist
[05:05:16] <&Bermuda> Show: The Blacklist :: Next episode: S03E09 - The Director (1) airs 2016-01-07 (In: 4 weeks 6 days 18 hours 54 minutes 45 seconds) :: http://www.tvmaze.com/shows/69/the-blacklist
Not pretty, but it works :)
V
Votex
Voice
Posts: 23
Joined: Sat Jun 21, 2014 6:52 pm

Post by Votex »

got this:
[11:00:26] Tcl error [tvnext]: invalid command name "chng_time"
[11:00:41] Tcl error [tvnext]: invalid command name "chng_time"
[11:00:58] Tcl error [tvnext]: invalid command name "chng_time"
[11:01:19] Tcl error [tvnext]: invalid command name "chng_time"
[11:01:39] Tcl error [tvnext]: invalid command name "chng_time"
F
Froggaard
Voice
Posts: 13
Joined: Fri Sep 25, 2015 5:20 am

Post by Froggaard »

I just took
set show_date_time [chng_time [clock scan "$nextepairdate"]]
set sec [clock seconds]
set airing "[duration [expr {$show_date_time - $sec}]]"
from the TVrage script..
Sorry if this dosen't work, for you.
E
Elfriede
Halfop
Posts: 67
Joined: Tue Aug 07, 2007 4:21 am

Post by Elfriede »

Thanks for the script!

Anyway im getting this timezone error on latest version: ( doesnt happen on all series )

!tv colony
Tcl error [tv]: time zone ":America/New_York" not found

What can i do to fix this error ?
User avatar
Arkadietz
Halfop
Posts: 67
Joined: Fri Jul 14, 2006 11:43 am
Location: cat /dev/zero > /dev/null;

Post by Arkadietz »

Froggaard wrote:
Froggaard wrote: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
I have made my own change in the script.. All credits to x0x :)
http://pastebin.com/KB0H0nVt
[05:05:12] <~Froggaard> !n blacklist
[05:05:16] <&Bermuda> Show: The Blacklist :: Next episode: S03E09 - The Director (1) airs 2016-01-07 (In: 4 weeks 6 days 18 hours 54 minutes 45 seconds) :: http://www.tvmaze.com/shows/69/the-blacklist
Not pretty, but it works :)
Here you can see all your code with your mistakes.
http://paste.tclhelp.net/?id=hgc
On a unix system everything is a file ; if something is not a file , it is a proccess.
User avatar
Get_A_Fix
Master
Posts: 206
Joined: Sat May 07, 2005 6:11 pm
Location: New Zealand

Post by Get_A_Fix »

I had thought about maybe using this script, until I saw that post, Arkadietz.

I generally run my scripts through a processor, like paste.tclhelp.net, to find errors or bits that may cause the bot to choke. Over the year's it has helped me make better scripts, using the proper method instead of using shortcuts or shortargs.

This is a pretty big script, so fixing all of the issues may be tedious but necessary. I hope this will make the script and process even better.
We explore.. and you call us criminals. We seek after knowledge.. and you call us criminals. We exist without skin color, without nationality, without religious bias.. and you call us criminals.
F
Froggaard
Voice
Posts: 13
Joined: Fri Sep 25, 2015 5:20 am

Post by Froggaard »

Arkadietz wrote:
Froggaard wrote:
Froggaard wrote: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
I have made my own change in the script.. All credits to x0x :)
http://pastebin.com/KB0H0nVt
[05:05:12] <~Froggaard> !n blacklist
[05:05:16] <&Bermuda> Show: The Blacklist :: Next episode: S03E09 - The Director (1) airs 2016-01-07 (In: 4 weeks 6 days 18 hours 54 minutes 45 seconds) :: http://www.tvmaze.com/shows/69/the-blacklist
Not pretty, but it works :)
Here you can see all your code with your mistakes.
http://paste.tclhelp.net/?id=hgc
Well, if there are any mistakes, in the script, it is not mine.
I have copied the entire script from x0x and just pasted three lines.

And when i tried to use your script, i got this error
Tcl error [tvnext]: invalid command name "http://api.tvmaze.com/singlesearch/show ... isode&quot"
So with, or without errors, i use the script there works.
F
Faithunter
Voice
Posts: 1
Joined: Sat Feb 20, 2016 5:17 pm

Post by Faithunter »

SOrry for my poor english already.

I m using a script who help to transfer TV with tvrage information since tvrage is down my script don t work i have try to adapt it for tvmaze.com but that don t work.

Can u help me to made it ? I put for u tvrage.com script here

http://pastebin.com/d0Xn5hD8

Hope some want help and i can be recognize :)
t
t00
Voice
Posts: 3
Joined: Mon Jun 02, 2014 11:23 am

Post by t00 »

its possible that the regex wrong is?

from script :
regsub -nocase -all {(\.| )([[:digit:]]{4}(\.| )|)(S[[:digit:]]{2}E[[:digit:]]{2}(\.| )|)(INTERNAL|INT|1080p|720p|HDTV|x264|WEBRip|REPACK|REAL|PROPER)(\.| ).*} $arg "" arg


when i this annouce its results from varibale arg Outrageous.Acts.of.Science.S01E01.Face.Palm.720p.HDTV.x264-DHD :

Outrageous Acts of Science S01E01 Face Palm

the script find nothing when S01E01 Face Palm is


<testbot> !tv Outrageous.Acts.of.Science.S01E01.Face.Palm.720p.HDTV.x264-DHD
<testbot1> testbot, there was an http error: ( 404 ) ok 12·
<testbot> !tv Outrageous Acts of Science
<testbot1> Show: Outrageous Acts of Science • Network: Science • Genre: Comedy 12·
<testbo1t> Premiered: 2013-04-20 • Status: Running • URL: http://www.tvmaze.com/shows/2649/outrag ... of-science 12·
<testbot1> Previous: S05E09 aired 2016-03-05 • Next: S05E10 airs 2016-03-12 at 09:00 PM EST 12·


who can check the regex?

Regards
x
x0x
Op
Posts: 140
Joined: Tue Feb 10, 2009 6:42 am

Post by x0x »

I'd appreciate any help optimizing the script :oops: 8)
V
Votex
Voice
Posts: 23
Joined: Sat Jun 21, 2014 6:52 pm

Post by Votex »

Having problem running it with 1.8.0 version
getting this error
can't find package json
while executing
"package require json"
(file "scripts/tvmaze.tcl" line 29)
invoked from within
"source scripts/tvmaze.tcl"
(file "eggdrop.conf" line 1387)

Fixed with json.tcl
------------------------

is it possible to add some coloring , or showing us how to do it ?
Post Reply