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
Votex
Voice


Joined: 21 Jun 2014
Posts: 23

PostPosted: Fri Nov 20, 2015 2:09 pm    Post subject: Reply with quote

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



could someone help me please ?
Back to top
View user's profile Send private message
fr3n
Voice


Joined: 02 Dec 2005
Posts: 16

PostPosted: Sun Nov 22, 2015 5:19 pm    Post subject: Reply with quote

I think you need tcllib for windows
Back to top
View user's profile Send private message
Henkie2
Voice


Joined: 25 Sep 2015
Posts: 16

PostPosted: Mon Nov 23, 2015 8:09 pm    Post subject: Reply with quote

Votex try this one?
http://www.opensource.apple.com/source/tcl/tcl-87/tcl_ext/tcllib/tcllib/modules/json/json.tcl

and load before x0x's tvmaze.tcl Wink
Back to top
View user's profile Send private message
Henkie2
Voice


Joined: 25 Sep 2015
Posts: 16

PostPosted: Mon Nov 23, 2015 8:10 pm    Post subject: Reply with quote

ballz wrote:
I use this script and I made a solution for myself to display the Today schedule.
Oke Smile thanks will check
Back to top
View user's profile Send private message
Froggaard
Voice


Joined: 25 Sep 2015
Posts: 13

PostPosted: Thu Dec 03, 2015 12:09 am    Post subject: Reply with quote

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 Smile
http://pastebin.com/KB0H0nVt
Quote:
[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 Smile
Back to top
View user's profile Send private message
Votex
Voice


Joined: 21 Jun 2014
Posts: 23

PostPosted: Thu Dec 03, 2015 6:02 am    Post subject: Reply with quote

got this:
Quote:

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


Joined: 25 Sep 2015
Posts: 13

PostPosted: Tue Dec 15, 2015 12:12 am    Post subject: Reply with quote

I just took
Quote:
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.
Back to top
View user's profile Send private message
Elfriede
Halfop


Joined: 07 Aug 2007
Posts: 67

PostPosted: Sat Jan 02, 2016 12:09 pm    Post subject: Reply with quote

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


Joined: 14 Jul 2006
Posts: 66
Location: cat /dev/zero > /dev/null;

PostPosted: Sun Jan 03, 2016 5:26 pm    Post subject: Reply with quote

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 Smile
http://pastebin.com/KB0H0nVt
Quote:
[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 Smile


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.
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
Get_A_Fix
Master


Joined: 07 May 2005
Posts: 206
Location: New Zealand

PostPosted: Mon Jan 04, 2016 6:23 am    Post subject: Reply with quote

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


Joined: 25 Sep 2015
Posts: 13

PostPosted: Thu Jan 07, 2016 12:11 am    Post subject: Reply with quote

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 Smile
http://pastebin.com/KB0H0nVt
Quote:
[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 Smile


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
Quote:
Tcl error [tvnext]: invalid command name "http://api.tvmaze.com/singlesearch/shows?q=blacklist&embed%5b%5d=nextepisode&embed%5b%5d=previousepisode&quot"


So with, or without errors, i use the script there works.
Back to top
View user's profile Send private message
Faithunter
Voice


Joined: 20 Feb 2016
Posts: 1

PostPosted: Sat Feb 20, 2016 5:21 pm    Post subject: Reply with quote

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


Joined: 02 Jun 2014
Posts: 1

PostPosted: Tue Mar 08, 2016 1:25 pm    Post subject: Reply with quote

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


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

PostPosted: Wed Feb 08, 2017 4:15 pm    Post subject: Reply with quote

I'd appreciate any help optimizing the script Embarassed Cool
Back to top
View user's profile Send private message
Votex
Voice


Joined: 21 Jun 2014
Posts: 23

PostPosted: Sun Mar 05, 2017 2:21 pm    Post subject: Reply with quote

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