T O P I C R E V I E W |
__Oz__ |
Posted - 14 Jun 2004 : 23:20:06 Hi everybody,
I need help from anyone who know how to correct a import script. (Sorry for my english... )
Since the 2.5, the ALLOCINE.fr scripts didn't import pictures anymore. I always work with two scripts, because, only the first succeed to import actors.
Before the release 2.5, there was no problem, but now, i need to copy and paste manually pictures if i want them in the library :/
Please help \o/
Oo |
5 L A T E S T R E P L I E S (Newest First) |
__Oz__ |
Posted - 21 Jun 2004 : 00:23:20 Better better better :D
With some lines of your script, and the original, i've succeeded to take 15 poster as it works before.
======== #POSTER# #STARTREADWEB# #FINDLINE#=Valeur=#12##ONERROR#=*ASK* #FIND#==#01# #ONERROR#=*STOP* #FIND#='#02# #ONERROR#=*STOP* #TAKEWORD#=#06#,#01#,#02# #STARTREADWEB# #FINDLINE#=.jpg#12##ONERROR#=*STOP* #SETCURSOR#=1 #FIND#=http://#01# #ONERROR#=*STOP* #FIND#=.jpg#02# #ONERROR#=*STOP* #TAKEWORD#=#03#,#01#,#02# #STRING#=#04#=h#03#.jpg #STRING#=#40#=#04# #STRING#=#50#=http://www.allocine.com/film/galerie.html?cfilm=#06#&rc=15 #OPENNEWWEB#=#50# #FINDLINE#=align=center><A HREF="/film/galerie_gen_cfilm=#12##ONERROR#=*STOP* #SETCURSOR#=1 #FIND#=http://#01# #ONERROR#=*STOP* #FIND#=.jpg#02# #ONERROR#=*STOP* #TAKEWORD#=#03#,#01#,#02# #STRING#=#04#=h#03#.jpg #TAKEPOSTER#=#04# #PUT#=0#48# #REPEAT# #FIND#=http://#01# #ONERROR#=*STOP* #FIND#=.jpg#02# #ONERROR#=*STOP* #IF# #01#<<#12# #GOTO#=ENDPSTER #ENDIF# #IF# #02#==#48# #GOTO#=ENDPSTER #ENDIF# #TAKEWORD#=#03#,#01#,#02# #STRING#=#04#=h#03#.jpg #TAKEPOSTER#=#04# #WHILE# #02#<>#12# :ENDPSTER #RESTOREWEB# #TAKEPOSTER#=#40# #ENDPOSTER#
============
With this script :)
But now, 'coz you've just make me think of it with your post, i would try to take all pictures if there's more than 15... but i didn't success to... :/
Oo |
__Oz__ |
Posted - 20 Jun 2004 : 22:22:50 Thanks Konker, i try this now :)
Oo |
KonKer |
Posted - 17 Jun 2004 : 16:12:53 You have 3 options now:
1 - Obtain only 1 poster 2 - Configure the amount of posters to obtain 3 - All of the available posters
1 - I find the best option
#POSTER# #STARTREADWEB# #FINDLINE#=Valeur=#12##ONERROR#=*ASK* #FIND#==#01# #ONERROR#=*STOP* #FIND#='#02# #ONERROR#=*STOP* #TAKEWORD#=#06#,#01#,#02# #STRING#=#50#=http://www.allocine.fr/film/galerie_gen_cfilm=#06#&big=1&page=1.html #OPENNEWWEB#=#50# #FINDLINE#=align=center><A HREF="/film/galerie_gen_cfilm=#12##ONERROR#=*STOP* #FIND#="http://#01# #ONERROR#=*STOP* #FIND#=" #02# #ONERROR#=*STOP* #TAKEWORD#=#03#,#01#,#02# #TAKEPOSTER#=#03# #RESTOREWEB# #ENDPOSTER#
2 - Can be configured in the line #PUT#=5#42# ( in this case, the amount of posters is 5 )
#POSTER# #STARTREADWEB# #FINDLINE#=Valeur=#12##ONERROR#=*ASK* #FIND#==#01# #ONERROR#=*STOP* #FIND#='#02# #ONERROR#=*STOP* #TAKEWORD#=#06#,#01#,#02# #PUT#=1#41# #PUT#=5#42#
:REPEATPOSTER #IF# #41#>>#42# #GOTO#=ENDPOSTER #ENDIF# #STRING#=#50#=http://www.allocine.fr/film/galerie_gen_cfilm=#06#&big=1&page=#41#.html #OPENNEWWEB#=#50# #FINDLINE#=align=center><A HREF="/film/galerie_gen_cfilm=#12##ONERROR#=*STOP* #FIND#="http://#01# #ONERROR#=*STOP* #FIND#=" #02# #ONERROR#=*STOP* #TAKEWORD#=#03#,#01#,#02# #TAKEPOSTER#=#03# #RESTOREWEB# #COMPUTEVAR#=#41#=+1 #GOTO#=REPEATPOSTER
:ENDPOSTER #ENDPOSTER#
3 - Very heavy. For example: Matrix Revolution has 42 posters and Matrix Reloaded has 36. In some cases, it causes crash in EMM. I find a lot.
#POSTER# #STARTREADWEB# #FINDLINE#=Valeur=#12##ONERROR#=*ASK* #FIND#==#01# #ONERROR#=*STOP* #FIND#='#02# #ONERROR#=*STOP* #TAKEWORD#=#06#,#01#,#02# #STRING#=#50#=http://www.allocine.fr/film/galerie_gen_cfilm=#06#&big=1&page=#41#.html
#OPENNEWWEB#=#50# #FINDLINE#=Afficher les#15##ONERROR#=*STOP* #FIND#=Afficher les#16# #ONERROR#=*STOP* #COMPUTECURSOR#=+12 #PUTCURSOR#=#16# #FIND#= photos#17# #ONERROR#=*STOP* #TAKEWORD#=#18#,#16#,#17# #STRING#=#42#=#18# #RESTOREWEB#
#PUT#=1#41#
:REPEATPOSTER #IF# #41#>>#42# #GOTO#=ENDPOSTER #ENDIF# #STRING#=#50#=http://www.allocine.fr/film/galerie_gen_cfilm=#06#&big=1&page=#41#.html #OPENNEWWEB#=#50# #FINDLINE#=align=center><A HREF="/film/galerie_gen_cfilm=#12##ONERROR#=*STOP* #FIND#="http://#01# #ONERROR#=*STOP* #FIND#=" #02# #ONERROR#=*STOP* #TAKEWORD#=#03#,#01#,#02# #TAKEPOSTER#=#03# #RESTOREWEB# #COMPUTEVAR#=#41#=+1 #GOTO#=REPEATPOSTER
:ENDPOSTER #ENDPOSTER#
Enjoy... |
__Oz__ |
Posted - 15 Jun 2004 : 22:53:41 Oh ok ^^
I'll try to edit the script, and i feedback soon :)
Thank u cmaurice
---Edit
So i try to change to bmp, but it haven't solved the problem. I looked the source code of the html page of ALLOCINE, it's jpg files, not bmp.
I look to the vars, and i think this is where the problem is. I know how to code in php, but magicscript... i understand anything... ^^
---Edit 2
I've updated the script, but it always take the ad picture on the top of the web page :'(
#STARTREADWEB# #STRING#=#50#=http://www.allocine.com/film/galerie.html?cfilm=#06#&rc=15 #OPENNEWWEB#=#50# #FINDLINE#=.jpg#12##ONERROR#=*STOP* #SETCURSOR#=1 #FIND#=http://a69.g.akamai.net#01# #ONERROR#=*STOP* #FIND#=.jpg#02# #ONERROR#=*STOP* #TAKEWORD#=#03#,#01#,#02# #STRING#=#04#=h#03#.jpg #TAKEPOSTER#=#04# #PUT#=0#48# #REPEAT# #FIND#=http://a69.g.akamai.net#01# #ONERROR#=*STOP* #FIND#=.jpg#02# #ONERROR#=*STOP* #IF# #01#<<#12# #GOTO#=ENDPSTER #ENDIF# #IF# #02#==#48# #GOTO#=ENDPSTER #ENDIF# #TAKEWORD#=#03#,#01#,#02# #STRING#=#04#=h#03#.jpg #TAKEPOSTER#=#04# #WHILE# #02#<>#12# :ENDPSTER #RESTOREWEB# #TAKEPOSTER#=#40#
|
cmaurice |
Posted - 15 Jun 2004 : 18:14:42 Hi,
I have noticed that pictures are bmp files now and not jpeg... maybe it's cause of the problem... |
|
|