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
 ALLOCINE.FR Scripts
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

__Oz__
Starting Member

France
14 Posts

Posted - 14 Jun 2004 :  23:20:06  Show Profile  Visit __Oz__'s Homepage  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

cmaurice
New Member

France
57 Posts

Posted - 15 Jun 2004 :  18:14:42  Show Profile  Visit cmaurice's Homepage  Edit Reply  Click to see cmaurice's MSN Messenger address  Reply with Quote  View user's IP address  Delete Reply
Hi,

I have noticed that pictures are bmp files now and not jpeg... maybe it's cause of the problem...
Go to Top of Page

__Oz__
Starting Member

France
14 Posts

Posted - 15 Jun 2004 :  22:53:41  Show Profile  Visit __Oz__'s Homepage  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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#

Edited by - __Oz__ on 16 Jun 2004 02:12:01
Go to Top of Page

KonKer
New Member

Brazil
60 Posts

Posted - 17 Jun 2004 :  16:12:53  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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...
Go to Top of Page

__Oz__
Starting Member

France
14 Posts

Posted - 20 Jun 2004 :  22:22:50  Show Profile  Visit __Oz__'s Homepage  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks Konker, i try this now :)

Oo

Edited by - __Oz__ on 20 Jun 2004 23:31:19
Go to Top of Page

__Oz__
Starting Member

France
14 Posts

Posted - 21 Jun 2004 :  00:23:20  Show Profile  Visit __Oz__'s Homepage  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
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.12 sec. Powered By: Snitz Forums 2000 Version 3.4.07