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 

blu-ray.com script by dalys (current: blu-ray.com_1.2.tcl)
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
dalys
Voice


Joined: 05 Oct 2008
Posts: 9
Location: Gothenburg, Sweden / QuakeNet

PostPosted: Sun Oct 05, 2008 10:38 am    Post subject: blu-ray.com script by dalys (current: blu-ray.com_1.2.tcl) Reply with quote

Hello! I've made a script that searches the website www.blu-ray.com for info about any movie. I made it mainly to get the blu-ray release date of movies but added more info fetching than so.

It would be nice if some people could try it out and see if there are any bugs or problems with it, or really only if it works. Very Happy Please post your experience in this thread!


Quote:
<dalys> !bluray bee movie
<bot> "Bee Movie (Blu-ray)" Release date: May 20, 2008 (Year: 2007 Length: 90 mins Rating: Rated PG Studio: DreamWorks)
<dalys> !bluray -details bee movie
<bot> Details for Bee Movie (Blu-ray) Video: Video codec: MPEG-4 AVC/Video resolution: 1080p/Aspect ratio: 1.85:1 Audio: English: Dolby TrueHD 5.1/French: Dolby Digital 5.1/Spanish: Dolby Digital 5.1 Subs: English SDH, English, French, Spanish Disc: 50GB Blu-ray Disc



The script has been tested on eggdrop 1.6.18 & 1.6.19. You also need http.tcl.

1.2 2010-02-01
- Blu-ray.com has been updated (with a better search function it seems)
and so has the script.
- Moved the project to github.

1.1 2008-10-26
- Fixed a broken regexp due to changes in blu-ray.com's html code
- Replaced the replacevar function with regsub (replacevar was not part of standard TCL)
Thanks to speechles for taking his time and helping out with the above!

1.0 2008-10-05
First release.


Download current version Arrow blu-ray.com_1.2.tcl


Last edited by dalys on Mon Feb 01, 2010 5:30 pm; edited 4 times in total
Back to top
View user's profile Send private message MSN Messenger
Kiru
Voice


Joined: 27 Feb 2008
Posts: 8

PostPosted: Mon Oct 06, 2008 2:57 am    Post subject: Reply with quote

working fine here, ty
Back to top
View user's profile Send private message
dalys
Voice


Joined: 05 Oct 2008
Posts: 9
Location: Gothenburg, Sweden / QuakeNet

PostPosted: Tue Oct 07, 2008 7:26 am    Post subject: Reply with quote

Thank you for reporting in Kiru. Good to hear it's working for at least one other person. Smile
Back to top
View user's profile Send private message MSN Messenger
Joori
Voice


Joined: 24 Mar 2006
Posts: 34
Location: Sydney

PostPosted: Thu Oct 16, 2008 1:47 pm    Post subject: Reply with quote

Thought I'd give this a try and it seems it's having a bit of a problem with my version of eggdrop. When trying to search for a particular movie, say for example the bee movie, I get no response from the eggdrop but I do get an error output as shown below.

Code:
[03:38] Tcl error [bluray_pub]: invalid command name "replacevar"


The version of eggdrop I am using is v1.6.19 and have the latest http.tcl package installed. This is not a Windrop, it is an eggdrop running on a FreeBSD environment. Any suggestions as to how I could correct this issue?

Thanks! Razz
_________________
No Haters, No Spies, Just the love 'tween my thighs!
Back to top
View user's profile Send private message Visit poster's website
dalys
Voice


Joined: 05 Oct 2008
Posts: 9
Location: Gothenburg, Sweden / QuakeNet

PostPosted: Thu Oct 16, 2008 4:24 pm    Post subject: Reply with quote

Joori wrote:
Thought I'd give this a try and it seems it's having a bit of a problem with my version of eggdrop. When trying to search for a particular movie, say for example the bee movie, I get no response from the eggdrop but I do get an error output as shown below.

Code:
[03:38] Tcl error [bluray_pub]: invalid command name "replacevar"


The version of eggdrop I am using is v1.6.19 and have the latest http.tcl package installed. This is not a Windrop, it is an eggdrop running on a FreeBSD environment. Any suggestions as to how I could correct this issue?

Thanks! Razz


Thanks for reporting! I'm going to check this out tomorrow and see if there's quick fix or what to do. Also running an eggdrop under FreeBSD here btw. Smile Although version 1.6.18 atm.
Back to top
View user's profile Send private message MSN Messenger
hyuma
Voice


Joined: 23 Feb 2008
Posts: 4

PostPosted: Mon Oct 20, 2008 9:14 am    Post subject: Reply with quote

This script is very good, but there is a little problem... it returs only the first result of bluray.com websearch... how is possible to show all results about !bluray <movie> ?
Back to top
View user's profile Send private message
MiNdErAsR
Voice


Joined: 27 Nov 2004
Posts: 17

PostPosted: Mon Oct 20, 2008 6:53 pm    Post subject: Reply with quote

I'm seeing a couple of issues...

Note: bot response is in pm...
Quote:
[18:33:40] <MiNdErAsR> !bluray Max Payne
[18:33:43] <Candy> Displaying results from: <img src="http://images.blu-ray.com/flags/US.gif" width="18" height="12" alt="United States" title="United States" /> Omitting results from: <img src="http://images.blu-ray.com/flags/AU.gif" width="18" height="12" alt="Australia" title="Australia" /><img src="http://images.blu-ray.com/flags/CA.gif" width="18" height="12" alt="Canada" title="Canada" /><img src="http://images.blu-ray.com/flags/DE.gif" width="18" height="12" alt="Ger


Note: bot response is via dcc chat...
Quote:
[18:35:29] <MiNdErAsR> !bluray bee movie
[18:35:36] <Candy> [00:34] Tcl error [bluray_pub]: invalid command name "replacevar"


Running eggdrop v1.6.19 and http.tcl
Back to top
View user's profile Send private message
Joori
Voice


Joined: 24 Mar 2006
Posts: 34
Location: Sydney

PostPosted: Wed Oct 22, 2008 8:34 am    Post subject: Reply with quote

Nice to see you're getting some output. I'm still not getting any output at all but I do get the same replacevar error.
_________________
No Haters, No Spies, Just the love 'tween my thighs!
Back to top
View user's profile Send private message Visit poster's website
dalys
Voice


Joined: 05 Oct 2008
Posts: 9
Location: Gothenburg, Sweden / QuakeNet

PostPosted: Sat Oct 25, 2008 6:22 am    Post subject: Reply with quote

Hello again! I've also noticed the bug when no title is found and it spits out all html code and it should be an easy fix. Smile Haven't had any time to look over the script yet to make it work without needing the replacevar function (or why some doesn't have that function) but I'm gonna check out and fix that too somehow, not sure when I'll have time though. Crying or Very sad
Back to top
View user's profile Send private message MSN Messenger
Joori
Voice


Joined: 24 Mar 2006
Posts: 34
Location: Sydney

PostPosted: Sat Oct 25, 2008 11:56 am    Post subject: Reply with quote

No dramas mate, take your time Cool

Im sure you'll let us know when a fix is available Smile
_________________
No Haters, No Spies, Just the love 'tween my thighs!
Back to top
View user's profile Send private message Visit poster's website
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Sat Oct 25, 2008 12:48 pm    Post subject: Reply with quote

dalys wrote:
Haven't had any time to look over the script yet to make it work without needing the replacevar function (or why some doesn't have that function) but I'm gonna check out and fix that too somehow, not sure when I'll have time though. Crying or Very sad

Because replacevar isn't part of standard tcl. It's some kludge to replace things within the string with other things. It's kinda poorly written as well.
Code:
regsub -all -nocase "%title" $bluray_output $bluray_title bluray_output
regsub -all -nocase "%studio" $bluray_output $bluray_info_studio bluray_output
regsub -all -nocase "%year" $bluray_output $bluray_info_year bluray_output
regsub -all -nocase "%length" $bluray_output $bluray_info_length bluray_output
regsub -all -nocase "%rating" $bluray_output $bluray_info_rating bluray_output
regsub -all -nocase "%releasedate" $bluray_output $bluray_info_releasedate bluray_output

Code:
set bluray_output [string map [list "%title" "$bluray_title" "%studio" "$bluray_info_studio" "%year" "$bluray_info_year" \
"%length" "$bluray_info_length" "%rating" "$bluray_info_rating" "%releasedate" "$bluray_info_releasedate"] $bluray_output]

You can use regsub or a string map to do your replacements and it doesn't require an extrernal script loaded supporting the replacevar procedure.
_________________
speechles' eggdrop tcl archive
Back to top
View user's profile Send private message
Joori
Voice


Joined: 24 Mar 2006
Posts: 34
Location: Sydney

PostPosted: Sun Oct 26, 2008 7:35 am    Post subject: Reply with quote

Cheers bud, that worked a treat, all works fine now Very Happy
_________________
No Haters, No Spies, Just the love 'tween my thighs!
Back to top
View user's profile Send private message Visit poster's website
dalys
Voice


Joined: 05 Oct 2008
Posts: 9
Location: Gothenburg, Sweden / QuakeNet

PostPosted: Sun Oct 26, 2008 7:37 am    Post subject: Reply with quote

speechles wrote:
dalys wrote:
Haven't had any time to look over the script yet to make it work without needing the replacevar function (or why some doesn't have that function) but I'm gonna check out and fix that too somehow, not sure when I'll have time though. Crying or Very sad

Because replacevar isn't part of standard tcl. It's some kludge to replace things within the string with other things. It's kinda poorly written as well.
Code:
regsub -all -nocase "%title" $bluray_output $bluray_title bluray_output
regsub -all -nocase "%studio" $bluray_output $bluray_info_studio bluray_output
regsub -all -nocase "%year" $bluray_output $bluray_info_year bluray_output
regsub -all -nocase "%length" $bluray_output $bluray_info_length bluray_output
regsub -all -nocase "%rating" $bluray_output $bluray_info_rating bluray_output
regsub -all -nocase "%releasedate" $bluray_output $bluray_info_releasedate bluray_output

Code:
set bluray_output [string map [list "%title" "$bluray_title" "%studio" "$bluray_info_studio" "%year" "$bluray_info_year" \
"%length" "$bluray_info_length" "%rating" "$bluray_info_rating" "%releasedate" "$bluray_info_releasedate"] $bluray_output]

You can use regsub or a string map to do your replacements and it doesn't require an extrernal script loaded supporting the replacevar procedure.


Very nice! The funny thing I'm using string maps in the script but didn't thought of that. Thanks for clearing up about the replacevar function and helping out. Smile I've put together a new version of the script and will upload it later today.
Back to top
View user's profile Send private message MSN Messenger
dalys
Voice


Joined: 05 Oct 2008
Posts: 9
Location: Gothenburg, Sweden / QuakeNet

PostPosted: Sun Oct 26, 2008 9:34 am    Post subject: Reply with quote

Uploaded the new version now (see first post). Smile I've also chatted a bit with hyuma about fetching multiple search results and it's something I will put in the next version of the script.
Back to top
View user's profile Send private message MSN Messenger
hyuma
Voice


Joined: 23 Feb 2008
Posts: 4

PostPosted: Mon Oct 27, 2008 12:19 pm    Post subject: Reply with quote

thank you for your job dude! Razz
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 1, 2, 3  Next
Page 1 of 3

 
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