BinaryWorks.it Official Forum
BinaryWorks.it Official Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 eXtreme Movie Manager (Rel. 7), No More Updates
 Scripts
 Allocine actors problem

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
__Oz__ Posted - 07 Nov 2005 : 03:30:13
There's a problem on the allocine script, actors are succesfully added to the movie card but they aren't added to the actors database... how can i fix this ?



#MADEBY#=CSU
#DATEBUILD#=1/06/2003
#WEBSITE#=ALLOCINE.FR - (FRENCH)
#NOTE#=Import All Information Available with Big Pictures
#SCRIPTQUALITY#=4
#ICONQUALITY#=4
#REPLACESPACES#=+
#SCRIPTGENERATION#=2
#WEBQUERY#=http://www.allocine.fr/recherche/?motcle=#MOVIE#&f=3&rub=1

#RIGHTPAGEFOUND#

#STARTREADWEB#

#FINDLINE#=(1 rponse)#12##ONERROR#=*STOP*

#PUT#=0#00#

#CONDITIONRIGHTPAGE# #12#<>#00#

#ENDRIGHTPAGEFOUND#

#CREATEMOVIELIST#
#STARTREADWEB#
#FINDLINE#=Films #12##ONERROR#=*STOP*

#PUT#=0#00#
#PUT#=0#50#

#WRITETITLELIST#=Films déjà sortis

#FIND#=Pas de résultats#12##ONERROR#=*OK*

#IF# #00#<>#12#
#WRITETITLELIST#=Aucun résultat
#GOTO#=NoResult
#ENDIF#

:ReadNewPage

#FINDLINE#=<a href="/film/fichefilm_gen_cfilm=#12##ONERROR#=*OK*

#REPEAT#

#FIND#=">#01##ONERROR#=*OK*
#COMPUTEVAR#=#01#=+1
#FIND#=</a>#02##ONERROR#=*OK*

#TAKEWORD#=#03#,#01#,#02#

#CHECKVARIABLE#=#03#
#STARTDELETETAGS#

:GetMovieSiteID

#SETCURSOR#=1
#FIND#=_cfilm#01##ONERROR#=*OK*
#COMPUTEVAR#=#01#=+6
#FIND#=.html#02##ONERROR#=*OK*

#TAKEWORD#=#09#,#01#,#02#

:SeekForOriginalTitle

#READNEXTLINE#

#FIND#=(#01##ONERROR#=*OK*
#IF# #01#<>#00#
#FIND#=)#02##ONERROR#=*OK*
#TAKEWORD#=#04#,#01#,#02#
#CHECKVARIABLE#=#04#
#STARTDELETETAGS#
#STRING#=#03#=#03# (#04#)
#READNEXTLINE#
#ENDIF#

#STRING#=#06#=http://www.allocine.fr/film/fichefilm_gen_cfilm=#09#.html

#WRITETITLELIST#=#06# ---> #03#

#READNEXTLINE#

#FIND#=<br />#01##ONERROR#=*OK*

#IF# #01#==#00#

:SearchForDetailMain

#FIND#=>#01##ONERROR#=*OK*
#FIND#=<#02##ONERROR#=*OK*
#TAKEWORD#=#04#,#01#,#02#

#CHECKVARIABLE#=#04#
#STARTDELETETAGS#
#STARTSUBSTITUTETAGS#

:SearchForDetailSecond

#READNEXTLINE#

#FIND#=>#01##ONERROR#=*OK*
#FIND#=<#02##ONERROR#=*OK*
#TAKEWORD#=#05#,#01#,#02#

#CHECKVARIABLE#=#05#
#STARTDELETETAGS#
#STARTSUBSTITUTETAGS#

#STRING#=#03#= #04##05#

#WRITETITLELIST#=#03#
#ENDIF#

:ExitWhilePage

#FINDLINE#=<a href="/film/fichefilm_gen_cfilm=#12##ONERROR#=*OK*

#WHILE# #00#<>#12#

#STARTREADWEB#
#FINDLINE#=Films suivants#10##ONERROR#=*OK*

