Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python Error - Any ideas? #153

Open
joelang1699 opened this issue Jun 29, 2021 · 4 comments
Open

Python Error - Any ideas? #153

joelang1699 opened this issue Jun 29, 2021 · 4 comments
Labels

Comments

@joelang1699
Copy link

joelang1699 commented Jun 29, 2021

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?

@saltydk
Copy link
Collaborator

saltydk commented Jun 29, 2021

My initial guess would be that the config is setup incorrectly.

@joelang1699
Copy link
Author

joelang1699 commented Jun 29, 2021 via email

@Wh1t3Rose
Copy link

Wh1t3Rose commented Jul 9, 2021

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

@joelang1699
Copy link
Author

I haven't had a chance to try the script again, but I'll give this a go soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants