English > Scripts and Templates
Allmovie Script
Ivek23:
On the web page http://www.allmovie.com/dvd/little-house-on-the-prairie-special-edition-movie-box-5-discs-102549 I am for this one This Set Contains found this code:
//This Set Contains
AddCustomFieldValueByName('This Set Contains', HTMLValues(HTML,
'<td class="large-list-title" style="padding-top: 13px;padding-bottom: 1px;">This Set Contains</td>', '</table>',
'<li>', '</li>',
', ', EndPos));
and we transferred
Little House on the Prairie: Look Back to Yesterday (1983), Little House on the Prairie: The Last Farewell (1984), Little House on the Prairie: Bless All the Dear Children (1984)
such information from this site which is fine. I do have a question, how would the code be changed so that these data information such as this one Little House on the Prairie: Look Back to Yesterday (1983) become a link to the title but not such as it is now and is read-only.
[attachment deleted by admin]
Ivek23:
--- Quote from: Ivek23 on February 16, 2011, 07:24:39 pm ---On the web page http://www.allmovie.com/dvd/little-house-on-the-prairie-special-edition-movie-box-5-discs-102549 I am for this one This Set Contains found this code:
//This Set Contains
AddCustomFieldValueByName('This Set Contains', HTMLValues(HTML,
'<td class="large-list-title" style="padding-top: 13px;padding-bottom: 1px;">This Set Contains</td>', '</table>',
'<li>', '</li>',
', ', EndPos));
and we transferred
Little House on the Prairie: Look Back to Yesterday (1983), Little House on the Prairie: The Last Farewell (1984), Little House on the Prairie: Bless All the Dear Children (1984)
such information from this site which is fine. I do have a question, how would the code be changed so that these data information such as this one Little House on the Prairie: Look Back to Yesterday (1983) become a link to the title but not such as it is now and is read-only.
--- End quote ---
I thought this how to insert a url address that would link the same as the url for the movie search.
Ivek23:
I'll just add here this notice.
On AllMovie web pages have since 19.2.2011 evening big problems with links to their database. Approximately 90% of these links to movie information does not work and this appears the following notice:
--- Quote ---
A Database Error Has Occurred.
We're sorry, but we appear to be having some problems with our database.
Please check back later. We apologize for the inconvenience. Thank you for your patience.
--- End quote ---
However, if the connection happens then work on certain links might also operate mostly not. Usually the problem is already at the opening Cast tab.
In writing this post I trying to open about 10 links to movie information but she has just opened a link in this movie title
http://www.allmovie.com/work/not-another-teen-movie-255993
I wrote this because the problems might be just with me or have the same problems for other users.
Ivek23:
--- Quote from: Ivek23 on February 22, 2011, 11:42:02 am ---
I'll just add here this notice.
On AllMovie web pages have since 19.2.2011 evening big problems with links to their database. Approximately 90% of these links to movie information does not work and this appears the following notice:
--- Quote ---
A Database Error Has Occurred.
We're sorry, but we appear to be having some problems with our database.
Please check back later. We apologize for the inconvenience. Thank you for your patience.
--- End quote ---
However, if the connection happens then work on certain links might also operate mostly not. Usually the problem is already at the opening Cast tab.
In writing this post I trying to open about 10 links to movie information but she has just opened a link in this movie title
http://www.allmovie.com/work/not-another-teen-movie-255993
I wrote this because the problems might be just with me or have the same problems for other users.
--- End quote ---
Meanwhile, regarding the matter apparently already edited so the above notice in previous post no longer applies.
BTW:
Perhaps such a notice will appear again in the future and will note this may have also occurred.
Ivek23:
As already mentioned in this post http://www.videodb.info/forum_en/index.php/topic,1877.msg12116#msg12116 I found this code
--- Code: ---procedure ParseChapters(HTML : String);
var
curPos, EndPos : Integer;
TmpStr, TmpStr1, TmpStr2, TmpStr3, TmpStr4, TmpStr5 : String;
begin
curPos := Pos('<div id="results-table">', HTML);
if curPos < 1 then
Exit;
//Chapters
curPos := PosFrom('<td class="large-list-title" style="padding-top: 13px;padding-bottom: 1px;">''</td>', HTML, curPos);
TmpStr := TextBetween(HTML, '<td class="large-list-title" style="padding-top: 13px;padding-bottom: 1px;">', '</td>', True, curPos);
TmpStr1 := StringReplace(TmpStr, '<td class="large-list-title" style="padding-top: 13px;padding-bottom: 1px;">', '', True, True, False);
TmpStr2 := TextBetween(HTML, '<td colspan="2">', '</table>', True, curPos);
TmpStr3 := StringReplace(TmpStr2, '<td colspan="2">', '—', True, True, False);
TmpStr4 := StringReplace(TmpStr3, ' </td> ', '—', True, True, False);
TmpStr5 := StringReplace(TmpStr4, '<td colspan="2"></td></table>', '—', True, True, False);
if (TmpStr1 = '') AND (TmpStr5 <> '') then
AddCustomFieldValueByName('Chapters', + TmpStr5);
if (TmpStr1 <> '') AND (TmpStr5 <> '')then
AddCustomFieldValueByName('Chapters', + TmpStr1 + ''
+ ' '
+ ' ' + ' '
+ ' ' + ' *' + TmpStr5 + ' *');
end;
--- End code ---
which transfers only the first part describes (for example, to be called Disc #1 line), for instance, at this web page http://www.allmovie.com/dvd/little-house-on-the-prairie-special-edition-movie-box-5-discs-102549/chapters however, several part described (Disc # 1 Disc # 2 Disc # 3 ....) which is above described code is not transferred.
Interested in what and how to modify the code to transfer all the parts which are there described.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version