BinaryWorks.it Official Forum
BinaryWorks.it Official Forum
Home | Profile | Active Topics | Members | Search | FAQ
 All Forums
 eXtreme Movie Manager 8, 9, 10 Forum
 Bug Reports
 IMDB script does not work correctly

Note: You must be registered in order to post a reply.

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
micklecat Posted - 20 Jun 2021 : 10:31:02
I use XMM10. Main script for downloading movie data is, of course, IMDB. For a long time it worked incorrectly, downloaded seversl persons as Directors instead of one Director. Now it cannot download movie data at all. No Country, no Year, no Director. And no any updates to script! No new versions of XMM, version 11 is a stub only, it doesn't work. What we paid for? I am ready to pay more, but I want to have a correctly functioning movie database. But it seems like development is abandoned.
20   L A T E S T    R E P L I E S    (Newest First)
JDommi Posted - 17 May 2025 : 17:43:37
I know that problem. I think it's depending on the editors (#CUSTOM3#)... add as first line of that block #GOTO#=ENDTAKEEDITORS then you will go on to the episodes list.
In general those editors should behave the same as directors, photographers, etc. But somehow I don't find the error.
Sabry Posted - 17 May 2025 : 13:52:39
Hi JDommi,
Thank you for the TV Shows new script.

I tried to run the script with several tv shows.
After I select the show I want to update, the list of episodes never appear and the script continues to run grabbing data.
I always had to stop manually the grabbing.

Could you have a look?

Thanks you!!
JDommi Posted - 16 May 2025 : 09:32:21
https://www.mediafire.com/file/nbsywfxzvy34pqj/IMDB.COM_%2528Complete%2529.txt/file

This script is for release 10 but should work for releases 8 and 9, too, except the infos marked with "See more" on the IMDB site.
Rincewindwiz Posted - 14 May 2025 : 12:39:28
Thanks for the TV series script
Can you also please make the IMDB complete movie script available?

IMDB Changing something: Well it would be a neat trick to make scraping more difficult.

Surely easy to spot though: Just save the complete webpage each time and do a file compare to see what is different. It cant (realistically) be the data merely the structures/keywords.

Didn't somebody once say "In order to achieve what is possible, you have to try the impossible over and over again."

From all of us: Many thanks and good luck
JDommi Posted - 13 May 2025 : 21:17:19
Somehow I'm slowly losing it with IMDB...
Without making any changes and with the same series, the script gets stuck in an endless loop; then it works, or it gets stuck in a different place. This happens with XMM, the script debugger, and the original editor.
Either IMDB is changing something from call to call, or my system is acting up. Though I would actually rule out both.
I'll attach my current script. Actors and editors haven't been processed yet. Maybe someone else has better luck at the moment than I do.
https://www.mediafire.com/file/0g0gppvoco6dj0x/IMDB.COM_%2528TVSeries%2529_05_2025.txt/file
JDommi Posted - 09 May 2025 : 23:09:56
Hi :)

There are too many changes this time. This week I have a little time to work on the scripts. I will do my best but the IMDB scripts are really complicated.
Rincewindwiz Posted - 09 May 2025 : 22:49:07
Hi JDommi
And thanks for all your good work trying to keep up with IMDB changes


AFAICS the last complete IMDB script posted on Mediafire was back in January
Could you please make the current working version of the IMDB script available for those of us not sufficiently computer literate to patch sections of code into the existing script.


Thanks in anticipation
JDommi Posted - 01 May 2025 : 13:31:41
Next Fix: #DIRECTOR#

--DIRECTOR----------------------------------------------------------------------------------
#DIRECTOR#
    //Must be taken from the Combined Details Section, Check if I have load it on the SLOT 4
    //If WEBSLOT4 has data, the variable 54 must be at 1
    #IF# #54#==#00#
        // no Combined details available        
        #GOTO#=ENDTAKEDIRECTOR
    #ENDIF#
    //OK, slot 4 has data, I load it into memory
    #LOADWEBSLOT5#
    #STARTREADWEB#
    #FINDLINE#=>Directors<#10##ONERROR#=*OK*
    #PUTCURSOR#=#23#
    #IF# #10#==#00#
        // No DIRECTORs found
        #GOTO#=ENDTAKEDIRECTOR
    #ENDIF#
    // Find the end of the DIRECTORs
    // FIND#=<h3 class="ipc-title__text">#22##ONERROR#=*STOP*
    #FIND#=</section>#22#
    #PUTCURSOR#=#22#

    #LOADCURSOR#=#23#

