![]() |
Script to clean TV Shows - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27) +--- Thread: Script to clean TV Shows (/showthread.php?tid=75457) |
Script to clean TV Shows - midna - 2010-06-11 This script walks through your tv shows and deletes those episodes that match the following criteria:
I store all my tv series in their own path, so the ignored path is useful for me when I don't want to delete certain episodes in an entire series. Credit to mdpauley who I based some of my script off of one of his. Anyone can use/modify this to their heart's content. It would be sweet if someone made a simple gui to modify ignored paths based on tv shows (ignore certain shows), and modify the older than date count. There ARE more efficient ways of doing this, but I'm lazy and tired and had an itch to write this. Code: import xbmc Also, if someone has had success using xbmc with more than one sound card enabled on the system PLEASE let me know :confused2: - donabi - 2011-01-08 Hi, this is something i was looking for. But it doesn't seem to work. Here is my debug-log http://pastebin.com/kDz1v9im The Sript starts scanning and counting, but it does not delete anything. - gmvasco - 2012-01-15 Yes, please, make this script work! Watching shows like The Daily Show or Conan and then auto-delete to save space and time would be so nice! - donabi - 2012-01-16 Didn't update my post. The Script works (at least with Dharma), but all you see is the "end" of it, when it starts to update the library. xbmc.executebuiltin('XBMC.updatelibrary(video)') - gmvasco - 2012-01-16 That's great news that the script is working in Dharma, but: 1 - I'm on Eden beta1 2 - I'm a total script newb and don't know how where to put this script. I can install plugins and repositories from zip files, but I don't know where to save this file and how to run it. I appreciate any help. - donabi - 2012-01-17 you can find the script here: http://www.xbmcnerds.com/index.php?page=DownloadDBFileDownload&dataID=28 (if you can't download it, contact me again. i'll send you a zip-file) after putting it (the folder) to your addons (and restart xbmc), the script should be visible at programs. - gmvasco - 2012-01-19 Thanks donabi, I got it (registering for your site in german was funny). I think the script is working, but I need a few more days to be sure. Funny how you altered the standard 20 days to 8, because I was going to do just that! - fungify - 2012-02-08 It would be great if this could be updated with a GUI for convenience. The feature is surely lacking from XBMC, but my guess is that most users would prefer a more ... userfriendly - approach than manually editing a script to exclude paths. Maybe just selecting the series to include in the cleanup would be preferable? FFY RE: Script to clean TV Shows - h8uman - 2012-07-06 I really need a copy of this script in ZIP format. Anyone have it they can send it on? RE: Script to clean TV Shows - antivirtel - 2024-06-29 I haven't tried this but it looks like there's an addon called Janitor for this now: https://kodi.tv/addons/omega/script.service.janitor/ - just wanted to update this old thread with an up to date option. |