Posted by: Ivek23
« on: June 23, 2024, 08:42:46 am »Thanks Ivek. I just found out so, and I knew I could expect such a message from you here, understandably. Thanks for your work on this script so far, it was great while it lasted!
Welcome.
Thanks Ivek. I just found out so, and I knew I could expect such a message from you here, understandably. Thanks for your work on this script so far, it was great while it lasted!
Announcement:
AllMovie.com[EN][HTTPS] script don't work anymore.
Cause:
The massive changes in the source code of movies web pages.
All AllMovie.com_new scripts also don't work anymore.
Some items can no longer be found because they have been removed. The new look of the AllMovie.com website is also, if you ask me, generally desperate and unlikable.
The AllMovie.com[EN][HTTPS] script will also no longer be updated due to massive changes to the AllMovie.com website source code and certain changes can no longer be added to the script.
Here is the url link to the new AllMovie.com HTTPS script beta for PVD MOD versions.
http://www.videodb.info/forum_en/index.php/topic,4109.msg21882.html#msg21882
Important news:
AllMovie.com_new script don't work anymore and AllMovie.com is the next Web site that is passed to a secure https:// connection.
AllMovie.com works with AllMovie.com_new_HTTPS script version 1.1.2.6 or AllMovie.com_new_HTTPS script version 1.1.2.5 again.
For more information, read this topic Proxomitron - next https solution for PVD in the Development section and Allmovie.com https topic in the
Support section
For all guests:
You can find a link to download the script in AllMovie.com_new_HTTPS Movie Links topic.
Ivek,
Great tip and work as usual! Thank you so much for being there for us!
Wish you all the best.
Note: This is to relate to this forum topic, if someone is interested in with it.
Hello Ivek23,
Is there a way NOT to import year as a part of Title, just Title?
Thank you in advance.
Why?
That's already in the script is done so that the Title-free year in the normal field as well as in the "Title" custom field.Code: [Select]//~mfTitle~ or ~Title~
curPos := Pos('<title>', HTML) + Length('<title>');
if Pos(') - ', HTML) > 0 then
endPos := PosFrom(') - ', HTML, curPos)-6
else
endPos := PosFrom(' - | ', HTML, curPos);
TmpStr1 := Copy(HTML, curPos, endPos - curPos);
AddFieldValue(mfTitle, TmpStr1);
AddFieldValue(mfOrigTitle, TmpStr1);
Title := Copy(HTML, curPos, endPos - curPos);
Title1 := Copy(HTML, curPos, endPos - curPos);
if Pos(') - ', HTML) > 0 then
endPos := PosFrom(') - ', HTML, curPos)+1
else
endPos := PosFrom(' - | ', HTML, curPos);
TmpStr1 := Copy(HTML, curPos, endPos - curPos);
AddCustomFieldValueByName('Title', TmpStr1);
The year has also done the same way as Title.Code: [Select]// ~mfYear~ or ~Year~
curPos := Pos('<span class="release-year">', HTML) + Length('<span class="release-year">');
if Pos('</span> </h2>', HTML) > 0 then
endPos := PosFrom('</span> </h2>', HTML, curPos);
TmpStr2 := Copy(HTML, curPos, endPos - curPos);
if TmpStr2 = '0' then
TmpStr2 := '';
TmpStr2 := StringReplace(TmpStr2, '(', '', True, True, True);
TmpStr2 := StringReplace(TmpStr2, ')', '', True, True, True);
AddFieldValue(mfYear, TmpStr2);
AddCustomFieldValueByName('Year', TmpStr2);
if TmpStr2 = '' then
TmpStr2 := 'year unknown';
LogMessage(' Parsing: ' + TmpStr1 + '(' + TmpStr2 + ')');
If this is not what we would like, then please give an example to make it easier to explain and help.
Try like this:
AddCustomFieldValueByName('Title', TmpStr1 + '(' + TmpStr2 + ')');
This is how it should be in the script:Code: [Select]//~mfTitle~ or ~Title~
curPos := Pos('<title>', HTML) + Length('<title>');
if Pos(') - ', HTML) > 0 then
endPos := PosFrom(') - ', HTML, curPos)-6
else
endPos := PosFrom(' - | ', HTML, curPos);
TmpStr1 := Copy(HTML, curPos, endPos - curPos);
AddFieldValue(mfTitle, TmpStr1);
AddFieldValue(mfOrigTitle, TmpStr1);
Title := Copy(HTML, curPos, endPos - curPos);
Title1 := Copy(HTML, curPos, endPos - curPos);
if Pos(') - ', HTML) > 0 then
endPos := PosFrom(') - ', HTML, curPos)+1
else
endPos := PosFrom(' - | ', HTML, curPos);
TmpStr1 := Copy(HTML, curPos, endPos - curPos);
//AddCustomFieldValueByName('Title', TmpStr1);
.
.
.
// ~mfYear~ or ~Year~
curPos := Pos('<span class="release-year">', HTML) + Length('<span class="release-year">');
if Pos('</span> </h2>', HTML) > 0 then
endPos := PosFrom('</span> </h2>', HTML, curPos);
TmpStr2 := Copy(HTML, curPos, endPos - curPos);
if TmpStr2 = '0' then
TmpStr2 := '';
TmpStr2 := StringReplace(TmpStr2, '(', '', True, True, True);
TmpStr2 := StringReplace(TmpStr2, ')', '', True, True, True);
AddFieldValue(mfYear, TmpStr2);
// AddCustomFieldValueByName('Year', TmpStr2);
if TmpStr2 = '' then
TmpStr2 := 'year unknown';
LogMessage(' Parsing: ' + TmpStr1 + '(' + TmpStr2 + ')');
AddCustomFieldValueByName('Title', TmpStr1 + '(' + TmpStr2 + ')');
I did not tested, but it should work.
//~mfTitle~ or ~Title~
curPos := Pos('<title>', HTML) + Length('<title>');
if Pos(') - ', HTML) > 0 then
endPos := PosFrom(') - ', HTML, curPos)-6
else
endPos := PosFrom(' - | ', HTML, curPos);
TmpStr1 := Copy(HTML, curPos, endPos - curPos);
AddFieldValue(mfTitle, TmpStr1);
AddFieldValue(mfOrigTitle, TmpStr1);
Title := Copy(HTML, curPos, endPos - curPos);
Title1 := Copy(HTML, curPos, endPos - curPos);
// if Pos(') - ', HTML) > 0 then
// endPos := PosFrom(') - ', HTML, curPos)+1
// else
// endPos := PosFrom(' - | ', HTML, curPos);
// TmpStr1 := Copy(HTML, curPos, endPos - curPos);
AddCustomFieldValueByName('Title', TmpStr1);
Try like this:
AddCustomFieldValueByName('Title', TmpStr1 + '(' + TmpStr2 + ')');
This is how it should be in the script:Code: [Select]//~mfTitle~ or ~Title~
curPos := Pos('<title>', HTML) + Length('<title>');
if Pos(') - ', HTML) > 0 then
endPos := PosFrom(') - ', HTML, curPos)-6
else
endPos := PosFrom(' - | ', HTML, curPos);
TmpStr1 := Copy(HTML, curPos, endPos - curPos);
AddFieldValue(mfTitle, TmpStr1);
AddFieldValue(mfOrigTitle, TmpStr1);
Title := Copy(HTML, curPos, endPos - curPos);
Title1 := Copy(HTML, curPos, endPos - curPos);
// if Pos(') - ', HTML) > 0 then
// endPos := PosFrom(') - ', HTML, curPos)+1
// else
// endPos := PosFrom(' - | ', HTML, curPos);
// TmpStr1 := Copy(HTML, curPos, endPos - curPos);
AddCustomFieldValueByName('Title', TmpStr1);
.
.
.
// ~mfYear~ or ~Year~
curPos := Pos('<span class="release-year">', HTML) + Length('<span class="release-year">');
if Pos('</span> </h2>', HTML) > 0 then
endPos := PosFrom('</span> </h2>', HTML, curPos);
TmpStr2 := Copy(HTML, curPos, endPos - curPos);
if TmpStr2 = '0' then
TmpStr2 := '';
TmpStr2 := StringReplace(TmpStr2, '(', '', True, True, True);
TmpStr2 := StringReplace(TmpStr2, ')', '', True, True, True);
AddFieldValue(mfYear, TmpStr2);
// AddCustomFieldValueByName('Year', TmpStr2);
if TmpStr2 = '' then
TmpStr2 := 'year unknown';
LogMessage(' Parsing: ' + TmpStr1 + '(' + TmpStr2 + ')');
That's already in the script is done so that the Title-free year in the normal field as well as in the "Title" custom field.
//~mfTitle~ or ~Title~
curPos := Pos('<title>', HTML) + Length('<title>');
if Pos(') - ', HTML) > 0 then
endPos := PosFrom(') - ', HTML, curPos)-6
else
endPos := PosFrom(' - | ', HTML, curPos);
TmpStr1 := Copy(HTML, curPos, endPos - curPos);
AddFieldValue(mfTitle, TmpStr1);
AddFieldValue(mfOrigTitle, TmpStr1);
Title := Copy(HTML, curPos, endPos - curPos);
Title1 := Copy(HTML, curPos, endPos - curPos);
if Pos(') - ', HTML) > 0 then
endPos := PosFrom(') - ', HTML, curPos)+1
else
endPos := PosFrom(' - | ', HTML, curPos);
TmpStr1 := Copy(HTML, curPos, endPos - curPos);
//AddCustomFieldValueByName('Title', TmpStr1);
.
.
.
// ~mfYear~ or ~Year~
curPos := Pos('<span class="release-year">', HTML) + Length('<span class="release-year">');
if Pos('</span> </h2>', HTML) > 0 then
endPos := PosFrom('</span> </h2>', HTML, curPos);
TmpStr2 := Copy(HTML, curPos, endPos - curPos);
if TmpStr2 = '0' then
TmpStr2 := '';
TmpStr2 := StringReplace(TmpStr2, '(', '', True, True, True);
TmpStr2 := StringReplace(TmpStr2, ')', '', True, True, True);
AddFieldValue(mfYear, TmpStr2);
// AddCustomFieldValueByName('Year', TmpStr2);
if TmpStr2 = '' then
TmpStr2 := 'year unknown';
LogMessage(' Parsing: ' + TmpStr1 + '(' + TmpStr2 + ')');
AddCustomFieldValueByName('Title', TmpStr1 + '(' + TmpStr2 + ')');
Hello Ivek23,
Is there a way NOT to import year as a part of Title, just Title?
Thank you in advance.
//~mfTitle~ or ~Title~
curPos := Pos('<title>', HTML) + Length('<title>');
if Pos(') - ', HTML) > 0 then
endPos := PosFrom(') - ', HTML, curPos)-6
else
endPos := PosFrom(' - | ', HTML, curPos);
TmpStr1 := Copy(HTML, curPos, endPos - curPos);
AddFieldValue(mfTitle, TmpStr1);
AddFieldValue(mfOrigTitle, TmpStr1);
Title := Copy(HTML, curPos, endPos - curPos);
Title1 := Copy(HTML, curPos, endPos - curPos);
if Pos(') - ', HTML) > 0 then
endPos := PosFrom(') - ', HTML, curPos)+1
else
endPos := PosFrom(' - | ', HTML, curPos);
TmpStr1 := Copy(HTML, curPos, endPos - curPos);
AddCustomFieldValueByName('Title', TmpStr1);
// ~mfYear~ or ~Year~
curPos := Pos('<span class="release-year">', HTML) + Length('<span class="release-year">');
if Pos('</span> </h2>', HTML) > 0 then
endPos := PosFrom('</span> </h2>', HTML, curPos);
TmpStr2 := Copy(HTML, curPos, endPos - curPos);
if TmpStr2 = '0' then
TmpStr2 := '';
TmpStr2 := StringReplace(TmpStr2, '(', '', True, True, True);
TmpStr2 := StringReplace(TmpStr2, ')', '', True, True, True);
AddFieldValue(mfYear, TmpStr2);
AddCustomFieldValueByName('Year', TmpStr2);
if TmpStr2 = '' then
TmpStr2 := 'year unknown';
LogMessage(' Parsing: ' + TmpStr1 + '(' + TmpStr2 + ')');
Works like a charm. Many thanks.
AllMovie data: PVD field: FN: Type/Comments:
-------------- --------- -- -------------
Actors ~ctActors~ 1, 3 credits (if GET_ACTORS true)
Alternate title ~Alternate title~ memo
AllMovie rating ~mfRating~ 1, 3 'Additional rating' named 'AllMovie.new' (if GET_RATING true)
OR ~AllMovie rating~ 2 rating
Amazon ~Amazon~ memo (link to Search on Amazon)
AMG ID ~AMG ID~ short text
Awards ~AllMovie Awards~ memo (link to AllMovie Awards tab)
Cast ~Cast~ memo
Crew ~Crew~ memo
Category ~Category.AllMovie~ multiselect list
—not to be confused with ~mfCategory~ (used for 'Themes')
Characteristics
~Moods~ 2 multiselect list (from 'Characteristics')
AND ~Mood links~ memo (hyperlinks to AllMovie mood pages
—if available in web archive
~Keywords~ 2 memo (from 'Characteristics')
~Attributes~ 2 multiselect list (from 'Characteristics')
Themes from 'Characteristics'
~mfCategory~ 1 standard multiselect list (if GET_THEMES true) (from 'Characteristics')
OR ~Themes~ 2 multiselect list (from 'Characteristics')
AND ~Themes links~ 2 memo (hyperlinks to AllMovie themes pages)
Country ~mfCountry~ 1 standard multiselect list
OR ~Country~ 2 multiselect list
Cover-art ~Poster~ 1, 3 standard (if GET_POSTER true)
Directed by ~ctDirectors~ 1 standard multiselect list
Flags ~Flags~ multiselect list
Genres ~mfGenre~ 1 standard multiselect list
OR ~Genres~ 2 multiselect list
AND ~Genre links~ memo (links to AllMovie Genre page)
MPAA rating ~MPAA rating~ short text
Produced by ~mfStudio~ 1 standard short text
OR ~Produced by~ 2 multiselect list
Related ~AllMovie Related~ memo (link to AllMovie Related tab)
Review ~Review~ memo
Release date ~Released~ short text (multiple dates)
//OR Released ~Released~ short //text (more common single date)
Releases ~mfFeatures~ 1 standard memo (link to AllMovie Releases tab)
Released by ~Released by~ short text
Run time ~mfDuration~ 1, 3 standard number (if GET_DURATION true)
OR ~Run time~ 2 number (minutes)
Synopsis ~mfDescription~ standard memo
—use PVD preference to save in ANY available memo field
Sub-Genres ~Sub-Genres~ multiselect list
OR ~Sub-Genre links~ memo (links to AllMovie page)
Title ~mfTitle~ 1 standard short text
OR ~Title~ 2 short text
Year ~mfYear~ 1 standard number (from AllMovie 'Title (Year)' heading)
OR ~Year~ 2 short string
Updated ~Updated~ long text
URL ~mfURL~ 1 standard memo
OR ~URL~ 2 memo
AllMovie data are once again available:
Keywords Keywords
AllMovie data no longer again available:
Released Released
//OR Released ~Released~ short //text (more common single date)
AllMovie data no longer available:
Color type Color type
From book Book
Set in Set in
Tones mfTags
Yes, I'd say the the transmission is faster at import from AllMovie. Other than that the contents remain the same, which is great.
Thanks again.