:REPEATDIRECTOR 
    #FIND#="/name/nm#11#
    #IF# #11#==#00#
        #GOTO#=ENDTAKEDIRECTOR
    #ENDIF#
    #IF# #11#>>#22#
        // the search has gone past the directors        
        #GOTO#=ENDTAKEDIRECTOR
    #ENDIF#
    // doesn't take iMDB style of name        
    #FIND#=nm#14##ONERROR#=*OK*
    #FIND#=/#12##ONERROR#=*OK*
    #COMPUTEVAR#=#14#+1
    #TAKEWORD#=#15#,#14#,#12#
    #FIND#=>#14##ONERROR#=*OK*
    #FIND#=<#12##ONERROR#=*OK*
    #TAKEWORD#=#13#,#14#,#12#
    #CHECKVARIABLE#=#13#
    #STARTDELETETAGS#
    #STARTSUBSTITUTETAGS#
    #TRIM#
    #STRING#=#25#=#13#
    #STRING#=#14#=#13#§§#15#
    #STRING#=#13#=#13#§#15#
    #TAKEDIRECTOR#=#13#
    #CHECKACTOREXIST#=#51#,#14#
    #PUTCURSOR#=#08#
    #IF# #51#<>#00#
        // Check if the Actor and his image exist, if exist do not download the picture to speed up import        
        #GOTO#=RETURN2
    #ENDIF#
//GOSUB2
    #PUTCURSOR#=#08#
	#IF# #60#==#00#
     #GOTO#=RETURN2
	#ENDIF#
	#SAVEWEBSITELINE#
	#STRING#=#18#=#31#/name/nm#15#/?ref_=tt_ov_dr
	#STRING#=#15#=#14#
	#PUT#=2#99#
	#GOTO#=ACTORSSUB
:RETURN2 
    #LOADCURSOR#=#08#
    #GOTO#=REPEATDIRECTOR

:ENDTAKEDIRECTOR 
    #RESTOREMAIN#    
	#STARTREADWEB#
	#FINDLINE#="creator":[{#12##ONERROR#=*STOP*
	#PUT#=#16#
	#FIND#=]#20# #ONERROR#=*OK*
	#PUTCURSOR#=#22#
	#STARTREADWEB#
	#FINDLINE#="creator":[{#12##ONERROR#=*STOP*
    #FIND#="name"#20#
	#IF# #20#>>#22#
     #GOTO#=ENDFINALCREATOR
	#ENDIF#
	#FIND#=:"#11#
	#FIND#="#11#
	#FIND#="}#12#
    #TAKEWORD#=#15#,#11#,#12#
    #CHECKVARIABLE#=#15#
    #STARTSUBSTITUTETAGS#
    #STARTDELETETAGS#
    #TRIM#
    #STRING#=#16#=#16##15#
	
:CYCCREATORLINE 
    #FIND#="name"#20##ONERROR#=*OK*
	#IF# #20#>>#22#
        #GOTO#=ENDFINALCREATOR
	#ENDIF#
	#IF# #20#==#00#
        #GOTO#=ENDFINALCREATOR
	#ENDIF#
	#FIND#=:"#11#
	#FIND#="#11#
	#FIND#="}#12#
    #TAKEWORD#=#15#,#11#,#12#
    #CHECKVARIABLE#=#15#
    #STARTSUBSTITUTETAGS#
    #STARTDELETETAGS#
    #TRIM#
    #STRING#=#16#=#16#|#15#
	#GOTO#=CYCCREATORLINE

:ENDFINALCREATOR 
	#TAKECUSTOM3#=#16#
#ENDDIRECTOR#
JDommi Posted - 26 Apr 2025 : 10:44:30
Oh man, that will take a while...
there is not only one change in the structure. The ref_ has to be added, all keywords have changed ("Series directed by" -> "Directors") and now all data is written in one line instead of listed line by line.
For that I have to write the whole procedure for directors, actors, etc. completely from scratch
JDommi Posted - 20 Apr 2025 : 18:48:12
Thank you Sabry
I didn't have checked the rest of the script...
Although I already have an idea: the subside for actors maybe now have a ref addition in the link-address.
I will check it at the next opportunity.
Sabry Posted - 20 Apr 2025 : 12:30:05
Thank You JDommi,
now I can grab the TV Shows but cast and crew info are totally empty, both in the main cast and crew tab of the shows and also inside the episodes.

I hope you recover soon!

