Author Topic: New changes on ImdB made PVD 1.0.2.7 Unusable  (Read 1253 times)

0 Members and 2 Guests are viewing this topic.

Offline afrocuban

  • Older Power User
  • *****
  • Posts: 347
    • View Profile
Re: New changes on ImdB made PVD 1.0.2.7 Unusable
« Reply #20 on: November 25, 2021, 10:22:47 pm »
These are great news. Thanks!

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2435
    • View Profile
Re: New changes on ImdB made PVD 1.0.2.7 Unusable
« Reply #21 on: November 27, 2021, 10:21:54 am »
These are great news. Thanks!

Thank you. About 15 Imdb scripts will be available in December, which will work with the help of the Proxomitron program.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline afrocuban

  • Older Power User
  • *****
  • Posts: 347
    • View Profile
Re: New changes on ImdB made PVD 1.0.2.7 Unusable
« Reply #22 on: November 27, 2021, 11:33:31 am »
A new archiving/cleanup of a Scripts folder already scheduled, hahah. Thanks.

One question:  I have 2 fields in my skin. One is standard Features, and the other is custom IMDb Tech Specs field. Until recently all specs were filled in that custom field, and now the scripts fills Features field only. How can I customize the script so it would fill custom field again (or both), because otherwise I should update ~7k movies movies which is very cumbersome... I renamed old custom field to Imdb-TechSpecs already, if that matters. Maybe it's then when the script started to fill Features field only?

Thanks in advance for your advise!

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2435
    • View Profile
Re: New changes on ImdB made PVD 1.0.2.7 Unusable
« Reply #23 on: November 27, 2021, 08:38:44 pm »
A new archiving/cleanup of a Scripts folder already scheduled, hahah. Thanks.

One question:  I have 2 fields in my skin. One is standard Features, and the other is custom IMDb Tech Specs field. Until recently all specs were filled in that custom field, and now the scripts fills Features field only. How can I customize the script so it would fill custom field again (or both), because otherwise I should update ~7k movies movies which is very cumbersome... I renamed old custom field to Imdb-TechSpecs already, if that matters. Maybe it's then when the script started to fill Features field only?

Thanks in advance for your advise!

You made a mistake when you renamed the old custom field to Imdb-TechSpecs. So you have this problem now. Information for Runtime, Sound Mix, Color, Aspect Ratio and nothing more is downloaded to the Imdb-TechSpecs custom box. The full TechSpecs information is transferred to the ImdbTechSpecs custom field. Rename the custom field back to the old name, it may then transfer the information correctly.

Or maybe something changed these settings in the script.
Quote
//Script Options-------------------------------------------------------------------------------------------------------
  //Retreive Data Config
  USE_SAVED_PVDCONFIG  = True ;  //Use the Overwrite Options of the script saved in pvdconf.ini for avoid download not used pages. Remember PVD only save in exit.
  GET_ORIGINAL_TITLE  = True ;  //Download the alternate title info in your language in your country in of the principal movie page if it exists there for to replace the original title in the Title field. 
//  GET_ORIGINAL_TITLE  = False ;  //Download the alternate title info in your language in your country in of the principal movie page if it exists there for to replace the original title in the Title field.
//  GET_LOCAL_TITLE  = True ;  //Download the alternate title info in your language in your country in of the principal movie page if it exists there.
  GET_LOCAL_TITLE  = False ;  //Download the alternate title info in your language in your country in of the principal movie page if it exists there. 
  GET_FULL_MPAA  = True ;  //Download Certification provider page for retreive the MPAA info. Otherwise only the info of the principal movie page.
  GET_FULL_AKA  = True ;  //Download 'Also Known As' provider page for retreive the info. Otherwise only the info of the principal movie page.
  GET_FULL_CREDIT  = True ;  //Download Cast or Credit provider page for retreive the info. Otherwise only the info of the principal movie page.
  PEOPLE_LIMIT  = 25;    //Limit of number of actors (cast) or of credits (crew) retrieved.
  GET_FULL_AWARDS  = True ;  //Download Awards provider page for retreive the info. Otherwise doesn't do nothingh because no info in the principal movie page.
  EVENTS_LIMIT  = 100;   //Limit of number of events (USA Academy Awards, Golden Globes, etc) to retrive awards.
  GET_FULL_FEATURES  = True ; //Download Technical Specs for retreive the original movie features (Runtime, Sound Mix, Color, Aspect Ratio, etc).
  //GET_FULL_FEATURES  = False ; //Download Technical Specs for retreive the original movie features (Runtime, Sound Mix, Color, Aspect Ratio, etc).
  GET_MINI_FEATURES  = True ; //Download Technical Specs for retreive the original movie features (Runtime, Sound Mix, Color, Aspect Ratio).
  //GET_MINI_FEATURES  = False ; //Download Technical Specs for retreive the original movie features (Runtime, Sound Mix, Color, Aspect Ratio).
  //GET_FEATURES  = True ; //Download Technical Specs for retreive the original movie features (Runtime, Sound Mix, Color, Aspect Ratio).
  GET_FEATURES  = False ; //Download Technical Specs for retreive the original movie features (Runtime, Sound Mix, Color, Aspect Ratio).

  GET_FULL_PLOTKEYWORDS  = True ;  //Download Plot Keywords provider page for retreive the Plot Keywords info. Otherwise only the info of the principal movie page
.
.
.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline afrocuban

  • Older Power User
  • *****
  • Posts: 347
    • View Profile
Re: New changes on ImdB made PVD 1.0.2.7 Unusable
« Reply #24 on: November 30, 2021, 01:27:44 am »

You made a mistake when you renamed the old custom field to Imdb-TechSpecs. So you have this problem now. Information for Runtime, Sound Mix, Color, Aspect Ratio and nothing more is downloaded to the Imdb-TechSpecs custom box. The full TechSpecs information is transferred to the ImdbTechSpecs custom field. Rename the custom field back to the old name, it may then transfer the information correctly.


That was it, thank you!

I hope you will help me 2 more questions.

in the script code, I found:
Quote
If (Length(ItemValue)=0) Then ItemValue:=titleValue;                           //Provider hides the original title if same that title. WEB_SPECIFIC

Is there a way to unhide both origtitle and title when they're the same?

And maybe the biggest challenge for me. Is it possible to get/import English (International) title to a Title field while at the same time importing Localized Title too? Or to some other custom field for example?
« Last Edit: November 30, 2021, 01:29:41 am by afrocuban »

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2435
    • View Profile
Re: New changes on ImdB made PVD 1.0.2.7 Unusable
« Reply #25 on: November 30, 2021, 04:47:07 pm »
I hope you will help me 2 more questions.

in the script code, I found:
Quote
If (Length(ItemValue)=0) Then ItemValue:=titleValue;                           //Provider hides the original title if same that title. WEB_SPECIFIC

Is there a way to unhide both origtitle and title when they're the same?

This is only visible if the title and original title are different.

In the custom Imdb_Title field, I edited it so that you have both the original and the local address, if the local address of course exists.
Quote
        //Get ~alternatetitle~
        ItemValue:=TextBetWeenFirst(ItemList,'","alternateName":"','","');          //Strings which opens/closes the data. WEB_SPECIFIC
      AddCustomFieldValueByName('Localized title',ItemValue);
      
      if GET_LOCAL_TITLE then AddFieldValueXML('title',ItemValue);
        if ItemValue <> '' then LogMessage('      Get result alternatetitle:'+ItemValue+'||');      
      If ItemValue <> '' then AddCustomFieldValueByName('Imdb_Title',ItemValue+#13+titleValue+'  (original title)')
      Else AddCustomFieldValueByName('Imdb_Title',titleValue);

      //Get ~IMDB_Movietype~

And maybe the biggest challenge for me. Is it possible to get/import English (International) title to a Title field while at the same time importing Localized Title too? Or to some other custom field for example?

In the custom English title field, you now have an English  title. However, you have the manual option to possibly get / import English title to a Title field.

Quote
Function ParsePage_IMDBMovieAKA(HTML:String):Cardinal; //BlockOpen
    //Returns:
    //     Result:=prFinished; Script has finished gathering data
    //     Result:=prError; If żany big problem? with exit;
    //Retrieve: ~aka~ "Also Known As"
  Var
    curPos,endPos,index:Integer;
    ItemValue,ItemList:String;
   ItemValue1:String;
   ItemList2:String;
   Name,Role,ItemValue2:String;
    ItemArray: TWideArray;
  Begin
    LogMessage('Function ParsePage_IMDBMovieAKA BEGIN=====================||');
    Result:=prFinished;  //It will change to prError if any big problem with exit;
    //Get ~aka~ (several values in a line break separated list) Be careful don't repeat
.
.
.
   //Get all aka list ~Imdb Aka~
   ItemValue1:=StringReplace(ItemValue1,'|','',True,True,False);
   ItemValue1:=StringReplace(ItemValue1,'                                                        ',#13,True,True,False);      
   AddCustomFieldValueByName('Imdb Aka',ItemValue1);
   //Get ~aka~ (English title)
    curPos:=Pos('<table class="ipl-zebra-list akas-table-test-only">',ItemList2)     //String which opens the subList data. WEB_SPECIFIC   
   While curPos>0 Do Begin   
      Name:=TextBetWeen(ItemList2,'<td class="aka-item__name">','</td>',false,curPos);
      if Name <> '' then LogMessage('      Get result Name:'+Name+'||');
      Role:=TextBetWeen(ItemList2,'<td class="aka-item__title">','</td>',false,curPos);
      if Role <> '' then LogMessage('      Get result Role:'+Role+'||');       
   
      if ItemValue2 <> '' then ItemValue2:=ItemValue2+#13;
      if Name <> '' then ItemValue2:=ItemValue2+Name;
      if Role <> '' then ItemValue2:=ItemValue2+#160#160+Role;      
      if ItemValue2 <> '' then LogMessage('      Get results aka 2:'+ItemValue2+'||');   
      If Pos('(English title)',Name) > 1 then Role:=Role else Role:='';   
      if ItemValue2 <> '' then LogMessage('      Get results aka2:'+Role+'||');
      AddCustomFieldValueByName('English title',Role);
      //AddFieldValueXML('title',Role);
      curPos:=PosFrom('<tr class="ipl-zebra-list__item aka-item">',ItemList2,curPos)     //String which opens the subList data. WEB_SPECIFIC   
   End;      

    LogMessage('Function ParsePage_IMDBMovieAKA END=====================||');
  End; //BlockClose

IMDB_[EN][HTTPS]_(afrocuban) script  is attached.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD