traktarr
traktarr copied to clipboard
Python Error - Any ideas?
Describe the bug
Running the "traktarr trakt_authentication" command results in the following error
`
Traceback (most recent call last):
File "traktarr.py", line 1697, in
File "/usr/lib/python3.8/site-packages/click/core.py", line 722, in call return self.main(*args, **kwargs) File "/usr/lib/python3.8/site-packages/click/core.py", line 697, in main rv = self.invoke(ctx) File "/usr/lib/python3.8/site-packages/click/core.py", line 1063, in invoke Command.invoke(self, ctx) File "/usr/lib/python3.8/site-packages/click/core.py", line 895, in invoke return ctx.invoke(self.callback, **ctx.params) File "/usr/lib/python3.8/site-packages/click/core.py", line 535, in invoke return callback(*args, **kwargs) File "traktarr.py", line 52, in app cfg = Config(configfile=config, cachefile=cachefile, logfile=logfile).cfg File "/traktarr/misc/config.py", line 130, in cfg tmp = self.load_config() File "/traktarr/misc/config.py", line 168, in load_config return AttrConfig(json.load(fp)) File "/usr/lib/python3.8/json/init.py", line 293, in load return loads(fp.read(), File "/usr/lib/python3.8/json/init.py", line 357, in loads return _default_decoder.decode(s) File "/usr/lib/python3.8/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python3.8/json/decoder.py", line 353, in raw_decode obj, end = self.scan_once(s, idx) json.decoder.JSONDecodeError: Expecting ',' delimiter: line 9 column 7 (char 148) for more info on the above run options: https://hub.docker.com/r/eafxx/traktarr`
System Information
- Traktarr Version: Latest
- Operating System: Unraid 6.9.2 Docker
Any idea what's going wrong here?
My initial guess would be that the config is setup incorrectly.
Ah right okay so it's something in the config and not a python issue.
I'll look over it again tomorrow.
Cheers
On 29 Jun 2021, 23:36, at 23:36, salty @.***> wrote:
My initial guess would be that the config is setup incorrectly.
-- You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/l3uddz/traktarr/issues/153#issuecomment-870964017
I am having this issue as well. It seems it is caused by the Trak.TV list URLs. They now have a comma in the URL. This messes up the script
For Example if you are viewing a list like this https://trakt.tv/users/ech0chamber/lists/movies-top-2021?sort=rank,asc
you need to take out the sort part including the ? Like so:
https://trakt.tv/users/ech0chamber/lists/movies-top-2021
I haven't had a chance to try the script again, but I'll give this a go soon.