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.

tvcountdown.tcl - Upcoming episodes information.

Support & discussion of released scripts, and announcements of new releases.
Post Reply
User avatar
username
Op
Posts: 196
Joined: Thu Oct 06, 2005 9:20 am
Location: Russian Federation, Podolsk
Contact:

tvcountdown.tcl - Upcoming episodes information.

Post by username »

Hello. This script works with tvcountdown.com:
# Few results found.
<tvrsh> !tvcd big
<@bionic> По вашему запросу 'big' найдено 8 сериалов.
<@bionic> "Big Bad World (2013)", "Big Brother (US)", "Big School", "Big Time Rush", "John Bishop's Big Year", ...
<@bionic> Уточните параметры поиска.

# Only one result found.
<tvrsh> !tvcd big bang
<@bionic> The Big Bang Theory
<@bionic> Airtime: 20:00:00(US/Eastern) on CBS. Status: Returning Series. Country: US. Runtime: 30 min.
<@bionic> S07E23 "The Gorilla Dissolution" airs 2d 21h 16m 3s ago (08 May 2014 20:00:00)
<@bionic> S07E22 "The Proton Transmogrification" airs 9d 21h 16m 3s ago (01 May 2014 20:00:00)
<@bionic> S07E24 "The Status Quo Combustion" airs in 4d 2h 43m 57s (15 May 2014 20:00:00)
Its in russian, but you can translate it to any lang you like. Only few phrases inside.

Download: tvcountdown.tcl
Архив TCL скриптов для ботов Eggdrop/Windrop:
http://egghelp.ru/
User avatar
spithash
Master
Posts: 249
Joined: Thu Jul 12, 2007 9:21 am
Location: Libera
Contact:

Post by spithash »

awesome script man, I'm already using it :)

there seems to be an issue with some chars though in the results...
see the bold ones...
<@spithash> !tv anna and katy
<@nagger> Anna & Katy
also...
<@spithash> !tv beauty and the beast
<@nagger> Beauty and the Beast (2012)
<@nagger> Airtime: 21:00:00(GMT-5 +DST) on CW. Status: Returning Series. Country: US. Runtime: 60 min.
<@nagger> S02E16 "About Last Night" airs 65d 16h 4m 42s ago (10 March 2014 21:00:00)
<@nagger> S02E15 "Catch Me If You Can" airs 72d 16h 4m 42s ago (03 March 2014 21:00:00)
<@nagger> S02E17 "Beast Is The New Black" airs in 18d 6h 55m 18s (02 June 2014 21:00:00)
<@nagger> S02E18 " " airs in 25d 6h 55m 18s (09 June 2014 21:00:00)
Libera ##rtlsdr & ##re - Nick: spithash
Click here for troll.tcl
User avatar
username
Op
Posts: 196
Joined: Thu Oct 06, 2005 9:20 am
Location: Russian Federation, Podolsk
Contact:

Post by username »

Add

Code: Select all

        set data [string map {"&" "&" " " " "} $data]
before

Code: Select all

        set stitle ""
And change

Code: Select all

            foreach futureepisode $futureepisodes {
                if {$currf < $tvcountdown(searchfutlines)} {
                    putserv "PRIVMSG $chan :[lindex $futureepisodes $currf] $tvcountdown(color1)airs in [::tvcountdown::tvcountdown_duration [expr [clock scan "[lindex $ftimestamps $currf]" -base [clock seconds]] - [clock seconds]]] $tvcountdown(color1)($tvcountdown(color2)[lindex $ftimestamps $currf]$tvcountdown(color1))\003"
                    incr currf
                }
            }
to

Code: Select all

        if {[info exists futureepisodes] && $futureepisodes != ""} {
            foreach futureepisode $futureepisodes {
                if {$currf < $tvcountdown(searchfutlines)} {
                    putserv "PRIVMSG $chan :[lindex $futureepisodes $currf] $tvcountdown(color1)airs in [::tvcountdown::tvcountdown_duration [expr [clock scan "[lindex $ftimestamps $currf]" -base [clock seconds]] - [clock seconds]]] $tvcountdown(color1)($tvcountdown(color2)[lindex $ftimestamps $currf]$tvcountdown(color1))\003"
                    incr currf
                }
            }
        }
Архив TCL скриптов для ботов Eggdrop/Windrop:
http://egghelp.ru/
User avatar
spithash
Master
Posts: 249
Joined: Thu Jul 12, 2007 9:21 am
Location: Libera
Contact:

Post by spithash »

you are awesome! thanks! :wink:
Libera ##rtlsdr & ##re - Nick: spithash
Click here for troll.tcl
User avatar
spithash
Master
Posts: 249
Joined: Thu Jul 12, 2007 9:21 am
Location: Libera
Contact:

Post by spithash »

what if I want to "hide" the future episode titles to avoid spoilers?
could this be made with a switch for example?
Libera ##rtlsdr & ##re - Nick: spithash
Click here for troll.tcl
User avatar
username
Op
Posts: 196
Joined: Thu Oct 06, 2005 9:20 am
Location: Russian Federation, Podolsk
Contact:

Post by username »

Updated. Look at

Code: Select all

        hidefuturetitles 0
        hidefuturetitlestext "\00304\002no spoilers!\00304\002"
Архив TCL скриптов для ботов Eggdrop/Windrop:
http://egghelp.ru/
User avatar
spithash
Master
Posts: 249
Joined: Thu Jul 12, 2007 9:21 am
Location: Libera
Contact:

Post by spithash »

Thank you very much man 8)
Libera ##rtlsdr & ##re - Nick: spithash
Click here for troll.tcl
V
ViciousPiranha
Voice
Posts: 36
Joined: Mon Dec 17, 2012 5:21 am

Post by ViciousPiranha »

Thank you, can there be an english version of the output? I got an error earlier and couldn't tell what it means
User avatar
spithash
Master
Posts: 249
Joined: Thu Jul 12, 2007 9:21 am
Location: Libera
Contact:

Post by spithash »

I think that the script stopped working :?
Libera ##rtlsdr & ##re - Nick: spithash
Click here for troll.tcl
User avatar
username
Op
Posts: 196
Joined: Thu Oct 06, 2005 9:20 am
Location: Russian Federation, Podolsk
Contact:

Post by username »

Updated.
Архив TCL скриптов для ботов Eggdrop/Windrop:
http://egghelp.ru/
User avatar
bunnybump
Voice
Posts: 9
Joined: Fri Aug 17, 2012 2:32 am
Contact:

Post by bunnybump »

i upgraded my tcl into Tcl8.6 and guess what? suddenly the script stopped working. so now the script doesn't works well. the script cannot find any tv series :(
In the Beginning... Was the Command Line
User avatar
spithash
Master
Posts: 249
Joined: Thu Jul 12, 2007 9:21 am
Location: Libera
Contact:

Post by spithash »

Yeah same for me.

Also, it would be really nice if username could translate it to english. I had my version translated to english but after having to update the script with username's changes a couple of times, I got really lazy translating it all the time :D

It's a really nice and useful script :)
Libera ##rtlsdr & ##re - Nick: spithash
Click here for troll.tcl
Post Reply