• 1
  • 19
  • 20
  • 21(current)
  • 22
  • 23
  • 28
Release Janitor
What can be the cause of this;
15:07:03.728 T:6720 NOTICE: service.libraryautoupdate-1.0.0 : Creating timer for Music Library
15:07:03.728 T:6720 NOTICE: service.libraryautoupdate-1.0.0 : Creating timer for Custom Path 1
15:07:03.769 T:2112 NOTICE: Janitor: Not cleaning u'E:\\Serier\\The OA\\The OA - 1x06 - Garden of Forking Paths.mkv'.
15:07:03.769 T:2112 NOTICE: Janitor: Not cleaning u'E:\\Serier\\The OA\\The OA - 1x07 - Empire of Light.mkv'.
15:07:03.769 T:2112 NOTICE: Janitor: Not cleaning u'E:\\Serier\\The OA\\The OA - 1x08 - Invisible Self.mkv'.
15:07:03.770 T:2112 NOTICE: Janitor: Not cleaning u'E:\\Serier\\Fluffy Breaks Even\\Fluffy Breaks Even - 2x05 - San Antonio.mkv'.
15:07:03.770 T:2112 NOTICE: Janitor: Not cleaning u'E:\\Serier\\Fluffy Breaks Even\\Fluffy Breaks Even - 2x06 - Miami.mkv'.
15:07:03.770 T:2112 NOTICE: Janitor: Not cleaning u'E:\\Serier\\8 Simple Rules\\8 Simple Rules - 2x06 - No Right Way.avi'.
15:07:03.771 T:2112 NOTICE: Janitor: Not cleaning u'E:\\Serier\\8 Simple Rules\\8 Simple Rules - 2x07 - What Dad Would Want.avi'.
15:07:03.771 T:2112 NOTICE: Janitor: Not cleaning u'E:\\Serier\\8 Simple Rules\\8 Simple Rules - 2x08 - The First Thanksgiving.avi'.
15:07:03.771 T:2112 NOTICE: Janitor: Not cleaning u'E:\\Serier\\8 Simple Rules\\8 Simple Rules - 2x09 - The Story Of Anne Frank And Skeevy.avi'.
15:07:03.771 T:2112 NOTICE: Janitor: Not cleaning u'E:\\Serier\\8 Simple Rules\\8 Simple Rules - 2x10 - YMCA.avi'.
15:07:03.771 T:2112 NOTICE: Janitor: Not cleaning u'E:\\Serier\\8 Simple Rules\\8 Simple Rules - 2x11 - Get Real.avi'.
15:07:03.771 T:2112 NOTICE: Janitor: Not cleaning u'E:\\Serier\\8 Simple Rules\\8 Simple Rules - 2x12 - Consequences.avi'.
15:07:03.771 T:2112 NOTICE: Janitor: Not cleaning u'E:\\Serier\\8 Simple Rules\\8 Simple Rules - 2x13 - Opposites Attract (1).avi'.
15:07:03.771 T:2112 NOTICE: Janitor: Not cleaning u'E:\\Serier\\8 Simple Rules\\8 Simple Rules - 2x14 - Opposites Attract (2).avi'.
15:07:03.771 T:2112 NOTICE: Janitor: Not cleaning u'E:\\Serier\\8 Simple Rules\\8 Simple Rules - 2x15 - Opposites Attract Night Of The Locust (3).avi'.
15:07:03.771 T:2112 NOTICE: Janitor: Not cleaning u"E:\\Serier\\8 Simple Rules\\8 Simple Rules - 2x16 - Daddy's Girl.avi".
15:07:03.771 T:2112 NOTICE: Janitor: Not cleaning u'E:\\Serier\\8 Simple Rules\\8 Simple Rules - 2x17 - Mall In The Family.avi'.
15:07:03.771 T:2112 NOTICE: Janitor: Not cleaning u"E:\\Serier\\8 Simple Rules\\8 Simple Rules - 2x18 - Let's Keep Going (1).avi".
15:07:03.771 T:2112 NOTICE: Janitor: Not cleaning u"E:\\Serier\\8 Simple Rules\\8 Simple Rules - 2x19 - Let's Keep Going (2).avi".
15:07:03.771 T:2112 NOTICE: Janitor: Not cleaning u"E:\\Serier\\8 Simple Rules\\8 Simple Rules - 2x20 - C.J.'s Party.avi".
15:07:03.771 T:2112 NOTICE: Janitor: Not cleaning u"E:\\Serier\\8 Simple Rules\\8 Simple Rules - 2x21 - Mother's Day.avi".
15:07:03.772 T:2112 NOTICE: Janitor: Not cleaning u'E:\\Serier\\8 Simple Rules\\8 Simple Rules - 2x22 - The Principal.avi'.
15:07:03.772 T:2112 NOTICE: Janitor: Not cleaning u'E:\\Serier\\8 Simple Rules\\8 Simple Rules - 2x23 - Finale Part Un (1).avi'.
15:07:03.772 T:2112 NOTICE: Janitor: Not cleaning u'E:\\Serier\\8 Simple Rules\\8 Simple Rules - 2x24 - Finale Part Deux (2).avi'.
15:07:03.772 T:2112 NOTICE: Janitor: Not cleaning u'E:\\Serier\\8 Simple Rules\\8 Simple Rules - 3x01 - First Day Of School.avi'.
15:07:03.772 T:2112 NOTICE: Janitor: Not cleaning u'E:\\Serier\\8 Simple Rules\\8 Simple Rules - 3x02 - Changes.avi'.
15:07:03.772 T:2112 NOTICE: Janitor: Not cleaning u'E:\\Serier\\8 Simple Rules\\8 Simple Rules - 3x03 - School Nurse.avi'.
15:07:03.772 T:2112 NOTICE: Janitor: Not cleaning u'E:\\Serier\\8 Simple Rules\\8 Simple Rules - 3x04 - Out Of The Box.avi'.
15:07:03.772 T:2112 NOTICE: Janitor: Not cleaning u'E:\\Serier\\8 Simple Rules\\8 Simple Rules - 3x05 - Car Trouble.avi'.
15:07:03.772 T:2112 NOTICE: Janitor: Not cleaning u'E:\\Serier\\8 Simple Rules\\8 Simple Rules - 3x06 - Halloween.avi'.
15:07:03.772 T:2112 NOTICE: Janitor: Not cleaning u'E:\\Serier\\8 Simple Rules\\8 Simple Rules - 3x07 - Coach (a.k.a. Tennis Coach).avi'.
15:07:03.772 T:2112 NOTICE: Janitor: Not cleaning u'E:\\Serier\\8 Simple Rules\\8 Simple Rules - 3x08 - Secrets.avi'.
15:07:03.772 T:2112 NOTICE: Janitor: Not cleaning u'E:\\Serier\\8 Simple Rules\\8 Simple Rules - 3x09 - Thanksgiving Guest (a.k.a. Thanksgiving).avi'.
15:07:03.772 T:2112 NOTICE: Janitor: Not cleaning u'E:\\Serier\\8 Simple Rules\\8 Simple Rules - 3x10 - Vanity Unfair.avi'.
15:07:03.773 T:2112 NOTICE: Janitor: Not cleaning u'E:\\Serier\\8 Simple Rules\\8 Simple Rules - 3x11 - Princetown Girl.avi'.
15:07:03.773 T:2112 NOTICE: Janitor: Not cleaning u'E:\\Serier\\8 Simple Rules\\8 Simple Rules - 3x12 - A Very C.J. Christmas (a.k.a. A Very Cool Christmas).avi'.
15:07:03.773 T:2112 NOTICE: Janitor: Not cleaning u'E:\\Serier\\8 Simple Rules\\8 Simple Rules - 3x13 - The Sub.avi'.
15:07:03.773 T:2112 NOTICE: Janitor: Not cleaning u"E:\\Serier\\8 Simple Rules\\8 Simple Rules - 3x14 - C.J.'s Temptation.avi".
15:07:03.773 T:2112 NOTICE: Janitor: Not cleaning u'E:\\Serier\\8 Simple Rules\\8 Simple Rules - 3x15 - Old Flame.avi'.
15:07:03.773 T:2112 NOTICE: Janitor: Not cleaning u'E:\\Serier\\8 Simple Rules\\8 Simple Rules - 3x16 - Closure.avi'.
15:07:03.773 T:2112 NOTICE: Janitor: Not cleaning u'E:\\Serier\\8 Simple Rules\\8 Simple Rules - 3x17 - Volleybrawl.avi'.
15:07:03.773 T:2112 NOTICE: Janitor: Not cleaning u'E:\\Serier\\8 Simple Rules\\8 Simple Rules - 3x18 - Freaky Friday.avi'.
15:07:03.773 T:9996 NOTICE: [plugin.video.youtube] Startup: detected Krypton (Kodi-17.1), setting DASH_SUPPORT_BUILTIN = False, DASH_SUPPORT_ADDON = True
15:07:03.793 T:2112 NOTICE: Janitor: Not cleaning u'E:\\Serier\\8 Simple Rules\\8 Simple Rules - 3x19 - Torn Between Two Lovers.avi'.
15:07:03.793 T:2112 NOTICE: Janitor: Not cleaning u"E:\\Serier\\8 Simple Rules\\8 Simple Rules - 3x20 - C.J.'s Real Dad.avi".
15:07:03.793 T:2112 NOTICE: Janitor: Not cleaning u'E:\\Serier\\8 Simple Rules\\8 Simple Rules - 3x21 - The After Party.avi'.
15:07:03.793 T:2112 NOTICE: Janitor: Not cleaning u'E:\\Serier\\8 Simple Rules\\8 Simple Rules - 3x22 - The Teachers Lounge.avi'.
15:07:03.793 T:2112 NOTICE: Janitor: Not cleaning u'E:\\Serier\\8 Simple Rules\\8 Simple Rules - 3x23 - The Sleepover.avi'.
15:07:03.793 T:2112 NOTICE: Janitor: Not cleaning u'E:\\Serier\\8 Simple Rules\\8 Simple Rules - 3x24 - Ditch Day.avi'.
15:07:03.814 T:2112 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.UnicodeEncodeError'>
Error Contents: 'ascii' codec can't encode character u'\u0101' in position 60: ordinal not in range(128)
Traceback (most recent call last):
File "C:\Users\Media\AppData\Roaming\Kodi\addons\script.service.janitor\service.py", line 45, in <module>
autostart()
File "C:\Users\Media\AppData\Roaming\Kodi\addons\script.service.janitor\service.py", line 31, in autostart
results, _ = cleaner.clean_all()
File "C:\Users\Media\AppData\Roaming\Kodi\addons\script.service.janitor\default.py", line 228, in clean_all
cleaned_files, count, status = self.clean(video_type)
File "C:\Users\Media\AppData\Roaming\Kodi\addons\script.service.janitor\default.py", line 148, in clean
unstacked_path = self.unstack(filename)
File "C:\Users\Media\AppData\Roaming\Kodi\addons\script.service.janitor\default.py", line 385, in unstack
path = path.encode()
UnicodeEncodeError: 'ascii' codec can't encode character u'\u0101' in position 60: ordinal not in range(128)
-->End of Python script error report<--
15:07:03.828 T:2112 WARNING: CPythonInvoker(2, C:\Users\Media\AppData\Roaming\Kodi\addons\script.service.janitor\service.py): the python script "C:\Users\Media\AppData\Roaming\Kodi\addons\script.service.janitor\service.py" has left several classes in memory that we couldn't clean up. The classes include: class XBMCAddon::xbmc::Monitor,class XBMCAddon::xbmcgui:Big GrinialogProgress
Reply
Hi, thanks for maintaining/developing janitor.

