Author Topic: Allmovie Script  (Read 51184 times)

0 Members and 5 Guests are viewing this topic.

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2737
    • View Profile
Re: Allmovie Script
« Reply #20 on: April 30, 2010, 11:05:39 am »
OK.I wondered, as I have in future for himself end edit with the assistance of
DVD releases for  My MoviesDVD Database with such concrete data.
« Last Edit: April 30, 2010, 12:49:34 pm by Ivek23 »
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2737
    • View Profile
Re: Allmovie Script
« Reply #21 on: May 01, 2010, 06:16:21 am »
I wonder how would in AllMovie + (Ivek23) added Movie budget from AllMovie.com (Die Another Day).Try I already more variants however,no success.
Please be only for code.
« Last Edit: May 01, 2010, 06:32:36 am by Ivek23 »
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2737
    • View Profile
Re: Allmovie Script
« Reply #22 on: May 12, 2010, 08:37:35 am »
To avoid a new topic I will ask here:
I hope this is possible:
How to CAST (Actors) section of AllMovie.com was particularly in custom items or if all that this do.
« Last Edit: May 15, 2010, 09:24:34 am by rick.ca »
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2737
    • View Profile
Re: Allmovie Script
« Reply #23 on: May 13, 2010, 07:35:25 am »
Would it be possible in future AllMovie script to add Cast and Awards tab in such form as it today Production Credits tab.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2737
    • View Profile
Re: Allmovie Script
« Reply #24 on: June 16, 2010, 09:52:11 am »
Cast Tab is a solution Here.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2737
    • View Profile
Re: Allmovie Script
« Reply #25 on: June 20, 2010, 03:53:06 pm »
I have a question:

Would it be possible (if at all possible), how to make the code for Similar Works and Other Related Works for example at this site: http://www.allmovie.com/work/the-matrix-177524

Maybe even both codes in a custom field, for example in the field Awards.

Thanks for the reply and effort in advance.
« Last Edit: June 20, 2010, 04:05:43 pm by Ivek23 »
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2737
    • View Profile
Re: Allmovie Script
« Reply #26 on: June 21, 2010, 06:13:51 pm »
Quote
Similar Works and Other Related Works for example at this site: http://www.allmovie.com/work/the-matrix-177524
I tried the code (/ / Review, / / Features (DVD releases) and / / Description) but no success.
I am very interested in it that would be visible in the script, but I have no idea how to do it.
Similarly, on IMDB.com under Movie connections, but it is shown differently on both sides.
« Last Edit: June 22, 2010, 06:48:01 pm by Ivek23 »
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2737
    • View Profile
Re: Allmovie Script
« Reply #27 on: June 23, 2010, 12:37:23 pm »
Quote
I tried the code (/ / Review, / / Features (DVD releases) and / / Description) but no success.
I did it just change the custom field to another custom field, not the text in the second custom field.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2737
    • View Profile
Re: Allmovie Script
« Reply #28 on: June 26, 2010, 07:12:01 am »
I have suggestion for AllMovie script, if possible added to the script profile option
(Film) Awards and links to similar or other similar works (films) with the addition of the year and film director.
Individuals would have the option, of course, if you wish to make visible in a custom field.
Thanks.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2737
    • View Profile
Re: Allmovie Script
« Reply #29 on: September 28, 2010, 03:59:02 pm »
I wonder how and what to change(of course if there is to change something) in AllMovie script to AllMovie poster image can be added for example in the Custom section and the rest of us poster image would not change.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2737
    • View Profile
Re: Allmovie Script
« Reply #30 on: October 04, 2010, 07:31:23 am »
Here is my modified AllMovie+ -Ivek23- script
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2737
    • View Profile
Re: Allmovie Script
« Reply #31 on: January 31, 2011, 06:58:56 pm »
What is your question? ???

A special AllMovie+ DVD script for this site

I'm at work its AllMovie DVD script and it would ask for help.

For this
I'm interested in this:
Street Date,Screen Format,Sound,Studio

but I can not find solution so I could get help with this.

At this address next cahill-us-marshall-commemorative-packaging is all what is listed above there also visible.

Thanks
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2737
    • View Profile
Re: Allmovie Script
« Reply #32 on: January 31, 2011, 08:20:39 pm »
Quote
Obviously it will be necessary to manually enter this address

http://www.allmovie.com/dvd/cahill-us-marshall-commemorative-packaging-161910

you must manually enter the url.


It is true that the need to manually enter the url address but the choice of movie titles (although here in this title really does, because the only, elsewhere there are more titles, or even some direct to dvd movie site) what movie
you choose.
« Last Edit: February 04, 2011, 05:52:37 am by Ivek23 »
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2737
    • View Profile
Re: Allmovie Script
« Reply #33 on: January 31, 2011, 08:47:25 pm »
Here's the script AllMovie DVD Test and AllMovie DVD Test 1 for testing and corrections. For help with testing and I also added two skin made for this script.

Extend, this

Quote
It is true that the need to manually enter the url address but the choice of movie titles (although here in this title really does, because the only, elsewhere there are more titles, or even some direct to dvd movie site) what movie
you choose.

BTW:
I'm not an expert in writing scripts (or plugin) or read the source code for the web page but only an amateur enthusiast movies.

[attachment deleted by admin]
« Last Edit: February 10, 2011, 08:05:50 am by Ivek23 »
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2737
    • View Profile
Re: Allmovie Script
« Reply #34 on: February 01, 2011, 03:52:48 pm »
In cahill-us-marshall-commemorative-packaging the Street Date Source code
Code: [Select]
<tr>
<td colspan="3" class="artist">

<table border="0" cellpadding="0" cellspacing="0">
<tbody><tr><td><div id="left-sidebar-title"><span>Street Date</span></div></td></tr>
<tr><td><img src="http://images.allmediaguide.com/spacer.gif" height="1" width="1"></td></tr>
<tr><td class="formed-sub">May 22, 2007</td></tr>
</tbody></table>
</td>
</tr>
</tr>

the script but I have used this code
Code: [Select]
//Street Date
 AddCustomFieldValueByName('Street Date', HTMLValues(HTML,
                             '<span>Street Date</span>', '</table>',
                 '<li>', '</li>',
                 ', ', EndPos));



or this code

Code: [Select]
//Street Date
 AddCustomFieldValueByName('Street Date', HTMLValues(HTML,
                             '<span>Street Date</span>', '</table>',
                 '<li>', '</li>',
                 ', ', EndPos));

EndPos := PosFrom('class="formed-sub"', HTML, curPos);


but not one or the other code is not working properly (other data transfers, but not for Street Date).

What did I do wrong?
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2737
    • View Profile
Re: Allmovie Script
« Reply #35 on: February 02, 2011, 05:16:38 pm »
In cahill-us-marshall-commemorative-packaging the Street Date Source code
Code: [Select]
<tr>
<td colspan="3" class="artist">

<table border="0" cellpadding="0" cellspacing="0">
<tbody><tr><td><div id="left-sidebar-title"><span>Street Date</span></div></td></tr>
<tr><td><img src="http://images.allmediaguide.com/spacer.gif" height="1" width="1"></td></tr>
<tr><td class="formed-sub">May 22, 2007</td></tr>
</tbody></table>
</td>
</tr>
</tr>

the script but I have used this code
Code: [Select]
//Street Date
 AddCustomFieldValueByName('Street Date', HTMLValues(HTML,
                             '<span>Street Date</span>', '</table>',
                 '<li>', '</li>',
                 ', ', EndPos));



or this code

Code: [Select]
//Street Date
 AddCustomFieldValueByName('Street Date', HTMLValues(HTML,
                             '<span>Street Date</span>', '</table>',
                 '<li>', '</li>',
                 ', ', EndPos));

EndPos := PosFrom('class="formed-sub"', HTML, curPos);


but not one or the other code is not working properly (other data transfers, but not for Street Date).

What did I do wrong?

Solution:

The above-mentioned codes I replaced it with this here.

Code: [Select]
//Street Date
 AddCustomFieldValueByName('Street Date', HTMLValues(HTML,
                             '<span>Street Date</span>', '</table>',
                '<td class="formed-sub">', '</td>',
                 ', ', EndPos));



Instead,  '<li>', '</li>',  I switched to this  '<td class="formed-sub">', '</td>',   and work.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2737
    • View Profile
Re: Allmovie Script
« Reply #36 on: February 04, 2011, 03:51:56 pm »
I found a solution to the AMG Work ID http://www.allmovie.com/work/the-matrix-177524  or AMG DVD ID  http://www.allmovie.com/dvd/cahill-us-marshall-commemorative-packaging-161910

Code is added under Description or Features (DVD releases)

Code: [Select]


//Description
 curPos := PosFrom('<td align="left" class="title">Plot Synopsis</td>', HTML, EndPos);
 TmpStr := TextBetween(HTML, '<td colspan="2"><p>', '</p></td>', True, curPos);
 TmpStr1 := StringReplace(TmpStr, ' -- ', '—', True, True, False);
 TmpStr2 := StringReplace(TmpStr1, '--', '—', True, True, False);
 AddFieldValue(mfDescription, TmpStr2);

 
 //Features (DVD releases)
 curPos := PosFrom('<td class="large-list-title" style="padding-top: 13px; padding-bottom: 1px;">', HTML, EndPos);
 TmpStr := TextBetween(HTML, '<td class="large-list-title" style="padding-top: 13px; padding-bottom: 1px;">', '>View DVD Releases</a></td>', False, curPos);
 TmpStr1 := StringReplace(TmpStr, '» <a href=', '', True, True, False);
 If TmpStr1 <> '' then
 AddCustomFieldValueByName('Feature', '<link url=' + TmpStr1 + '>DVD Releases</link>');


//AMG Work ID
 AddCustomFieldValueByName('AMG WID', HTMLValues(HTML,
                             '<span>AMG Work ID</span>', '</table>',
                '<td class="formed-sub"><pre>', '</pre></td>',
                ', ', EndPos));

end;


or

Code: [Select]

//AMG DVD ID
 AddCustomFieldValueByName('AMG DVD ID', HTMLValues(HTML,
                             '<span>AMG DVD ID</span>', '</table>',
                '<td class="formed-sub"><pre>', '</pre></td>',
                ', ', EndPos));



then work script normal elsewhere the script is not working normally.Path data in custom field.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2737
    • View Profile
Re: Allmovie Script
« Reply #37 on: February 04, 2011, 10:59:54 pm »
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2737
    • View Profile
Re: Allmovie Script
« Reply #38 on: February 05, 2011, 02:33:56 pm »
I have a question:

Would it be possible (if at all possible), how to make the code for Similar Works and Other Related Works for example at this site: http://www.allmovie.com/work/the-matrix-177524

Maybe even both codes in a custom field, for example in the field Awards.

Thanks for the reply and effort in advance.

Partly I found the code for the Similar Works and Other Related Works but fails to find a solution so please help.

Here are examples of what the partial results, I came.

Example 1.) :

Code:
Code: [Select]
//Features (Similar Works)
 curPos := PosFrom('<td colspan="2" class="large-list-title" style="padding-top: 13px; padding-bottom: 1px;">', HTML, EndPos);
 TmpStr := TextBetween(HTML, '<td colspan="2" class="large-list-title" style="padding-top: 13px; padding-bottom: 1px;">', '>Similar Works</td>', False, curPos);
 TmpStr1 := StringReplace(TmpStr, '» <a href=', '', True, True, False);
 If TmpStr1 <> '' then
 AddCustomFieldValueByName('Similar Works', TmpStr1);


//Features (Other Related Works)
 curPos := PosFrom('<td colspan="2" class="large-list-title" style="padding-top: 13px; padding-bottom: 1px;">', HTML, EndPos);
 TmpStr := TextBetween(HTML, '<td colspan="2" class="large-list-title" style="padding-top: 13px; padding-bottom: 1px;">', '>Other Related Works</td>', False, curPos);
 TmpStr1 := StringReplace(TmpStr, '» <a href=', '', True, True, False);
 If TmpStr1 <> '' then
 AddCustomFieldValueByName('Other Related Works', TmpStr1);


