v19 Video Database Cleaner add-on
(2021-05-12, 13:48)black_eagle Wrote:
(2021-05-11, 11:42)kenmills Wrote: Awesome thx!  I look forward to hearing from him Smile

Yeah, I'm aware that it needs an update (badly).  I will get around to it as soon as I can, just real life keeps getting in the way!  If you want to fork it, improve it and/or maintain it then go right ahead. Smile
Hey mate!  Nice to meet you!  

I totally get it; RL is crazy these days, hey?  The lockdowns in Canada are crazy, and the US isn't any better  Sad

I just downloaded and opened the addon locally on  my PC, and edited the default.py to adhere to Python 3 standards, and almost got it to work with Matrix...  The addon installs, and runs, but when it executes it fails.   

I am just stuck on a single line - I think.  I am not a developer, nor am I that familiar with Python, let alone Python 3 :-)  I just plodded through.

I'll see about setting up a github account and forking it officially etc...  However, if you have 2 mins, and can easily solve the following, I think we may have a working addon....

The line that gets stuck is:

json_query = unicode(json_query, 'utf-8', errors='ignore')

Now I know that Python 3, you switch str for unicode, since the queries are all encoded.  However, when I do that and use json_query = str(json_query, 'utf-8', errors='ignore')

I get the error:

 json_query = str(json_query, 'utf-8', errors='ignore')
TypeError: decoding str is not supported

The entire chunk of code is:

json_query = unicode(json_query, 'utf-8', errors='ignore')
json_query = jsoninterface.loads(json_query)
if json_query.has_key('result'):
     dbglog('Clean library sucessfully called')


Anyways, if you know how to fix that chunk or line, I'll test and if it works, then we have a Matrix compatible version :-)

Cheers!
Ken
Reply


Messages In This Thread
MySQL - missing "port" query - by Bmn2016 - 2017-09-22, 17:56
RE: Database Pre-Wash Scrub - remove old junk links and privacy issues - by kenmills - 2021-05-12, 18:44
RE: Video Database Cleaner add-on - by Klojum - 2021-06-09, 20:52
RE: Video Database Cleaner add-on - by Klojum - 2021-06-09, 21:21
RE: Video Database Cleaner add-on - by Klojum - 2021-06-09, 21:27
RE: Video Database Cleaner add-on - by Klojum - 2022-04-21, 14:12
RE: Video Database Cleaner add-on - by biojo - 2022-04-21, 22:57
RE: Video Database Cleaner add-on - by Klojum - 2022-09-02, 20:40
RE: Video Database Cleaner add-on - by rafikW - 2023-02-16, 01:18
RE: Video Database Cleaner add-on - by Klojum - 2023-01-15, 23:43
RE: Video Database Cleaner add-on - by Klojum - 2023-01-28, 23:16
Logout Mark Read Team Forum Stats Members Help
Video Database Cleaner add-on5