i have an issue with janitor.

For some reason the add-on does not clean my movies. It is enabled under settings and i have verified that there are at least 5 movies that are marked watched. It seems it can not find them.

I have also enabled that at least 14 days be passed before moving. There should be at least 1 movie that I saw 14 days ago. I suspect there should me more but i am not aware of an option to verify that. I know that there must be at least one because tv series are moved by janitor. Even episodes I saw later than the movies.


https://pastebin.com/L9ZeFjSg

Do you have a suggestion
Reply
(2017-04-25, 15:21)fengen Wrote: What can be the cause of this;

15:07:03.793 T:2112 NOTICE: Janitor: Not cleaning u'E:\\Serier\\8 Simple Rules\\8 Simple Rules - 3x24 - Ditch Day.avi'.
15:07:03.814 T:2112 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.UnicodeEncodeError'>
Error Contents: 'ascii' codec can't encode character u'\u0101' in position 60: ordinal not in range(128)
Traceback (most recent call last):
File "C:\Users\Media\AppData\Roaming\Kodi\addons\script.service.janitor\service.py", line 45, in <module>
autostart()
File "C:\Users\Media\AppData\Roaming\Kodi\addons\script.service.janitor\service.py", line 31, in autostart
results, _ = cleaner.clean_all()
File "C:\Users\Media\AppData\Roaming\Kodi\addons\script.service.janitor\default.py", line 228, in clean_all
cleaned_files, count, status = self.clean(video_type)
File "C:\Users\Media\AppData\Roaming\Kodi\addons\script.service.janitor\default.py", line 148, in clean
unstacked_path = self.unstack(filename)
File "C:\Users\Media\AppData\Roaming\Kodi\addons\script.service.janitor\default.py", line 385, in unstack
path = path.encode()
UnicodeEncodeError: 'ascii' codec can't encode character u'\u0101' in position 60: ordinal not in range(128)
-->End of Python script error report<--
15:07:03.828 T:2112 WARNING: CPythonInvoker(2, C:\Users\Media\AppData\Roaming\Kodi\addons\script.service.janitor\service.py): the python script "C:\Users\Media\AppData\Roaming\Kodi\addons\script.service.janitor\service.py" has left several classes in memory that we couldn't clean up. The classes include: class XBMCAddon::xbmc::Monitor,class XBMCAddon::xbmcgui:Big GrinialogProgress

