BinaryWorks.it Official Forum
BinaryWorks.it Official Forum
Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
 All Forums
 eXtreme Movie Manager (Rel. 7), No More Updates
 Scripts
 IMDB Top List Problem
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

tage1r
Starting Member

13 Posts

Posted - 09 Oct 2008 :  00:01:15  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi there,
there is a problem with this script at the IMDB Top 250 section; the custom1 field. input #13 takes the Top 250: string as well so the output comes as follows;

the shawshank redemption --> 00Top 250: #1 which I assume supposed to be --> Top 250:# 001
hence I made a change in the script as below;

#CHECKVARIABLE#=#13#
#STARTDELETETAGS#
#TRIM#
#DELETETAGS#
#DELETEWORD#=Top
#DELETEWORD#= 
#DELETEWORD#=250:
#DELETEWORD#=#
#ENDDELETETAGS#

#IF# #13#<<#50#
#STRING#=#04#=Top 250:# 00#13#
#TAKECUSTOM1#=#04#
#GOTO#=ENDTAKECUSTOM1250
#ENDIF#
#IF# #13#<<#49#
#STRING#=#04#=Top 250:# 0#13#

I am new to script language therefore it seemed me a long way. I need someone to correct with the correct way.

Edited by - tage1r on 09 Oct 2008 00:02:00

tage1r
Starting Member

13 Posts

Posted - 09 Oct 2008 :  00:18:57  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I've overmissed one point also need to change the last part as well ;
instead of
#ENDIF#
#TAKECUSTOM1#=#13#

it should be

#ENDIF#
#STRING#=#04#=Top 250:# #13#
#TAKECUSTOM1#=#04#

Go to Top of Page

Alessio Viti
Forum Admin

Italy
9171 Posts

Posted - 14 Oct 2008 :  18:24:27  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

I have upload a new release of the script, let me know if you still have problems.

Thank you,

Alessio

http://www.facebook.com/pages/eXtreme-Movie-Manager/47220214342?ref=mf
Go to Top of Page

tage1r
Starting Member

13 Posts

Posted - 16 Oct 2008 :  18:12:27  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi there,

I've checked IMDB.com(complete) script but still have the same problem.

Go to Top of Page

tage1r
Starting Member

13 Posts

Posted - 24 Oct 2008 :  18:25:40  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
hi again,
I assume there is something wrong about the script I wrote above. I assume the line #DELETEWORD#=
deletes all the "spaces" of script complete output. How can I make it run just to the input I've chosen?

Edited by - tage1r on 24 Oct 2008 18:26:23
Go to Top of Page

fege
Junior Member

Yugoslavia
152 Posts

Posted - 24 Oct 2008 :  23:05:05  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Try this:

#CUSTOM1#

#PUT#=100#49#
#PUT#=10#50#
#RESTOREMAIN#
#STARTREADWEB#
#FINDLINE#=/chart/top?#15##ONERROR#=*OK*
#IF# #15#==#00#
#GOTO#=ENDTAKECUSTOM1250
#ENDIF#
#FIND#=>Top 250: #11##ONERROR#=*STOP*
#FIND#=</script>#12##ONERROR#=*STOP*
#TAKEWORD#=#13#,#11#,#12#
#STARTDELETETAGS#
#TRIM#
#IF# #13#<<#50#
#STRING#=#04#=#13#
#TAKECUSTOM1#=#04#
#GOTO#=ENDTAKECUSTOM1250
#ENDIF#
#IF# #13#<<#49#
#STRING#=#04#=#13#
#TAKECUSTOM1#=#04#
#GOTO#=ENDTAKECUSTOM1250
#ENDIF#


#TAKECUSTOM1#=#13#

:ENDTAKECUSTOM1250

#ENDCUSTOM1#
Go to Top of Page

tage1r
Starting Member

13 Posts

Posted - 25 Oct 2008 :  10:25:00  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I guess you've deleted "0" and "00" cases which I suppose they are required to support ascending to descending sorting when you hit the custom1 tab. Because when you delete those numbers the numbers will be sorted;

1
108
178
23
234
3
4

so that's why I guess "0" and "00" are in the script

Go to Top of Page

tage1r
Starting Member

13 Posts

Posted - 25 Oct 2008 :  12:31:27  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I believe this will solve the problem; at least it does for the moment :)

--IMDBTOP250--------------------------------------------------------------------------------
#CUSTOM1#

#PUT#=100#49#
#PUT#=10#50#
#RESTOREMAIN#
#STARTREADWEB#
#FINDLINE#=/chart/top?#15##ONERROR#=*OK*
#IF# #15#==#00#
#GOTO#=ENDTAKECUSTOM1250
#ENDIF#
#FIND#=>#11##ONERROR#=*STOP*
#COMPUTECURSOR#=10
#PUTCURSOR#=#48#
#FIND#=</script>#12##ONERROR#=*STOP*
#TAKEWORD#=#13#,#48#,#12#
#IF# #13#<<#50#
#STRING#=#04#=Top 250:# 00#13#
#TAKECUSTOM1#=#04#
#GOTO#=ENDTAKECUSTOM1250
#ENDIF#
#IF# #13#<<#49#
#STRING#=#04#=Top 250:# 0#13#
#TAKECUSTOM1#=#04#
#GOTO#=ENDTAKECUSTOM1250
#ENDIF#


#STRING#=#04#=Top 250:# #13#
#TAKECUSTOM1#=#04#


:ENDTAKECUSTOM1250

#ENDCUSTOM1#
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
BinaryWorks.it Official Forum © Binaryworks.it Go To Top Of Page
Generated in 0.11 sec. Powered By: Snitz Forums 2000 Version 3.4.07