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.

Announce: movies.tcl

Support & discussion of released scripts, and announcements of new releases.
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

Care to post details? What did you do to break it?
User avatar
LivingSouL
Voice
Posts: 15
Joined: Fri May 04, 2007 11:30 am
Location: Davao
Contact:

Post by LivingSouL »

Hello...

I've tried my best to modify the script for this site http://www.nccc.com.ph/cinema/ but the bot didnt return any results:

Code: Select all

[23:22] <LivingSouL> .movies now
[23:22] <DavaoCurrentAffairs> Movies Now Playing:
[23:22] <DavaoCurrentAffairs> [End of Movies Now Playing]
I dont know if I did this right.. a help would be appreciated.. thanks

Code: Select all

        if {$command == "" || $command == "now"} {
                set regexm {<div id="nowshowing">.*?<td valign='top'>(.*?)</td>}

Code: Select all

                regsub -all {<a href.*?>} $moviedata {} moviedata
                regsub -all {</a>} $moviedata {} moviedata
                set movienames [regexp -all -inline {<div class='h1'>(.*?)</div>} $moviedata]
                regsub -all {<div class='h1'>.*?</div>} $movienames {} movienames
 
Could you guys help me? Thanks
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

Was it really necessary to double post?

If you're going to take my script and modify it, you'd best learn regexp. If you had asked me to make a script for that site, I might've been glad to do it. This just cheeses me off and makes me not so inclined to "help."

I've modified plenty of scripts when they were broken or lacked functionality, but I *DON'T* come here and ask for help modifying other peoples scripts (I learn to do it myself.)

Maybe I'm just being grumpy...
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

ge0x wrote:is it still working
not here
The website now redirects from www.filmspot.com to www.movietome.com. Just change the url in the script, then it'll work.

I've uploaded a fixed version to the archive and my link in the 1st post.

Sorry I didn't see this sooner =)
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

v0.01d release

Post by rosc2112 »

Ahh, I spoke too soon. After actually looking at the data being returned, I had to do a little regexp fixin, so NOW it's all working again. :)
Post Reply