Result:
Quote
Links to other sites                                                                                                                                                                                                         The dedication to my favorite movie!                                                                                                                                                                                                         The Matrix Reloaded The Album                                                                                                                                                                                                         The Matrix Community                                                                                                                                                                                                         The official website                                                                                                                                                                                                                                                                                                                                                      <td colspan="2" class="large-list-title" style="padding-top: 13px; padding-bottom: 1px;"
or
Quote
Links to other sites                                                                                                                                                                                                         The dedication to my favorite movie!                                                                                                                                                                                                         The Matrix Reloaded The Album                                                                                                                                                                                                         The Matrix Community                                                                                                                                                                                                         The official website                                                                                                                                                                                                                                                                                                                                                      Similar Works                                                                                                                                                                                                                                                      Blade Runner                                                                                         (1982, Ridley Scott)                                                                                                                                                                                                                                                                                                                                          Total Recall                                                                                         (1990, Paul Verhoeven)                                                                                                                                                                                                                                                                                                                                          Logan's Run                                                                                         (1976, Michael Anderson)                                                                                                                                                                                                                                                                                                                                          Johnny Mnemonic                                                                                         (1995, Robert Longo)                                                                                                                                                                                                                                                                                                                                          Dark City                                                                                         (1998, Alex Proyas)                                                                                                                                                                                                                                                                                                                                          12:01                                                                                         (1993, Jack Sholder)                                                                                                                                                                                                                                                                                                                                          Demon Seed                                                                                         (1977, Donald Cammell)                                                                                                                                                                                                                                                                                                                                          Metropolis                                                                                         (1927, Fritz Lang)                                                                                                                                                                                                                                                                                                                                          The Aries Computer                                                                                                                                                                                                                                                                                                                                            The Fifth Element                                                                                         (1997, Luc Besson)                                                                                                                                                                                                                                                                                                                                                                                                                                          <td colspan="2" class="large-list-title" style="padding-top: 13px; padding-bottom: 1px;"[

On this page http://www.allmovie.com/work/the-matrix-177524 so, where is just Similar Works has a score of zero downloads,but where, in addition Similar Works and Other Related Works is the result of only the transfer of Similar Works data in folder Other Related Works.

Example 2.) :

Code:
Code: [Select]
//Features (Similar Works)
  curPos := PosFrom('<td colspan="2" class="large-list-title" style="padding-top: 13px; padding-bottom: 1px;">Similar Works</td>',HTML, EndPos);
  AddCustomFieldValueByName('Similar Works', TextBetween(HTML,'<td colspan="2" class="large-list-title" style="padding-top: 13px; padding-bottom: 1px;">', '</td>', True, curPos));


//Features (Other Related Works)
  curPos := PosFrom('<td colspan="2" class="large-list-title" style="padding-top: 13px; padding-bottom: 1px;">Other Related Works</td>',HTML, EndPos);
  AddCustomFieldValueByName('Other Related Works', TextBetween(HTML,'<td colspan="2" class="large-list-title" style="padding-top: 13px; padding-bottom: 1px;">', '</td>', True, curPos));

end;


Result:
Quote
Similar Works
or
Quote
Other Related Works

Example 3.) :

Code:
Code: [Select]
//Features (Similar Works)
 curPos := PosFrom('<td colspan="2" class="large-list-title" style="padding-top: 13px; padding-bottom: 1px;">Similar Works</td>', HTML, EndPos);
 TmpStr := TextBetween(HTML, '<td>', '</td>', False, curPos);
 TmpStr1 := StringReplace(TmpStr, '» <a href=', '', True, True, False);
 If TmpStr1 <> '' then
 AddCustomFieldValueByName('Similar Works', TmpStr1);


//Features (Other Related Works)
 curPos := PosFrom('<td colspan="2" class="large-list-title" style="padding-top: 13px; padding-bottom: 1px;">Other Related Works</td>',HTML, EndPos);
 TmpStr := TextBetween(HTML, '<td align="right" width="150">', '<td>', False, curPos);
 TmpStr1 := TextBetween(HTML, '<td>', '</td>', False, curPos);
 TmpStr1 := StringReplace(TmpStr, ' <td align=', '', True, True, False);
 TmpStr2 := StringReplace(TmpStr1, '<td>', '', True, True, False);
 TmpStr2 := StringReplace(TmpStr1, '» <a href=', '', True, True, False);
 If TmpStr2 <> '' then
 AddCustomFieldValueByName('Other Related Works', TmpStr2);

Result:
Quote
Blade Runner                                                                                         (1982, Ridley Scott)
or
Quote
Is followed by:

Here are transferred only the first type of data.


[attachment deleted by admin]
« Last Edit: February 06, 2011, 10:32:44 am by Ivek23 »
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2737
    • View Profile
Re: Allmovie Script
« Reply #39 on: February 05, 2011, 02:41:35 pm »
Picture Part 2

[attachment deleted by admin]
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD