Author Topic: AllMovie.com_new movie script  (Read 119639 times)

0 Members and 4 Guests are viewing this topic.

Offline rick.ca

  • Global Moderator
  • *****
  • Posts: 3241
  • "I'm willing to shoot you!"
    • View Profile
Re: AllMovie.com_new movie script
« Reply #20 on: December 17, 2012, 02:32:34 am »
Both this and the updated AllRovi script work great. Thanks very much for the work you do on these and other scripts, Ivek.

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2713
    • View Profile
Re: AllMovie.com_new movie script
« Reply #21 on: December 17, 2012, 07:14:36 am »
Both this and the updated AllRovi script work great. Thanks very much for the work you do on these and other scripts, Ivek.

Thank you, Rick.
I will do more tests to see if it will be something in need of repair,  then also available via the auto-update system.
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: 2713
    • View Profile
Re: AllMovie.com_new movie script
« Reply #22 on: January 13, 2013, 02:52:06 pm »
Here is the final AllMovie.com_new script.

Script  AllMovie.com_final  is attached.

[attachment deleted by admin]
« Last Edit: January 13, 2013, 03:10:58 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: 2713
    • View Profile
Re: AllMovie.com_new movie script
« Reply #23 on: January 13, 2013, 02:53:02 pm »
Quote
Quote
This script has now been released and is available via the program's auto-update system. Run Help > Check for updates and choose AllMovie.com_new from the list.

Quote
Post any comments or questions to AllMovie.com_new Script is can 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: 2713
    • View Profile
Re: AllMovie.com_new movie script
« Reply #24 on: January 13, 2013, 03:39:54 pm »
Anyone who wants to change the current date and time updates, here is a solution, example is for AllMovie.com_new movie script:

I did not like the last part of the code for 
Code: [Select]
//Date ~Updated~ (choose simple or verbose version)

//AddCustomFieldValueByName('Updated', DateToStr(CurrentDateTime)); // Simple
//AddCustomFieldValueByName('Updated', DateToStr(CurrentDateTime) + ' at ' + TimeToStr(CurrentDateTime)); // Verbose
AddCustomFieldValueByName('Updated', DateToStr(CurrentDateTime) + ' at ' + TimeToStr(CurrentDateTime) + ' • ' + SCRIPT_NAME + ' ' + SCRIPT_VERSION); // Annoying


//Get ~mfURL~ or ~URL~

Date was previously seen such:
Code: [Select]
2013-01-13 at 14:17:50
So I switched over to that part of the code
Code: [Select]
procedure ParseMovie(MovieURL : String; HTML : String);
var
curPos, endPos, topPos, L, H, R : Integer;
Date, Name, URL, TmpStr, TmpStr1, TmpStr2, TmpStr3, TmpStr4, TmpStr5 : String;
DateParts: TWideArray;
begin

//Date ~Updated~ (choose simple or verbose version)
Date := DateToStr(CurrentDateTime);
if Date <> '' then
  begin
    ExplodeString(Date, DateParts, '-');
Date := DateParts[2] +'.'+ DateParts[1] +'.'+ DateParts[0];
AddCustomFieldValueByName('Updated', Date);
//AddCustomFieldValueByName('Updated', Date + ' at ' + TimeToStr(CurrentDateTime)); // Verbose
AddCustomFieldValueByName('Updated', Date + ' at ' + TimeToStr(CurrentDateTime) + ' • ' + SCRIPT_NAME + ' ' + SCRIPT_VERSION); // Annoying
  end else
    LogMessage('date not found');

//AddCustomFieldValueByName('Updated', DateToStr(CurrentDateTime)); // Simple
//AddCustomFieldValueByName('Updated', DateToStr(CurrentDateTime) + ' at ' + TimeToStr(CurrentDateTime)); // Verbose
//AddCustomFieldValueByName('Updated', DateToStr(CurrentDateTime) + ' at ' + TimeToStr(CurrentDateTime) + ' • ' + SCRIPT_NAME + ' ' + SCRIPT_VERSION); // Annoying


//Get ~mfURL~ or ~URL~

Date now looks like this:
Code: [Select]
13.01.2013 at 14:17:50
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline afrocuban

  • Moderator
  • *****
  • Posts: 476
    • View Profile
Re: AllMovie.com_new movie script
« Reply #25 on: March 04, 2013, 09:18:51 pm »
Is it just me, or AllMovie_New script doesn't work? Cannot import rating, Studio, Synopsis and Reviews fields that I use?

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2713
    • View Profile
Re: AllMovie.com_new movie script
« Reply #26 on: March 05, 2013, 07:46:59 am »
Is it just me, or AllMovie_New script doesn't work? Cannot import rating, Studio, Synopsis and Reviews fields that I use?

PVD v0.9.9.21

All of the above work unless Reviews. Try the attached script, if everything works, then I'll uploaded on Download page.

Your version of PVD is ...

[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


Offline afrocuban

  • Moderator
  • *****
  • Posts: 476
    • View Profile
Re: AllMovie.com_new movie script
« Reply #27 on: March 05, 2013, 11:41:42 pm »
I apologize. I didn't realize there is no editor's rating as well as Studio's name for a movie El infierno at Allmovie.com. It works, actually.

Sorry, once again and thank you for your assistance!

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2713
    • View Profile
Re: AllMovie.com_new movie script
« Reply #28 on: March 06, 2013, 12:41:27 pm »
Quote
Is it just me, or AllMovie_New script doesn't work? Cannot import rating, Studio, Synopsis and Reviews fields that I use?
I apologize. I didn't realize there is no editor's rating as well as Studio's name for a movie El infierno at Allmovie.com. It works, actually.

Sorry, once again and thank you for your assistance!

It's okay, for such matters are otherwise does not need to apologize. It is correct to draw attention to the potential problems in the functioning of the script, so other users will not have any problems with data transfers, because eliminating all the possible problems. That's why we're here (the author of this script, the moderator and other users) to help you solve the problem.

Script will be added to the download page today or at the latest tomorrow.

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: 2713
    • View Profile
Re: AllMovie.com_new movie script
« Reply #29 on: March 06, 2013, 05:06:08 pm »
AllMovie.com_new script
v 0.1.1.1.


I fixed ParseReview:
piece of code
Code: [Select]
procedure ParseReview(HTML : String);
var
curPos, endPos : Integer;
TmpStr, TmpStr1, TmpStr2, TmpStr3, TmpStr4, TmpStr5 : String;
begin
curPos := Pos('<div class="tab-title">', HTML);
if curPos < 1 then
Exit;

//~Review~
I switched to this part of the code
Code: [Select]
procedure ParseReview(HTML : String);
var
curPos, endPos : Integer;
TmpStr, TmpStr1, TmpStr2, TmpStr3, TmpStr4, TmpStr5 : String;
begin
curPos := Pos('<div class="tabset-content main-tab-pane">', HTML);
if curPos < 1 then
Exit;

//~Review~

Now ParseReview works.

Notice:
The new version of the script is added to the Download page.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline afrocuban

  • Moderator
  • *****
  • Posts: 476
    • View Profile
Re: AllMovie.com_new movie script
« Reply #30 on: April 12, 2013, 08:50:38 pm »
AllMovie.com_new script
v 0.1.1.1.


I fixed ParseReviewe

Now ParseReview works.

Notice:
The new version of the script is added to the Download page.


Does this mean reviews can be imported from allmovie.com? If it does mean, I guess custom "Review" field is needed for it?

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2713
    • View Profile
Re: AllMovie.com_new movie script
« Reply #31 on: April 13, 2013, 07:28:34 am »
Does this mean reviews can be imported from allmovie.com?

Yes, it's true, now you can also Reviews information imported from allmovie.com new page.

If it does mean, I guess custom "Review" field is needed for it?

No, this is not at all a mistake, you guessed correctly in this case. Yes, you really need a custom "Review" field on imports Review information.

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


Offline afrocuban

  • Moderator
  • *****
  • Posts: 476
    • View Profile
Re: AllMovie.com_new movie script
« Reply #32 on: April 13, 2013, 06:11:13 pm »
Thanks a lot Ivek.

Pozdrav iz Beograda

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2713
    • View Profile
Re: AllMovie.com_new movie script
« Reply #33 on: April 13, 2013, 06:17:32 pm »
Thanks a lot Ivek.

Pozdrav iz Beograda

Welcome.

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


Offline afrocuban

  • Moderator
  • *****
  • Posts: 476
    • View Profile
Re: AllMovie.com_new movie script
« Reply #34 on: April 16, 2013, 12:45:00 am »
I just tested Review importing and it really works great! But, there is an issue. It looks like script imports only first paragraph of Review tab at Allmovie.com.

Checked with http://www.allmovie.com/movie/the-adjustment-bureau-v509764/review

Any help with this, please?

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2713
    • View Profile
Re: AllMovie.com_new movie script
« Reply #35 on: April 16, 2013, 06:35:14 am »
I just tested Review importing and it really works great! But, there is an issue. It looks like script imports only first paragraph of Review tab at Allmovie.com.

Checked with http://www.allmovie.com/movie/the-adjustment-bureau-v509764/review

Any help with this, please?

I apologize, be patient. It will be a short wait, it requires more testing. At the moment I do not have time, maybe in a few weeks.
Ivek23
Win 10 64bit (32bit)   PVD v0.9.9.21, PVD v1.0.2.7, PVD v1.0.2.7 + MOD


Offline afrocuban

  • Moderator
  • *****
  • Posts: 476
    • View Profile
Re: AllMovie.com_new movie script
« Reply #36 on: April 16, 2013, 11:35:18 am »
Thanks once again for all your contribution and work.

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2713
    • View Profile
Re: AllMovie.com_new movie script
« Reply #37 on: April 16, 2013, 06:18:21 pm »
Thanks once again for all your contribution and work.

Thank you found the error, I did a little cosmetic correction. Try these attached AllMovie.com 0.1.1.2 script version and let us know if the script is working properly now. Is not tested on other movies, except for your movie, which is the link mentioned above.

[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


Offline afrocuban

  • Moderator
  • *****
  • Posts: 476
    • View Profile
Re: AllMovie.com_new movie script
« Reply #38 on: April 17, 2013, 01:35:43 am »
It's just perfect now, Ivek! Great work.

Cheers

Offline Ivek23

  • Global Moderator
  • *****
  • Posts: 2713
    • View Profile
Re: AllMovie.com_new movie script
« Reply #39 on: April 30, 2013, 06:16:07 am »
I changed a little piece of code to Review info. Now I wonder if this also works fine. I wonder also what is now the difference in text in Review custom field between AllMovie.com 0.1.1.2 script version and AllMovie.com 0.1.1.3 script version. In AllMovie.com 0.1.1.2 script version the transferred original Review information where the Review fields on web pages added pictures. In AllMovie.com 0.1.1.3 script version the passed unseen Review information,  which is not visible in Review fields on web pages. They are, however Review information in both cases exactly the same written. I am interested in your opinion because I'm a better version then added to the Download page.

AllMovie.com 0.1.1.3 script version is attached.

[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


 

anything