Happy Easter :)
JDommi Posted - 20 Apr 2025 : 10:14:27
Once again, sorry for late fix...
Please exchange the whole block #CREATEMOVIELIST#
#CREATEMOVIELIST#
	#PUT#=0#17#
	#STARTREADWEB#
	#FINDLINE#=<ul class="ipc-metadata-list#23##ONERROR#=*OK*
	#IF# #23#==#00#
		#GOTO#=SERIESNOTFOUND
	#ENDIF#
	#STARTREADWEB#
	#FINDLINE#=<div class="sc-4be28cfe-0 elXSkc">#10# #ONERROR#=*STOP*
	#REPEAT#
		#FIND#=div class="sc-4be28cfe-0 elXSkc">#10# #ONERROR#=*STOP*
		#PUTCURSOR#=#10#
		#FIND#=/title/#04#
		#FINDPREVIOUS#=class="ipc-image"#11# #ONERROR#=*OK*
		#IF# #11#<<#10#
			#PUT#=#08#
			#LOADCURSOR#=#10#
			#GOTO#=NOCOVERPICFOUND
		#ENDIF#
		#FIND#=src="#04#
		#FIND#="#04#
		#FIND#=.jpg#05#
		#FIND#="#05#
		#TAKEWORD#=#08#,#04#,#05#  //Coverpic
:NOCOVERPICFOUND 
		#FIND#= href="#04#
		#FIND#="#04#
		#FIND#=/?ref_=#05#
		#TAKEWORD#=#06#,#04#,#05#  //Link
		#FIND#=>#04#
		#FIND#=</a>#05#
		#TAKEWORD#=#07#,#04#,#05#  //Title

:NEXTSPAN 
		#PUTCURSOR#=#10#
		#FIND#=<div class="sc-4be28cfe-0 elXSkc">#11#
		#LOADCURSOR#=#10#

		#FIND#=<span class="#04#
		#IF# #04#>>#11#
			#LOADCURSOR#=#10#
			#GOTO#=CHECKINFO
		#ENDIF#
		#FIND#=>#04#
		#FIND#=</span>#05#
		#TAKEWORD#=#09#,#04#,#05#  //Info
		#STRING#=#07#=#07# (#09#)
		#GOTO#=NEXTSPAN
		
:CHECKINFO 
		#CHECKVARIABLE#=#07#
		#STARTSUBSTITUTETAGS#
		#CLEARTAGS#
		#STARTDELETETAGS#
		#WRITETITLELIST#=https://www.imdb.com/#06#    ---> #07# §#08#
	#WHILE# #00#<>#10#
:ENDMLIST 
	#IF# #17#==#00#
		#GOTO#=SERIESNOTFOUND
	#ENDIF#
	#GOTO#=ENDCREATEMOVIELIST

:SERIESNOTFOUND 
	// No titles were found		    
	#WRITETITLELIST#= ~~~~~~~~   The script couldn't find any titles matching that name.   ~~~~~~~~
	#WRITETITLELIST#= 
	#WRITETITLELIST#= If you know an alternative name for this movie then you could try to enter it
	#WRITETITLELIST#= again and after make import again							
	#WRITETITLELIST#=  
	#WRITETITLELIST#= If it still doesn't find anything then try to go to this page and search for it manually:
	#WRITETITLELIST#= https://www.imdb.com/search   
	#WRITETITLELIST#= 
	#WRITETITLELIST#= If you could find it manually then please post a bugreport in this thread in the XMM forum:
	#WRITETITLELIST#= http://www.binaryworks.it/forum/topic.asp?TOPIC_ID=772 
:ENDCREATEMOVIELIST 
#ENDCREATEMOVIELIST#
JDommi Posted - 16 Apr 2025 : 20:48:56
Sorry, I just didn't have the time 'til yet. And now the witch has had a shot at me (lower back pain) - I'm happy when I don't have to sit at the moment.
As soon as I can sit for morer than a few minutes I will have a look.
I think it's probably only an ID-name that has to be changed again...
JDommi Posted - 13 Apr 2025 : 21:23:47
I will try to have a look during this week, Sabry
Sabry Posted - 12 Apr 2025 : 11:37:51
Hi JDommi, I can confirm that now the last script TV Series cannot grab the data I mentioned in my last post.
The episodes list are totally empty.

Could you please check?

Thank you!
JDommi Posted - 27 Mar 2025 : 18:48:09
Hi Sabry!

Maybe they are testing something...
We have to wait for the next days if there are really changes in progress.
Sabry Posted - 26 Mar 2025 : 18:04:27
Hi JDommi,
it seems that the script "IMDB.COM (TVSeries)_12_2024" doesn't grab anymore cast and crew of the shows, also inside the episodes all the fields for actors, directors, writers are blank.
I noticed some changes in the website, maybe that's the reason why the script cannot run correctly.

Could you have a look?
Thanks :)

[Edit] I tried again today and now the script it's working!
Alferio Posted - 17 Jan 2025 : 22:48:39
thanks jdommy!!!!!!!
JDommi Posted - 13 Jan 2025 : 18:25:45
Check it, please...
https://www.mediafire.com/file/nbsywfxzvy34pqj/IMDB.COM_%2528Complete%2529.txt/file
JDommi Posted - 12 Jan 2025 : 19:11:49
I will have a look tomorrow...

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