j wrote:
A spontaneous (and very easy to implement) idea would be to count the numbers of "" in the pattern and cut the filename up to the Nth "" from the back:
So: [face=courier](.*)\\s(\d*)e(\d*)[/face] would match [face=courier]Name\sXeX*avi[/face]
this should be sufficient, but I can't get it to work, I 'm new with regex, could you break it down, what it searches for?
For now there is no way to manually refresh the list of shows. You can delete the [face=courier]thetvdb.sqlite[/face] file in the same folder as your [face=courier]wincmd.ini[/face] but this will also erase all the associations to the filenames. Or use the personal edition of SQLite Expert and manually modify the database.
Currently the following logic is applied:
If the requested episode is missing in the database, the list of shows is reloaded from the servers and a time stamp is saved. After that, five minutes have to pass before the list can be reloaded if the episode is still missing. This way missing episodes should not penetrate the servers that much and also speed up local operations.
(In fact you could create a file [face=courier]Show - S99E99.avi[/face] to force an update every five minutes but I would not recommend it for the sake of TheTVDB.com servers...).
I've been trying to diagnose why your plugin does not work properly with my Comparer application and it looks like INI file is not read at all!
I am sending to your plugin something like "D:\aaaa\compartest\plugins\thetvdb.ini" using ContentSetDefaultParams (through wdx_proxy.dll) and it gives the feeling that this file is used (it creates thetvdb.ini file with two default sets of parameters after first run) but any new rules are skipped. The only way to have it working correctly with my application is to use movies names which match your rules.
I've tried to put thetvdb.ini in plugins and Comparer.exe directories without success. I have also assumed that you might use hard-coded names so I did the same for contplug.ini and it does not work. Any ideas?
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...
fenix_productions wrote:How did you implement INI handling part?
Actually there is nothing special about it. Maybe it is because the settings are only read once when [face=courier]ContentSetDefaultParams[/face] is called that you are facing a problem? I already thought about reading the settings inside [face=courier]ContentGetValue(W)[/face] so it's easier to add settings at runtime... maybe I'll change it to this behavior later.
The [face=courier]DefaultIniName[/face] is used as INI file and settings are read with [face=courier]GetPrivateProfileStringA[/face] and written with [face=courier]WritePrivateProfileStringA[/face].
Please be sure that the rules defined are correct, as there is no error message at the moment when an faulty rule is in the list and it will stop reading at that point. Probably a simple message box when a parser error occurs would be useful.
2j
I am sure rules are correct because they worked with Total Commander but not in Comparer. The only difference is that TC sends different INI name (TC path + contplug.ini) than Comparer (plugin location + plugin name + ini). That is all. Strange thing is that I've tried to follow the same naming rules as TC - without success.
BTW Error messages might be too annoying in the case of many files. It would be better to add simple log file which would be switched on with IsDebug parameter (0 by default).
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...
fenix_productions wrote:Strange thing is that I've tried to follow the same naming rules as TC - without success.
The servers are still broken. This causes the lookup of shows to fail (to get the proper id). Hopefully this will be fixed soon. Maybe (hopefully) your problems will be solved "magically" then .
fenix_productions wrote:BTW Error messages might be too annoying in the case of many files. It would be better to add simple log file which would be switched on with IsDebug parameter (0 by default).
The servers seem to be fixed now. I also made a new release with logging support. Setting [face=courier]debug=4[/face] will make the plug-in much more verbose.
Hopefully your original problems are solved now with the fixed servers - otherwise the log might help.
You amaze me, sir. I have been using your plugins for a while now and they always seem to be exactly what I am looking for. Thank you for this and all the other plugins you have written. And for the ones you have yet to write.
Believe it or not, I have never seen Bleach. Looks like I will have check it out to now.
chmod a+x /bin/laden -- Allows anyone the permission to execute /bin/laden
How do I un-overwrite all my data?
User of Total Commander #60471 Single user license