English > Development

Script for egafd.com

<< < (26/27) > >>

Ivek23:

--- Quote from: Ivek23 on January 06, 2012, 04:12:00 pm ---egafd_movie
Small  change for Notes:

Added Duration.


--- Code: ---     //Notes
//pull ~Notes~ from Part 'Details'
   dbgstrg := '';
   curpos := Pos('<td valign="top">Notes: ' , HTML);
   EndPos := curPos;
         LogMessage('Notes')
         dbgstrg := TextBetween(HTML, '<td valign="top">Notes: </td><td width="100%" class="notes">', '</td>', False, CurPos);
         LogMessage('Notes :' + dbgstrg);
If dbgstrg <> '' then
          {AddFieldValue(mfDescription, dbgstrg);}
          AddFieldValueXML('tagline', dbgstrg);


    //pull ~Duration~ from 'Details'
//Duration
        curpos := Pos('<td valign="top">Notes: ' , HTML);
LogMessage('getting durations')
actPosEnd := PosFrom(' mins', HTML, actPosStart);
actPosStart := actPosEnd - 3;
Tmp := IntToStr(StrToInt(Copy(HTML, actPosStart, 3)));
LogMessage('Duration: ' + Tmp);
if Tmp = '0' then Tmp := '';
If Tmp <> '' then AddFieldValue(mfDuration, Tmp);
if Tmp = '' then Tmp := 'duration unknown';
LogMessage(' Parsing: ' + Tmp);

    end;     //// End of Part <Details>
--- End code ---

--- End quote ---

It works properly only if the length of the movie displayed in minutes (for example: 90 mins, 114 mins ...).

Ivek23:
egafd_movie
egafd_mod13(1)

Added:

* Added full transfer of data to Director  in Comment field.
* Added full transfer of data to Countries  in Country field.
* Added full transfer of data to Studio  in Studio field.
* Added full transfer of data to Tags(Alternate Titles) in Comment field.
* Added a version and name of the script.
egafd_mod13(1) script attached

egafd_movie
egafd_mod13(2)

Added:

* Added full transfer of data to Director  in Comment field.
* Added full transfer of data to Countries  in Country field.
* Added full transfer of data to Studio  in Studio field.
* Added full transfer of data to Tags(Alternate Titles) in Comment field.
* Added a version and name of the script.
egafd_mod13(2) script attached

[attachment deleted by admin]

Ivek23:
I think the time has come when we can say that we have come to the final version egafd_movie script, which will be published also for other users as well as the publication via system for automatic updates.
Here now is the egafd_movie script (Release Candidate), which is also attached.

[attachment deleted by admin]

Ivek23:
I think the time has come when we can say that we have come to the final version egafd_people script, which will be published also for other users as well as the publication via system for automatic updates.
Here now is the egafd_people script (Release Candidate), which is also attached.

[attachment deleted by admin]

Ivek23:
Of course, if you agree pra15 , then I'll opened a new topic specifically for egafd_movie script and egafd_people script and there published the final version of the script with all the necessary descriptions that go with them, and I will also edited by for the part that this script will also be available through system for automatically updated.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version