BinaryWorks.it Official Forum
BinaryWorks.it Official Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 eXtreme Movie Manager (Rel. 7), No More Updates
 Scripts
 Actor's Photo
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

KenG
Starting Member

Australia
15 Posts

Posted - 04 May 2012 :  01:24:50  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi,

I have a lot of Actor's that don't have a photo of them.
I have used the normal Actor script's for all the other
information and just need a way to find a picture.
When I use Google image there are lots of picture's to chose from and
I started the slow process of copy and paste for each actor missing
the photo. Then I gave a modified GOOGLEIMAGES.txt script a go and I can select the picture in preview then click take selected but still end up with no picture. Can anybody help with this script?
---------------------------------------------------------
-	            eXtreme Movie Manager	               -
-   	         MagicScript Technology			 -
-       	   2006 Alessio "AleTsg" Viti		 -
---------------------------------------------------------
- Web :			Google Images 		 -
- Author :		Phyton	                             -
- Date  :		2/August/2010        		      	  -
---------------------------------------------------------

#MADEBY#=Phyton
#DATEBUILD#=2.August.2010
#WEBSITE#=Google Images
#NOTE#=Import Google Image As Photo
#SCRIPTQUALITY#=3
#SCRIPTGENERATION#=2
#LANGUAGESORT#=EN
#SCRIPTFORACTORS#=TRUE


#WEBQUERY#=http://www.google.com.tr/images?q=#NAME#

#TYPE#=0
[TYPE]=0=Complete|1=Covers|2=Trailers|3=Tunes|4=Subtitles|5=Chains|6=Mistakes|7=Games|8=Adult|9=Anime

#CREATEMOVIELIST#
    #STARTREADWEB#
    #WRITETITLELIST#=    
    #WRITETITLELIST#=Found Pictures
    #WRITETITLELIST#=-------------------------------
    #PUT#=0#00#
    
        #FINDLINE#=</span>G#10# #ONERROR#=*OK*

        #IF# #00#==#10#
           #GOTO#=ENDSEARCH
        #ENDIF#        
	 #REPEAT#
        #FIND#=<a href="/imgres?imgurl=#01# #ONERROR#=*OK*
	 #IF# #00#==#01#
           #GOTO#=ENDSEARCH
        #ENDIF#

	 #COMPUTECURSOR#=+23
	 #PUTCURSOR#=#01#
	 #FIND#=&imgrefurl=#03# #ONERROR#=*OK*
        #TAKEWORD#=#04#,#01#,#03#

	 #FIND#==&h=#07# #ONERROR#=*OK*
	 #COMPUTECURSOR#=+7
        #PUTCURSOR#=#07#
        #FIND#=&w=#11# #ONERROR#=*OK*
	 #TAKEWORD#=#08#,#07#,#11#
	 
	 #COMPUTECURSOR#=+6
        #PUTCURSOR#=#11#
        #FIND#=&sz=#12# #ONERROR#=*OK*
        #TAKEWORD#=#13#,#11#,#12#

	 #COMPUTECURSOR#=+7
        #PUTCURSOR#=#12#
        #FIND#=&hl=#14# #ONERROR#=*OK*
        #TAKEWORD#=#15#,#12#,#14#



	 #WRITETITLELIST#=#04#    ---> #04#  - resolution:#13#x#08# - size:#15#	


    #WHILE# #00#<>#01#
:ENDSEARCH

#ENDCREATEMOVIELIST#


#POSTER#
    #STARTREADWEB#

    //The directlink is directly the Cover!! I need this instruction (Engine V4.4)
    #GETMOVIEVAR#=#25#=#DIRECTLINK#

    #TAKEPOSTER#=#25#


#ENDPOSTER#




cheers
Ken

KenG
Starting Member

Australia
15 Posts

Posted - 17 May 2012 :  00:01:21  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Look's like I'm the only one that want's to get this working, If I run the above script after changing
#TAKEPOSTER#=#25# to #TAKEPICTURE#=#25# and running it in MagicScript Editor I end up with a 0-.jpg in
my Movie_photos directory but if I select this script when I try to update an Actor no file is created.
So I'm at a loss to understand where I'm going wrong, any help would be appreciated.

Cheers
Ken
Go to Top of Page

JDommi
Administrator

Germany
4655 Posts

Posted - 17 May 2012 :  10:10:04  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I haven't tested it but try to replace the #POSTER#/#ENDPOSTER# block with #TAKEACTORDATA#/#ENDTAKEACTOR# and #TAKEPOSTER# with #TAKEPICTURE#.

*EDIT*
Please have a look here: http://xmm.a.wiki-site.com/index.php/MagicScript_Technology_Programmer%27s_Guide

In order to achieve what is possible, you have to try the impossible over and over again.
Hermann Hesse

Edited by - JDommi on 17 May 2012 10:12:43
Go to Top of Page

KenG
Starting Member

Australia
15 Posts

Posted - 17 May 2012 :  23:23:53  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
That did it, I first used #TAKEACTORDATA#/#ENDTAKEACTOR# and had nothing running it in MagicScript Editor or update in the Actor's grid. Changed it to #ENDTAKEACTORDATA# with the same result. Changed it to just #ACTORDATA#/#ENDACTORDATA# and
bingo the picture worked with the correct name and put it in the Movie_photos directory.
Thanks for your help JDommi

Cheers
Ken
Go to Top of Page

JDommi
Administrator

Germany
4655 Posts

Posted - 18 May 2012 :  07:36:43  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Great :)
And sorry for the wrong variable names. Havn't had a look at them myself.

In order to achieve what is possible, you have to try the impossible over and over again.
Hermann Hesse
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.09 sec. Powered By: Snitz Forums 2000 Version 3.4.07