English > Scripts and Templates

Filmweb.pl

<< < (3/6) > >>

Ivek23:
Thank you for this new script.


--- Quote ---
--- Code: --- //orating
i := Pos('<span class="average">', HTML);
if i>0 then
begin
i := PosFrom('>', HTML, i);
j := PosFrom('<', HTML, i);
lStr := Copy(HTML, i+1, j-i-1);
lStr := StringReplace(lStr, ',', '.', true, true, false);
Log('Rating: '+lStr);
AddFieldValueXML('orating', lStr);
AddFieldValueXML('orname', 'Filmweb.pl');
AddCustomFieldValueByName(cCF_Rating, lStr);
end;
--- End code ---

As you see, to custom fields you must use AddCustomFieldValueByName(fieldName, value) where fieldName is matched to field name in "Tools -> Preferences -> Movies -> Custom fields".
--- End quote ---

I know for this AddCustomFieldValueByName but I did not know how to do this (cCF_Rating, lStr).

I removed this filmweb -no custom fields script and this quote and text is no longer valid quote and text.

[

--- Quote ---Rating is also added as custom field but maybe its useless if someone will use my script as the main script to gather movies info.
--- End quote ---

If you allow I upload (I have already filmweb -no custom fields) the previous version of the script(luckily I saved it) without the custom fields for those users which might be using your script
--- Quote ---as the main script to gather movies info
--- End quote ---

under this post, but if you do not allow to publish, I will remove it.You can add it to your upload.
Thanks for the reply.]                                                                                                                                                

Ivek23:
Explanation for removal of the previous post:

This script also works the same as the previous script, so I removed the previous script.
This script works, however, also for all those that it can be used
--- Quote ---maybe its useless if someone will use my script as the main script to gather movies info.
--- End quote ---


--- Quote ---As you see, to custom fields you must use AddCustomFieldValueByName(fieldName, value) where fieldName is matched to field name in "Tools -> Preferences -> Movies -> Custom fields".
--- End quote ---
Rating does not work only it is spelled correctly custom field(like here
--- Code: ---//CUSTOM FIELDS
cCF_Votes = 'Filmweb.pl votes'; //type: number
cCF_Rating = 'Filmweb.pl rating'; //type: rating

--- End code ---
) for Rating custom field (tested, works for me).

sinus:
Aaaaaaaaaaaaa :) now i understand. Next time try to paste error message from log.

Ivek23:
I must admit that is a great movie data base (basic to know). In my case I have in PVD database currently includes around 560 movies from this we can not find any information for about 60 movies, a very commendable but also that we find a screenshot of about 300 movies.

I am interested in the screenshot is something about the size of thumbnails (the size is now 90x90). For PVD database, this is better because it take up less space.
The possibility of such thumbnail-size 150x150 or the current size of the frame such that it can not be changed. I ask this in relation to my impaired vision, the easier this screenshot thumbnails to see clearly.
Thanks for the clarification.

sinus:

--- Quote from: Ivek23 on January 14, 2011, 12:22:55 pm ---I must admit that is a great movie data base (basic to know). In my case I have in PVD database currently includes around 560 movies from this we can not find any information for about 60 movies, a very commendable but also that we find a screenshot of about 300 movies.
--- End quote ---

In fact, with PVD and my script it can be useful also for non-polish users. :D


--- Quote from: Ivek23 on January 14, 2011, 12:22:55 pm ---I am interested in the screenshot is something about the size of thumbnails (the size is now 90x90). For PVD database, this is better because it take up less space.
The possibility of such thumbnail-size 150x150 or the current size of the frame such that it can not be changed. I ask this in relation to my impaired vision, the easier this screenshot thumbnails to see clearly.
Thanks for the clarification.

--- End quote ---

Check new version. I added option (default enabled) to get large (in original size) screenshots. And, of course, I get for now only a few screenshots which are available on main movie page.

Full size screenshot you can see after double-click on thumbnail.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version