Wenn ich einen Rescan von bereits hinzugefügten Filmen mache, werden lediglich der Score und die Popularity Werte aktualisiert. Ich habe dann von Zeit zu Zeit einfach alle Filme markiert und einen Rescan gemacht. So hatte ich immer die aktuellsten IMDB Bewertungen.
Das ist eine Funktion von MovingPictures, und nicht vom Script selbst. Ein Scraper Script besteht aus drei Teilen, einem für die Filmsuche, einem für die Filminfos und einem optionalen dritten für das Filmposter. Beim Refreshen wird nur der Teil für die Infos neu ausgeführt. Man kann nicht einstellen, welche Infos dabei aktualisiert werden sollen und welche nicht. Aufgrund des Umfangs von FilmInfo+ werden hierbei so gut wie alle Informationen neu geladen. Daran kann ich nichts ändern.
Moin.
Gibt's eigentlich schon Pläne dies super Script in MP2 zu "integrieren"?
Nein. Ich bezweifle auch, dass fforde und die anderen Entwickler das jemals auch nur in Erwägung ziehen werdem, da sie dann dafür zuständig wären, den Scraper Up to Date zu halten. Die guten Jungs haben ohnehin schon genug zu tun
What they might be after, is what I did with IMDb+ as well, provide a scraper-script option that only allows certain fields to be updated (votes, popularity, certification and empty fields). It has a small speed benefit as well, but the main reason is to not loose any customisation, such as manual changes to title/etc.
There is more then likely not going to be a Moving-Pictures for MP2 (hardly a need for it, since majority of function is added to MyVideos). I am however going to be looking at how MyVideos on MP1.5/MP2 handles imports and see if I can adjust IMDb+ to be compatible. Will let you know, so you can use the groundwork for FilmInfo+. My new HTPC is finally done (Win 8.1, MePo 1.5, etc), and is currently running finaly disParity update, so I will be able to have a closer look at the inner workings.
If I have to rewrite the IMDb+ plugin to make it work, I will look at allowing FilmInfo+ to be part of it, so you will have the power of plugin with auto-scraper updates at your disposal as well. I figured you would fork the IMDb+ plugin by now, but C# is not for everbody and without the help I got for mine it would have never happened for me either.
This is more Christmas holiday or early next year type of timeline though, it has been a very busy year for me, so need to catch up on some projects around the house and family time as well.
Nein, die aktuelle Version!Die HTML Tags im Writersfeld tauchen bei mir nicht auf. Ich konnte das bislang nicht reproduzieren. Verwendet ihr eventuell eine ältere Version des Scrapers?
What do you mean by "provide a scraper-script option that only allows certain fields to be updated"? How did you do that?
<!-- Verify conditional update. There is no AND or OR support, so this will have to do -->
<if test="${movie.directors}="><set name="update_directors" value="true" /><set name="new_import" value="true" /></if>
<if test="${global_options_refresh_all_fields}=true"><set name="update_directors" value="true" /></if>
<if test="${update_directors}=true">..... (do the actual update of "Directors") ....</if>
What do you mean by "provide a scraper-script option that only allows certain fields to be updated"? How did you do that?
If you look at IMDb+ source, you will see I have the scraper-script option: "global_options_refresh_all_fields"
This controls if all fields get updated, or just some. It is a simple a boolean flag (true/false), and then inside the rest of the script I check that value with simple <if test="${global_options_refresh_all_fields}=true"> check to decide if I allow that block of code to be executed. Because I also need to check if the existing value is empty (for a fresh import or when that info gets updated later) and there is no ADN/OR support for scraper-scripts, I came up with the following solution:
Code:<!-- Verify conditional update. There is no AND or OR support, so this will have to do --> <if test="${movie.directors}="><set name="update_directors" value="true" /><set name="new_import" value="true" /></if> <if test="${global_options_refresh_all_fields}=true"><set name="update_directors" value="true" /></if> <if test="${update_directors}=true">..... (do the actual update of "Directors") ....</if>
The "Directors" info does not exactly change much once you initially scraped this info, same with the remaining crew/title/etc. Fields I always want to update, such as certification (movie ratings do change over time), score+votes, etc, I just skip the check and use the old code as-is.
The ${new_import} boolean flag is probably not needed for you, but it was needed to fix a bug for IMDb+.
Keep in mind to document it properly. I made the mistake of making the default value of IMDb+ to not update all the fields (which is what I use myself), but this caused a lot of complaints from users that changed configuration options that should have caused a different title, but then the title field would not update.