Guest - Testers are needed for the reworked CDateTime core component. See... https://forum.kodi.tv/showthread.php?tid=378981 (September 29) x
  • 1
  • 23
  • 24
  • 25
  • 26(current)
  • 27
Release After Watch
That's where I got 1.1.1, in that first post.     But somehow I did find the Wulf repository somehow in github.  Not sure how I found v1.3
Reply
As this addon can delete files, it's only for advanced users who know what they are doing. Not sure if the addon was refused to be in the official addon repository due to that or if it was a choice by the original developer. Whichever it is, I think it's probably best not to have this in the main Kodi repo and end up with people losing their movies or shows because they disabled security prompt and set this addon to delete their files.


The top of the the first post mentions that I'm continuing the project and refers to post 303 which contains links to my kodi repository which contains all my versions up to 1.3.0.



To get updates automatically when they happen, you can install my Kodi repo directly, then install After Watch from the Kodi interface, otherwise, either pick the prepackaged kodi zip file or clone the source from github - whichever works best for you.

Direct link to my Kodi repository package: https://github.com/AnonTester/kodi-repo/...-1.0.0.zip

All After Watch packages from repo:  https://github.com/AnonTester/kodi-repo/...afterwatch

Source code repo: https://github.com/AnonTester/script.service.afterwatch
Got an error message or something not working as it should? Provide a full Debug log (wiki) via paste.kodi.tv
Reply
Great.  I did find your repo and added it.  ~I really am not sure how I found it~     I am guessing you cannot add your file links to Post 1? 

Is there a cheat sheet on how to configure it?  Or just a sample of someones that might help me setup mine.  I left mine default and of course, nothing happens when I finish watching a show.  

I keep all my shows backed up to a NAS so I am not concerned about deleting one by mistake.. It would just suck if I removed all, as it would take a long time to copy them back..Wink 

Thanks, Bill
Reply
nope, the first post isn't mine and I cannot update it. The owner of the first post hasn't been on here since 2017.

The configuration shouldn't be too difficult, but depends on your setup and your preferences. As mentioned, I am using Kodi 20 and do not know if this addon works in 21 at all, however, in worst case, there'll be errors in the logs and nothing happens. Send logs in that case as per instructions in my signature.

First, enable "Allow file renaming and deletion" under Kodi Settings -> Appearance -> File Lists
Second configure the addon. I think the options pretty much explain themselves, but here it goes:
- Under File Management, select for Movies and/or Episodes if you want files to get deleted or moved, only moved or only deleted. Select your folder structure as per your source definition, either single folder with all movies/episodes in one folder or multiple folders where each movie/show is in subfolders. When you want to move the files, select which folder they should be moved to. Lastly, define whether empty directories should be removed or not.
- Under Restrictions, you can define exclusion words what shouldn't be managed or exclude a particular folder or set only a single folder which should be managed for either movies or shows.
- Under properties you define what percentage watched of a movie/episode should trigger afterwatch. default is fine. You can let it update the whole video library after an action and/or remove the video from the library. If you decide to keep the deleted file in the library, you can preserve the watched status and set custom tag. This feeds into the rating option. You might want to keep the movie even without the file to keep a record of a low rating. I'm not using this myself.
- Rating, enable ratings movie/episode after watching. makes most sense if you don't use this addon to delete your files.
- Post, open quit menu/logoff user/turn off display via cec in linux after watching movie/show.
- Advanced, confirm deleting moving is enabled by default and acts both as a safety or just confirmation. Set it to your preference. If you specify only deleting tvshows and always want to delete them after watching them without confirmation, that might be fine for you. Confirmation makes most sense if you want to keep some but delete others. The delay confirmation can help if other plugins interfere. 2 seconds might work better for some. Warn file threshold is a security setting to prevent wiping all your files by accident and alternative file management might be necessary depending on what system/os you're using this on and where your files are.

As config depends on your preferences and your setup, someone else's config won't help.
Got an error message or something not working as it should? Provide a full Debug log (wiki) via paste.kodi.tv
Reply
Thanks!   I have now set it up.   Here is the one thing that was different on 21.  I see its also on the scroll menu from, I am guessing v20  

First, enable "Allow file renaming and deletion" under Kodi Settings -> Media -> General

Setup and Just tested. 

OMG!  It deleted the show file from my SMB share!  Sweet. 

This is EXACTLY what I needed. 

You Might want to start a new thread with your Repo link at the top and those setup instructions in that too!  This is a god send.  So it does work on v21

Wow, Thanks Bill
Reply
Hi,  I have been using after watch for about a week now and its working very well.  That said I think there may be a bug that should be looked at.  It seems when I watch a show but pause it and go to a different show that I watch to the end,  After watch wants me to remove the other (first show) not the one that I actually watched all the way.  I have the watched setup set to 90% and I am no where near that on the first show that I paused and hadn't gone back to yet. 

Its happened a few times so far, and tonight is when I realized what show it wanted to delete, and possibly why it wasn't the show I watched to the end.

Thanks, Bill
SageTV as my OTA PVR.  Bulletproof with every configurable setting you could ever want/need!  Struggling to find a decent client.. Kodi is interesting now that I found the Afterwatch plugin. Infuse is pretty good after the first few days of using it and its simple to delete a show from disk, one click or two with confirmation!!!!   Traveling via 40'DP 6 months per year. 
Reply
I have not experienced such an issue myself, but I'm primarily using it for movies and not tvshows and there's a possibility this might be related to Kodi 21.

Without logs, I can't really look into this. Please provide debug logs by both enabling debug logging in the afterwatch settings and enabling debug logging in kodi, then restarting kodi and replicating the issue and lastly uploading the debug log to paste.kodi.tv. See links in my signature for more info if required.
Got an error message or something not working as it should? Provide a full Debug log (wiki) via paste.kodi.tv
Reply
I will turn on those debug settings and reproduce it.  Hopefully I will find a way to get those logs off the GoogleTV Box so I can upload them.  Not something I have done on one of these STB's yet.   -Bill
SageTV as my OTA PVR.  Bulletproof with every configurable setting you could ever want/need!  Struggling to find a decent client.. Kodi is interesting now that I found the Afterwatch plugin. Infuse is pretty good after the first few days of using it and its simple to delete a show from disk, one click or two with confirmation!!!!   Traveling via 40'DP 6 months per year. 
Reply
Install the Kodi Logfile Uploader, that should help with the upload of the logs. See https://kodi.wiki/view/Add-on:Kodi_Logfile_Uploader
Got an error message or something not working as it should? Provide a full Debug log (wiki) via paste.kodi.tv
Reply
I think my logfile is there now.  /vatecoyewe    Thanks for the logfile uploader info!  -Bill

I was able to reproduce it.  Watched a few minutes of Das Boot then paused it, then watched (skipped all the way thru) an episode of Downys dream cars.  When it got to the end it asked me to delete the episode of Das Boot NOT Downys Dream cars I actually watched to the end.  -Bill
SageTV as my OTA PVR.  Bulletproof with every configurable setting you could ever want/need!  Struggling to find a decent client.. Kodi is interesting now that I found the Afterwatch plugin. Infuse is pretty good after the first few days of using it and its simple to delete a show from disk, one click or two with confirmation!!!!   Traveling via 40'DP 6 months per year. 
Reply
https://paste.kodi.tv/vatecoyewe    I just looked at it.  I don't see anything relevant (to me) I used to code, in a prior life (early 90's)  -Bill

I redid it as I hadn't rebooted kodi.. 

I did the exact same thing and I get the message the Error Posting the kodi.log file, to large, Max size is 1 MB.

I don't see a config setting to change where the file goes, like to the smb share the shows are on to allow me to spit it into smaller chunks, I am assuming its the website being uploaded to that has the 1mb limit.
SageTV as my OTA PVR.  Bulletproof with every configurable setting you could ever want/need!  Struggling to find a decent client.. Kodi is interesting now that I found the Afterwatch plugin. Infuse is pretty good after the first few days of using it and its simple to delete a show from disk, one click or two with confirmation!!!!   Traveling via 40'DP 6 months per year. 
Reply
you're right, unfortunately, there's nothing relevant in that log, but it looks incomplete and apart from lots of warnings related to the xbmc backup script that spam the log, it doesn't contain anything from you starting or stopping a video and what the afterwatch service identified.
Yeah, the max 1mb appears to be the limit of hastebin used by paste.kodi.tv.

You can copy the log file to your NAS using the Kodi filemanager as described here:
https://kodi.wiki/view/Log_file/File_manager_access

I suggest you disable the backup addon temporarily, then reboot and create a new debug log, then zip it up and shove it on any file sharing site of your choice and I can download it from there to take a look.
Got an error message or something not working as it should? Provide a full Debug log (wiki) via paste.kodi.tv
Reply
https://paste.kodi.tv/ozawuqeqij.kodi

Done...  There is the URL  I was able to paste it into that same place for some reason... 

Thanks for the heads up on the Backup..  Seems I need to go figure that out as its backing up 8+ GB of data a few times a day.  I thought it was just config stuff, but Im not sure what the heck its doing.  -Bill

PS.  I have not installed the new update yet.
SageTV as my OTA PVR.  Bulletproof with every configurable setting you could ever want/need!  Struggling to find a decent client.. Kodi is interesting now that I found the Afterwatch plugin. Infuse is pretty good after the first few days of using it and its simple to delete a show from disk, one click or two with confirmation!!!!   Traveling via 40'DP 6 months per year. 
Reply
@anontester    Were you able to see anything in the new upload?   I see references to das boot and afterwatch.
SageTV as my OTA PVR.  Bulletproof with every configurable setting you could ever want/need!  Struggling to find a decent client.. Kodi is interesting now that I found the Afterwatch plugin. Infuse is pretty good after the first few days of using it and its simple to delete a show from disk, one click or two with confirmation!!!!   Traveling via 40'DP 6 months per year. 
Reply
I briefly looked at it, but did not have time to go deep into it. The afterwatch log entries look like they're the standard logging for it. Did you set afterwatch to debug log as well? Also, can you confirm what delay you set in your afterwatch config?

Lastly, to better understand how you use kodi and where this issue happens, what exactly are you doing when you pause one episode and go to another? Are you fully stopping the episode, then select another and watch that or are you selecting a different episode while the first one is still playing in the background or in pause mode?
Got an error message or something not working as it should? Provide a full Debug log (wiki) via paste.kodi.tv
Reply
  • 1
  • 23
  • 24
  • 25
  • 26(current)
  • 27

Logout Mark Read Team Forum Stats Members Help
After Watch4