English > PVD Python Scripts

New IMDb People v4 Script Discussion

(1/3) > >>

afrocuban:
Hello Ivek.

Do you have an idea how could I force "BioList" from this function to populate to the field from the snippet in the file attached, while ShouldParseBio is set to 0 or is set to "Set If Empty" but bio field is not empty, on the last Exit from PVD?

BioList properly parses but it won't populate. The only trick I can do to populate BioList is to set "Bio" differently to "Overwrite" regardles of the state of the bio field, or to set it to "Set If Empty" if it was empty upon starting PVD with opBio=0 in the pvdconfig.ini (from the last PVD exit).

afrocuban:
Also,

I can't log anything and I don't know what this snippet is for:


            //~Filmography index~
            If Pos('<h3 class="ipc-title__text"><span>Credits</span></h3>',CombinedHTML)>0 Then Begin
                curPos:=Pos('<h3 class="ipc-title__text"><span>Credits</span></h3>',CombinedHTML);
                If curPos>0 Then Begin
                    EndPos:=curPos;
                    ItemValueBase:=HTMLValues(CombinedHTML,'<h3 class="ipc-title__text"><span>Credits</span></h3>','<span class="ipc-chip__text">IMDbPro</span>','<span class="ipc-chip__text">','<span class="ipc-chip__count">',',  ',EndPos);             
                    If ItemValueBase <> '' then ItemListBase:=ItemListBase+ #13#10 +'Additional Filmography Career:  '+ItemValueBase+'  ';
         LogMessage('      Parse Results Filmography index:'+ItemValueBase+'||');
      End;
   End;
   
What it is supposed to catch?

Ivek23:
Add all the missing bio codes (ShouldParseBio and similar) that you didn't add to the text file so I can run tests, only then will I see what's happening and maybe find a way to add information to the bio field.

afrocuban:
Thanks a lot. If I give it to you in this phase it might confuse me because I'm not a coder. So, I suggest to get back to this issue when I release v4 of the scripts.

Ivek23:

--- Quote from: afrocuban on January 21, 2025, 02:47:47 am ---         - Job Title, Career and other personal data now moved from comment to bio field.
--- End quote ---

Job title, career and almost all other personal information do not belong in the bio field. Or rather, only Mini Biography information belongs in the bio field, which has been the case since the very beginning, when there was still an IMDb People plugin. With the IMDb People script, I added all other information to the comment field. Information from the IMDb People Biography page was added to the bio field, such as Name, Date of birth and death, Place of birth and death, Height and family information. This was visible or there was an option not to see it.

Otherwise, I don't use IMDb People scripts at all anymore, because I don't need IMDb People information at all, because it takes up too much space in my databases, which I use. For the last 10 years, I have been using the IMDb People script only for testing on old IMDb People databases.

So much about this from my side.

Navigation

[0] Message Index

[#] Next page

Go to full version