#IF# #10#<>#00#
#SETCURSOR#=1
#FIND#="/recherche#10##ONERROR#=*OK*
#COMPUTECURSOR#=+1
#FIND#="#02##ONERROR#=*OK*
#TAKEWORD#=#03#,#01#,#02#
#STRING#=#03#=http://www.allocine.fr#03#
#ENDIF#

#IF# #50#<>#00#
#RESTOREWEB#
#ENDIF#

#IF# #10#<>#00#
#PUT#=1#50#
#OPENNEWWEB#=#03#
#GOTO#=ReadNewPage
#ENDIF#
:NoResult

#ENDCREATEMOVIELIST#

#MOVIETITLE#
#STARTREADWEB#

#PUT#=0#00#

#FINDLINE#=<h1 style="color: #D20000">#12# #ONERROR#=*STOP*
#READNEXTLINE#

#FIND#=>#01##ONERROR#=*STOP*
#FIND#=<#02##ONERROR#=*STOP*

#TAKEWORD#=#03#,#01#,#02#
#CHECKVARIABLE#=#03#
#STARTDELETETAGS#

#FINDLINE#=Titre original :#12# #ONERROR#=*OK*

#IF# #12#==#00#
#GOTO#=TakeTitle
#ENDIF#

#FIND#=>#01##ONERROR#=*STOP*
#FIND#=<#02##ONERROR#=*STOP*

#TAKEWORD#=#03#,#01#,#02#
#CHECKVARIABLE#=#03#
#STARTDELETETAGS#
#STARTSUBSTITUTETAGS#

:TakeTitle

#TITLE#=#03# #ONERROR#=*ASK*
#ENDMOVIETITLE#

#DIRECTOR#
#STARTREADWEB#
#FINDLINE#=Réalisé par#12##ONERROR#=*STOP*
#PUT#=0#09#
#REPEAT#
#FIND#=Href="#10# #ONERROR#=*OK*
#IF# #10#==#09#
#GOTO#=GOLABEL
#ENDIF#
#FIND#=>#01# #ONERROR#=*ASK*
#FIND#=<#02# #ONERROR#=*ASK*
#TAKEWORD#=#03#,#01#,#02#
#CHECKVARIABLE#=#03#
#STARTDELETETAGS#
#STARTSUBSTITUTETAGS#
#TAKEDIRECTOR#=#03#
#WHILE# #09#<>#10#
:GOLABEL
#PUT#= #03#
#TAKEDIRECTOR#=#03#
#ENDDIRECTOR#

#ACTORS#
#STARTREADWEB#

#FINDLINE#=Voir tout le casting...#12##ONERROR#=*STOP*

#SETCURSOR#=1
#FIND#="/film/#01# #ONERROR#=*OK*
#COMPUTECURSOR#=+1
#FIND#="#02# #ONERROR#=*OK*
#TAKEWORD#=#03#=#01#=#02#
#STRING#=#03#=http://www.allocine.fr#03#

#OPENNEWWEB#=#03#

#FINDLINE#=<b>Acteur(s)</b>#12# #ONERROR#=*STOP*

:LookForActors

#FINDLINE#=<tr style="background-color#10# #ONERROR#=*STOP*

#REPEAT#

#READNEXTLINE#

#FIND#=<h5>#01# #ONERROR#=*OK*
#COMPUTECURSOR#=+3
#PUTCURSOR#=#01#
#FIND#=<#02# #ONERROR#=*OK*
#TAKEWORD#=#03#=#01#=#02#

#READNEXTLINE#

#FIND#=class="link1"><h4>#01# #ONERROR#=*OK*
#COMPUTECURSOR#=+17
#PUTCURSOR#=#01#
#FIND#=<#02# #ONERROR#=*OK*
#TAKEWORD#=#04#=#01#=#02#

#STRING#=#03#=#04# (#03#)

#TAKEACTOR#=#03#

#FINDLINE#=<tr style="background-color#10# #ONERROR#=*OK*

#WHILE# #10#<>#00#

#RESTOREWEB#

#ENDACTORS#

#GENRE#
#STARTREADWEB#

#FINDLINE#=Genre :#12##ONERROR#=*STOP*

#FIND#=:#01# #ONERROR#=*OK*
#COMPUTEVAR#=#01#=+1
#FIND#=<#02# #ONERROR#=*OK*
#TAKEWORD#=#03#=#01#=#02#

#TAKEGENRE#=#03#

#ENDGENRE#

#RATING#
#STARTREADWEB#
#FINDLINE#=class="link1">Spectateurs#12##ONERROR#=*STOP*
#FIND#=etoile_#01# #ON ERROR#=*OK*
#FIND#=_#01# #ON ERROR#=*OK*
#FIND#=.gif#02# #ON ERROR#=*OK*
#TAKEWORD#=#03#,#01#,#02#
#TAKERATING#=#03#
#ENDRATING#

#PLOT#
#STARTREADWEB#

#PUT#=0#00#
#PUT#=#04#
#PUT#=</tr>#05#

#FINDLINE#=>Synopsis<#12##ONERROR#=*STOP*
#FINDLINE#=<td valign="top" style="padding:10 0 0 0">#12##ONERROR#=*STOP*

#FIND#=<h4>#01##ONERROR#=*OK*
#COMPUTEVAR#=#01#=+3

:ReadLine

#REPEAT#
#TAKEWORD#=#03#=#01#=#00#

#STRING#=#04#=#04##03#

#READNEXTLINE#

#PUT#=0#01#
#TAKEWORD#=#02#=#01#=#00#
#WHILE# #02#<>#05#

#CHECKVARIABLE#=#04#
#STARTDELETETAGS#
#STARTSUBSTITUTETAGS#
#TAKEPLOT#=#04# #ONERROR#=*ASK*

#ENDPLOT#

#RUNTIME#
#STARTREADWEB#
#FINDLINE#=Durée#12##ONERROR#=*STOP*
#FIND#=:#01# #ONERROR#=*STOP*
#COMPUTEVAR#=#01#=+1
#FIND#=.#02# #ONERROR#=*STOP*
#TAKEWORD#=#03#,#01#,#02#
#TAKERUNTIME#=#03# #ONERROR#=*ASK*
#ENDRUNTIME#

#COUNTRY#
#STARTREADWEB#
#FINDLINE#=Avec #12##ONERROR#=*STOP*
#READNEXTLINE#
#READNEXTLINE#

#FIND#=>#01##ONERROR#=*OK*
#FIND#=<#02##ONERROR#=*OK*
#TAKEWORD#=#03#=#01#=#02#

#TAKECOUNTRY#=#03#
#ENDCOUNTRY#

#YEAR#
#STARTREADWEB#
#FINDLINE#=Année de production#12##ONERROR#=*STOP*
#FIND#=:#01# #ONERROR#=*STOP*
#COMPUTEVAR#=#01#=+1
#FIND#=<#02# #ONERROR#=*STOP*
#TAKEWORD#=#03#,#01#,#02#

#TAKEYEAR#=#03# #ONERROR#=*ASK*
#ENDYEAR#

#POSTER#
#STARTREADWEB#

#PUT#=http://www.allocine.fr/ext2#50#
#PUT#=0#00#

#FINDLINE#=Toute la Galerie Photos#12##ONERROR#=*STOP*
#SETCURSOR#=1
#FIND#=/film/galerie#01# #ONERROR#=*STOP*
#FIND#==#01# #ONERROR#=*STOP*
#FIND#=.htm#02# #ONERROR#=*STOP*
#TAKEWORD#=#03#,#01#,#02#
#STRING#=#03#=http://www.allocine.fr/film/galerie_gen_cfilm=#03#&filtre=&page=1.html

:TakeNextPoster

#OPENNEWWEB#=#03#
#FINDLINE#=class="galerie"#12##ONERROR#=*STOP*
#SETCURSOR#=1
#FIND#="#01# #ONERROR#=*ASK*
#COMPUTECURSOR#=+1
#FIND#="#02# #ONERROR#=*ASK*
#TAKEWORD#=#03#,#01#,#02#

#TAKEPOSTER#=#03#

:NextPoster

