English > Feature Suggestions
Generating log files after import/update
rick.ca:
--- Quote ---Or, just tel me about how you processed your "Top 250" movie list.
--- End quote ---
That would be easier...
* Identify and bookmark currently ranked movies.
* Use the editor to remove the rankings.
* Update the rankings using Ivek's script.
* Identify those with no rankings and remove their bookmarks (i.e., assume they're no longer on the list).
* Sort the remaining movies by rank and review the sequence...
* For those missing from the sequence, look up the movie on the Top 250 chart.
* If necessary, add such movies to the database and update the rank.This sounds tedious, but if done regularly there won't be many movies missing from the sequence, and most of those are at the end of the list. If the script fails to update a few, you're going to find them anyway. If the script fails to update many, then something's wrong with the script or the internet connection. The existing log may help identify the cause, but no log is going to provide a practical solution for updating the rankings. I've never found the need, but the current rankings are easily backed-up by exporting an Excel or CSV file. If getting the rankings for the first time and your database is missing many of the movies in the list, it would make more sense to parse the list into [Title], [URL] and [Rank] and import that. Doing so will update existing movies with the rank, and add any movies not currently in the database. This, of course, can be an alternate method used on an ongoing basis. Parsing the list takes some time, but the import does effectively replace steps 3 to 7.
--- Quote ---I have to be assured that every PVD entry is properly processed.
--- End quote ---
I don't think you do. You can't be absolutely assured the data at the source is 100% correct, so there's no basis for wishing your database will be. The log is never going to provide field level changes (i.e., "[field] changed from XXX to YYY"). If it did, the information would be too overwhelming to be of much use. It may tell you something is wrong, but nothing more about the cause than you can already deduce from reviewing the results. The database itself is a more useful tool determining whether data is missing or makes sense. The existing log will normally provide clues about systemic problems. And you're probably going to prefer those be fixed rather than use a log to determine what's missing or incorrect.
I'm not even sure what you expect from the log you're imagining. There's very little chance data is going to get into a log and not be updated to the database. If a plugin or script fails to get data, the log is going to tell you there is none. A plugin doesn't know what's in the database. It only can get what it's designed or configured to get from the source. It can't tell you what it didn't find or whether what it did find is something new.
afrocuban:
Wow! Thanks a lot for an answer. It sure did take some time to made it, and I really appreciate it.
I read your post thoroughly, and I see your point. And I agree with your scenario in a lack of better one. And I think you might not thought that there were some "plot holes" in this scenario. The biggest one for sure would be under 4.
But I'll sum it up in a simple sentence: A simple additional messages in a log file: "Movie "Neprijatelj" not found! on xxx.com" and "Movie "Neprijatelj" not found! on xxx.com because of socket error/no internet connection/no such host", would be more of a help and it'd effectively replace steps 2-7 (prior to step 3, replaces step 1).
Meanwhile, as always while having discussion with you, I got an idea. This time it is to "mimic" your scenario. Because my "Bookmark" command is not available for other purposes, I'll create custom field "Mass Update/Import", fill it in with something for all the movies I'm going to update, then to all movies I'll clear some common data for all sites (Title, for example, but I have to test this), I'll update info, then (but for sure not by using any NULL search ;D ) search ones with no "Title" imported and revise them manually. At the end, of course, to clear custom field of data.
Thanks for your time, once again.
afrocuban:
Btw, I found this piece of code in Ivek's script. Don't know if it's in the matter...
--- Code: ---if R > 0 then
LogMessage(' Rating: ' + IntToStr(R) + '/10')
else
LogMessage(' Rating: NR or error');
--- End code ---
Anyway, to relax a bit, I also found this piece of code:
--- Code: ---if R > 0 then
if GET_RATING then
AddFieldValue(mfRating, IntToStr(R));
if R > 0 then
AddCustomFieldValueByName('AllMovie rating', IntToStr(R));
--- End code ---
Speaking of NULLs will this work against 'em? :o
rick.ca:
--- Quote from: afrocuban on April 29, 2013, 02:58:10 pm ---But I'll sum it up in a simple sentence: A simple additional messages in a log file: "Movie "Neprijatelj" not found! on xxx.com" and "Movie "Neprijatelj" not found! on xxx.com because of socket error/no internet connection/no such host", would be more of a help and it'd effectively replace steps 2-7 (prior to step 3, replaces step 1).
--- End quote ---
If what you mean is error messages the program displays (if Silent Mode is off) don't appear in the log, it may be because the plugin (which is creating the log) knows nothing about the error—it simply stops working and has nothing to report. In any case, as I've explained before, the recommended process is to ensure all the movies have valid URLs first. This eliminates search failures from the process. There's nothing the program can do about an Internet or server problem. If those sorts of things are happening, you'll get error messages when not using Silent Mode and/or it will be evident from the log some such problem is occurring. The most common solutions are to wait for the issue to fix itself, or to wait until nostra fixes the plugin.
--- Quote ---Because my "Bookmark" command is not available for other purposes...
--- End quote ---
Had you asked again, I would have explained you can use custom fields for any number of flag-like purpose—as you have deduced. I don't know what you're using Bookmarks for now, but the fact it seems to be permanent suggests the purpose might be better served with a custom field. Bookmarks are most useful for using on-the-fly for temporary purposes (like flagging files for further processing). There are assigned shortcuts and toolbar buttons for adding and clearing them, which are really needed for that sort of use.
--- Quote ---Btw, I found this piece of code in Ivek's script. Don't know if it's in the matter...
--- End quote ---
Sorry, I don't understand what you're getting at.
afrocuban:
--- Quote ---I don't know what you're using Bookmarks for now, but the fact it seems to be permanent suggests the purpose might be better served with a custom field. Bookmarks are most useful for using on-the-fly for temporary purposes (like flagging files for further processing). There are assigned shortcuts and toolbar buttons for adding and clearing them, which are really needed for that sort of use.
--- End quote ---
Being a visual type, I use "Bookmark" to color my "1001 movies you must see before you die" movies collection which I haven't completed yet. So, it is on-the-fly use, but the flight is long distance one ;D . This way, I can easily track and spot them while browsing my movie list for any purpose: what to watch for example, without the need to multiple filter the movie list. I don't want to filter the list, actually: I want to decide on the fly while browsing being aware of the specifity of the movie . Also, I use it as a control field: are the number of bookmarked movies equal to a number of movies that are assigned custom field's "Collections" value: "1001 Movies...". And I use every other single available color for their original purpose, so browsing through list is much more comfortable and faster, and without much prior filtering.
Custom color assigning would be more of a help, and would be a nice new feature, I admit. Further more, imagine filtering by color then? Nice, isn't it?
--- Quote ---If what you mean is error messages the program displays (if Silent Mode is off) don't appear in the log, it may be because the plugin (which is creating the log) knows nothing about the error—it simply stops working and has nothing to report.
--- End quote ---
Excactly that was my point: if PVD (or who ever do) knows and generates the error "No movie's found :(" in silent mode off, why is not possible PVD to collect all those messages in silent mode on in a single log file? That's all I need!
Regarding Ivek's script code, I thought maybe log messages are generating, but not sterd somewhere. I don't know anything about scripting, programming, etc...
Navigation
[0] Message Index
[*] Previous page
Go to full version