2014-11-22, 01:49
Shame about this imdb business. Is there no work around?
(2014-05-13, 18:20)bobrap Wrote:(2014-05-01, 18:29)AlexVallat Wrote: This appears to be just the plugin I'm looking for, so thank you for writing it!
Unfortunately, there seems to be a small bug in it, when it comes to network shares. It doesn't appear to be able to delete any files accessed through smb.
Doing a little digging, I've tracked this down to the use of os.path.normpath. When Movie or Episode (in service.py) gets the file path from the json API, it will have a path something like "smb://server/share/folder", which is then passed through os.path.normpath before being assigned to self.path. Normpath then completely mangles it, producing "smb:\server\share\folder" which isn't going to work for anyone!
I tried simply replacing the linewithCode:self.path = os.path.normpath(p)
and that makes it work (for my particular case!), using the alternative deletion method (so using xbmcvfs for the file operations). Also, make sure in file management - episodes (or movies I guess) you have it set for single folder, if that's how you're set up.Code:self.path = p
Ideally, it would be nice if the plugin could simply request xbmc to remove the video from the library, and let its default handling do the deletion (rather than delete and request full cleaning). Unfortunately, as far as I can tell from a cursory inspection of the API, it's completely impossible to remove an item from the library using the API. Which is a shame.
Tried this and still won't delete a file for me.
.kodi/addons/script.hautopc.after-watch
.kodi/userdata/addon_data/script.hautopc.after-watch
(2016-02-19, 13:07)jvandenbroek Wrote: Hi everyone,
I've changed the code and removed no longer working functions (mainly IMDb stuff). Moving and deleting on SMB and NFS shares is now working if alternative file management method is set in the add-on configuration (disabled by default). If you have local disks / mounts, it's recommended to keep the alternative method disabled, since this allows much faster local I/O operations (moving with alternative method will first copy and than delete, since no other method is possible on SMB/NFS).
If you've installed the current version of the add-on, please first uninstall before installing this one. These folders eventually needs to be removed manually:
Code:.kodi/addons/script.hautopc.after-watch
.kodi/userdata/addon_data/script.hautopc.after-watch
Keep in mind the code it's still a little bit rough, but at least it's in working state. If you encounter any problems, please post a Kodi debug log (with debugging enabled in the add-on) and I'll see what I can do to fix it.
Download new version here: https://github.com/jvandenbroek/script.afterwatch
The original developer Pynto R gave me permission to continue his great work under the same name.
(2016-03-01, 21:47)KevinSartori Wrote: Thanks for updating After Watch, jvanderbroek. I just upgraded my Intel NUC from Windows 7 x64 to Windows 10 x64 and from Kodi Isengard to Kodi Jarvis.Hi Kevin,
Your updated After Watch works fine for Movies, but doesn't delete TV Shows. I found I had to add a 1 second delay for the confirm dialog and enable alternate file management method. For TV Shows, I use Single folder structure. For instance: Anime/Cowboy Bebop/[OZC]Cowboy_Bebop_Blu-ray_Box_S01E11_'Toys_in_the_Attic'_[1080p].mkv
Can you help? I tried switching skins, but that didn't make a difference. I enabled debugging in the addon and Kodi. Here's the debug log:
http://xbmclogs.com/pxerktci5
Thanks!
(2016-03-03, 07:53)Livin Wrote: Great news... One suggestion: The first post makes it look like this is 3 years old and not updated. Maybe you can gain control of the first post - if not then I suggest starting a new thead and having this one locked.
(2016-03-03, 18:44)jvandenbroek Wrote: Just pushed an update which should fix this. Please let me know if it's working now!
Here a direct URL: https://github.com/jvandenbroek/script.a.../0.9.2.zip