#FINDLINE#=>>#12##ONERROR#=*STOP*
#COMPUTECURSOR#=-100
#FIND#="#01# #ONERROR#=*OK*
#IF# #12#<>#00#
#COMPUTECURSOR#=+1
#PUTCURSOR#=#01#
#FIND#="#02# #ONERROR#=*ASK*
#TAKEWORD#=#03#,#01#,#02#
#STRING#=#03#=http://www.allocine.fr/#03#
#ENDIF#

#RESTOREWEB#

#IF# #03#<>#50#
#GOTO#=TakeNextPoster
#ENDIF#

#ENDPOSTER#
quote:



Oo
3   L A T E S T    R E P L I E S    (Newest First)
__Oz__ Posted - 22 Nov 2005 : 03:00:45
Problems solved, script is online. :)

Oo
__Oz__ Posted - 07 Nov 2005 : 17:41:53
I've worked with some of the old and new Allocine scripts... so i change some probably wrong things.

quote:
#MOVIETITLE#
#STARTREADWEB#
#PUT#=0#00#
#FINDLINE#=<h1 style="color: #D20000">#12# #ONERROR#=*STOP*
#READNEXTLINE#
#FIND#=>#01##ONERROR#=*STOP*
#FIND#=<#02##ONERROR#=*STOP*
#TAKEWORD#=#03#,#01#,#02#
#CHECKVARIABLE#=#03#
#STARTDELETETAGS#
#FINDLINE#=Titre original :#12# #ONERROR#=*OK*
#IF# #12#==#00#
#GOTO#=TakeTitle
#ENDIF#
#FIND#=>#01##ONERROR#=*STOP*
#FIND#=<#02##ONERROR#=*STOP*
#TAKEWORD#=#03#,#01#,#02#
#CHECKVARIABLE#=#03#
#STARTDELETETAGS#
#STARTSUBSTITUTETAGS#
:TakeTitle
#TITLE#=#03# #ONERROR#=*ASK*
#ENDMOVIETITLE#


I changed the bold line into :
#FINDLINE#=<h1 style="color:#12# #ONERROR#=*STOP*

'coz it seamed to "break" the syntax coloring and even the good information gathering with the #D20000


For my actors problem, i add what you told me in the actors part but it doesn't changed anything ; the actors are still not adding to the actors database so that i can import them directly after the movie import :

quote:
#ACTORS#
#STARTREADWEB#
#FINDLINE#=Voir tout le casting...#12##ONERROR#=*STOP*
#SETCURSOR#=1
#FIND#="/film/#01# #ONERROR#=*OK*
#COMPUTECURSOR#=+1
#FIND#="#02# #ONERROR#=*OK*
#TAKEWORD#=#03#,#01#,#02#
#STRING#=#03#=http://www.allocine.fr#03#
#OPENNEWWEB#=#03#
#FINDLINE#=<b>Acteur(s)</b>#12# #ONERROR#=*STOP*
:LookForActors
#FINDLINE#=<tr style="background-color#10# #ONERROR#=*STOP*
#REPEAT#
#READNEXTLINE#
#FIND#=<h5>#01# #ONERROR#=*OK*
#COMPUTECURSOR#=+3
#PUTCURSOR#=#01#
#FIND#=<#02# #ONERROR#=*OK*
#TAKEWORD#=#03#=#01#=#02#
#READNEXTLINE#
#FIND#=class="link1"><h4>#01# #ONERROR#=*OK*
#COMPUTECURSOR#=+17
#PUTCURSOR#=#01#
#FIND#=<#02# #ONERROR#=*OK*
#TAKEWORD#=#04#=#01#=#02#
#STRING#=#03#=#04# (#03#)
#ADDACTOR#=#04#
#TAKEACTOR#=#03#
#FINDLINE#=<tr style="background-color#10# #ONERROR#=*OK*
#WHILE# #10#<>#00#
#ENDACTORS#


Oo
Alessio Viti Posted - 07 Nov 2005 : 14:41:11
You must insert the #ADDACTOR# instruction, like this:

#ADDACTOR#=#13#

after you have put the actor's name in the variable #13# in this example.

Alessio

BinaryWorks.it Official Forum © Binaryworks.it Go To Top Of Page
Generated in 0.08 sec. Powered By: Snitz Forums 2000 Version 3.4.07