I have the same issue
The Problem is not the problem. The problem is your attitude about the problem.
Do you understand?
Reply
I think there's another missing "utf-8" in version 4.3.1.

Check the default.py and make sure all instances of path.encode("utf-8") have the "utf-8" in the brackets. Fixed me right up.
Reply
Information 
Version 4.3.9
DOWNLOAD from HERE

!!! It's only tested on KODI 17.1.0.0 on Windows 10 - USE AT YOUR OWN RISK!!!
Please keep in mind that this addon can delete your whole media library if used wrong!

I highly recommend to uninstall any older version (note your settings before you do so) before you install this version.

This is an interims solution.

FIXED - utf-8 problems should be fixed
FIXED - previous version used the field RATINGS which contains the rating from the online source.
The user changable rating from the INFO dialog was ignored.
This version use the field USERRATING from the info dialog.

I changed the icon a bit to remind us that this is an interims solutions.

When im back i will contact Anthirian and check ihow we can get all the fixes original-source trunck and therefore back to the standard repository.

rgds
neunmalelf
Reply
This new version solved my encoding error but it seem that something isn't ok,
Says 159 episodes expired, Then no cleaning done and the same over and over again. everytime I run it.
Reply
I was experiencing massive issues with version 4.3.1 for months now running on an arch linux. The script always crashed due to some encoding issues. I saw that there seemed to be an unreleased fix in this repo (https://github.com/Anthirian/script.service.janitor) which I forked and made a release from the last two commits since 4.3.1. After installing it manually and restarting kodi it went through my library like its nothing and deleted over 300 items in my backlog. You can download that version here: https://github.com/Rusk85/script.service...ses/latest
I explicitly state that this is not my work at all. I just incremented the version number in "addon.xml" and included said commits in a 7z archive. Since I have no clue how to publish to the official kodi repo I thought its best to post here.
I opened a PR for the original repo where I got the commits from assuming they will merge or just release it themselves. Until such time you can download above version.

Apparently some repos (?) exist with versions as far out as 4.3.9. I have not looked into those, so I dont know if they bring any more fixes or features to the table but at least I know the version I dug out works in case 4.3.1 had encoding issues for you. Its exactly those errors as they appear in the log fengen posted.

I am running this script on Kodi 17.1-2 on an arch linux box.
Reply
Can I use this addon to point to a specifically created folder that I would like video files cleaned from after watching them? I'd just like to have a "DumpFolder" that I could drop "watch once" media into & have it get deleted after being watched.
Is that possible?
Nvidia ShieldTV (2017)+Nexus
Reply
(2017-07-04, 19:34)christoofar Wrote: Can I use this addon to point to a specifically created folder that I would like video files cleaned from after watching them? I'd just like to have a "DumpFolder" that I could drop "watch once" media into & have it get deleted after being watched.
Is that possible?


anyone?
Nvidia ShieldTV (2017)+Nexus
Reply
it seems there is a problem cleaning entry which have a ' (single apostrophe) in it. It's the only folder in which janitor does not work.

Is this also related to the UTF thing is read in this thread
Reply
(2017-08-06, 17:52)85ab50d4 Wrote: it seems there is a problem cleaning entry which have a ' (single apostrophe) in it. It's the only folder in which janitor does not work.

Is this also related to the UTF thing is read in this thread

!!!! no error here. Just an user error!
Reply
I was looking for this exact functionality, but unfortunately it does not work. I tried the repo and every version posted on this last page. I always get these errors and it hangs:

Quote:0:41:35.390 T:8812 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.UnicodeDecodeError'>
Error Contents: 'ascii' codec can't decode byte 0xc3 in position 52: ordinal not in range(128)
Traceback (most recent call last):
File ***********AppData\Roaming\Kodi\addons\script.service.janitor\default.py", line 633, in <module>
results, return_status = cleaner.clean_all()
File ***********AppData\Roaming\Kodi\addons\script.service.janitor\default.py", line 234, in clean_all
cleaned_files, count, status = self.clean(video_type)
File ***********AppData\Roaming\Kodi\addons\script.service.janitor\default.py", line 140, in clean
expired_videos = self.get_expired_videos(video_type)
File ***********AppData\Roaming\Kodi\addons\script.service.janitor\default.py", line 304, in get_expired_videos
by_exclusion3 = {"field": "path", "operator": "doesnotcontain", "value": get_setting(exclusion3)}
File ***********AppData\Roaming\Kodi\addons\script.service.janitor\settings.py", line 77, in get_setting
return xbmc.translatePath(Addon("script.service.janitor").getSetting(setting).encode("utf-8"))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 52: ordinal not in range(128)
-->End of Python script error report<--
00:41:35.568 T:8812 WARNING: CPythonInvoker(7, ************\AppData\Roaming\Kodi\addons\script.service.janitor\default.py): the python script "*********\AppData\Roaming\Kodi\addons\script.service.janitor\default.py" has left several classes in memory that we couldn't clean up. The classes include: class XBMCAddon::xbmc::Monitor,class XBMCAddon::xbmcgui:Big GrinialogProgress

I use mysql and smb network paths, perhaps that's the problem?
Reply
(2017-07-04, 19:34)christoofar Wrote: Can I use this addon to point to a specifically created folder that I would like video files cleaned from after watching them? I'd just like to have a "DumpFolder" that I could drop "watch once" media into & have it get deleted after being watched.
Is that possible?
I'm not sure that would work the way the addon is currently designed to work. You might want to try setting up separate sources in Kodi and excluding the ones you wish to keep. Other than that I don't see a way currently.

(2017-08-08, 19:40)85ab50d4 Wrote:
(2017-08-06, 17:52)85ab50d4 Wrote: it seems there is a problem cleaning entry which have a ' (single apostrophe) in it. It's the only folder in which janitor does not work.

Is this also related to the UTF thing is read in this thread

!!!! no error here. Just an user error!
Glad you managed to fixed it. Thanks for the update.

(2017-08-12, 23:48)IT007 Wrote: I was looking for this exact functionality, but unfortunately it does not work. I tried the repo and every version posted on this last page. I always get these errors and it hangs:

Quote:0:41:35.390 T:8812 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.UnicodeDecodeError'>
Error Contents: 'ascii' codec can't decode byte 0xc3 in position 52: ordinal not in range(128)
Traceback (most recent call last):
File ***********AppData\Roaming\Kodi\addons\script.service.janitor\default.py", line 633, in <module>
results, return_status = cleaner.clean_all()
File ***********AppData\Roaming\Kodi\addons\script.service.janitor\default.py", line 234, in clean_all
cleaned_files, count, status = self.clean(video_type)
File ***********AppData\Roaming\Kodi\addons\script.service.janitor\default.py", line 140, in clean
expired_videos = self.get_expired_videos(video_type)
File ***********AppData\Roaming\Kodi\addons\script.service.janitor\default.py", line 304, in get_expired_videos
by_exclusion3 = {"field": "path", "operator": "doesnotcontain", "value": get_setting(exclusion3)}
File ***********AppData\Roaming\Kodi\addons\script.service.janitor\settings.py", line 77, in get_setting
return xbmc.translatePath(Addon("script.service.janitor").getSetting(setting).encode("utf-8"))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 52: ordinal not in range(128)
-->End of Python script error report<--
00:41:35.568 T:8812 WARNING: CPythonInvoker(7, ************\AppData\Roaming\Kodi\addons\script.service.janitor\default.py): the python script "*********\AppData\Roaming\Kodi\addons\script.service.janitor\default.py" has left several classes in memory that we couldn't clean up. The classes include: class XBMCAddon::xbmc::Monitor,class XBMCAddon::xbmcgui:Big GrinialogProgress

I use mysql and smb network paths, perhaps that's the problem?

It should not be an issue of network paths. Are you sure you have tried after installing at least git version aa07edfccb5014b0e95f067c8cf1fdf058c8b66f manually? If so could you please post the settings.xml file from your addon_data folder? I am quite interested in what the contents of exclusion3 are.
Reply
(2017-08-16, 20:50)Anthirian Wrote: It should not be an issue of network paths. Are you sure you have tried after installing at least git version aa07edfccb5014b0e95f067c8cf1fdf058c8b66f manually? If so could you please post the settings.xml file from your addon_data folder? I am quite interested in what the contents of exclusion3 are.

I guess I should have added that I use Kodi Dsplayer, the latest version is 17.3, compiled may 25.

I took a look at exlusion3, it's just a smb path, but it does contain the letter "ä" in a folder. I'm guessing that's where it fails. But to be fair, even kodi fails to delete some files using the file manager while most gets deleted fine.
Reply
I suspected there was a non-ascii character in the path that was causing issues. I must have forgotten to correctly encode something. I'll look into it and try to get a fix out as soon as I can.
Reply
  • 1
  • 19
  • 20
  • 21(current)
  • 22
  • 23
  • 28

Logout Mark Read Team Forum Stats Members Help
Janitor4