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

Allow use with jellyfin #2

Closed
kubo6472 opened this issue Dec 27, 2023 · 8 comments
Closed

Allow use with jellyfin #2

kubo6472 opened this issue Dec 27, 2023 · 8 comments
Assignees
Labels
enhancement New feature or request

Comments

@kubo6472
Copy link

Is your feature request related to a problem? Please describe.
Currently limited usage to plex

Describe the solution you'd like

Allow to either set PLEX_USER/PLEX_TOKEN... or a JELLYFIN_APIKEY and JELLYFIN_ADDRESS

@I-am-PUID-0 I-am-PUID-0 added the enhancement New feature or request label Jan 4, 2024
@I-am-PUID-0 I-am-PUID-0 moved this to Todo in pd_zurg roadmap Jan 4, 2024
@I-am-PUID-0 I-am-PUID-0 moved this from Todo to In Progress in pd_zurg roadmap Jan 4, 2024
@I-am-PUID-0 I-am-PUID-0 self-assigned this Jan 4, 2024
@kubo6472
Copy link
Author

kubo6472 commented Jan 5, 2024

I put this in zurg, works fine:

on_library_update: |
  for arg in "$@"
  do
      curl -v -X POST -H "X-MediaBrowser-Token: censored" https://domain.tld/library/refresh
  done

@I-am-PUID-0
Copy link
Owner

Feature added in Version [2.0.0]

@github-project-automation github-project-automation bot moved this from In Progress to Done in pd_zurg roadmap Jan 10, 2024
@kubo6472
Copy link
Author

image
this is what breaks it, it tries connecting to plex, because your way of manipulating the config file adds this empty bracket, which is what triggers plex_debrid to start connecting to plex.

@kubo6472
Copy link
Author

Possibly fixable by editing this:
image

@kubo6472
Copy link
Author

Exception in thread Thread-1 (threaded):
pd_zurg  | Traceback (most recent call last):
pd_zurg  |   File "/usr/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
pd_zurg  |     self.run()
pd_zurg  |   File "/usr/lib/python3.11/threading.py", line 982, in run
pd_zurg  |     self._target(*self._args, **self._kwargs)
pd_zurg  |   File "/plex_debrid/ui/__init__.py", line 408, in threaded
pd_zurg  |     library = content.classes.library()[0]()
pd_zurg  |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pd_zurg  |   File "/plex_debrid/content/services/trakt.py", line 616, in __new__
pd_zurg  |     ui_print('[trakt] getting ' + current_user[0] + "'s" + ' entire trakt collection ...')
pd_zurg  |                                   ~~~~~~~~~~~~^^^
pd_zurg  | IndexError: list index out of range

@I-am-PUID-0 I-am-PUID-0 reopened this Jan 22, 2024
@I-am-PUID-0 I-am-PUID-0 moved this from Done to In Progress in pd_zurg roadmap Jan 22, 2024
@I-am-PUID-0
Copy link
Owner

Possibly fixable by editing this: image

Fixed in Version [2.0.3]

@I-am-PUID-0
Copy link
Owner

Exception in thread Thread-1 (threaded):
pd_zurg  | Traceback (most recent call last):
pd_zurg  |   File "/usr/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
pd_zurg  |     self.run()
pd_zurg  |   File "/usr/lib/python3.11/threading.py", line 982, in run
pd_zurg  |     self._target(*self._args, **self._kwargs)
pd_zurg  |   File "/plex_debrid/ui/__init__.py", line 408, in threaded
pd_zurg  |     library = content.classes.library()[0]()
pd_zurg  |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pd_zurg  |   File "/plex_debrid/content/services/trakt.py", line 616, in __new__
pd_zurg  |     ui_print('[trakt] getting ' + current_user[0] + "'s" + ' entire trakt collection ...')
pd_zurg  |                                   ~~~~~~~~~~~~^^^
pd_zurg  | IndexError: list index out of range

I have finally figured this one out! The "Trakt refresh user" needs to be set in the plex_debrid settings.json; unfortunately, the only way to do so is by authorizing and adding your Trakt user by editing the Library collection service with the plex_debrid UI!

@github-project-automation github-project-automation bot moved this from In Progress to Done in pd_zurg roadmap Feb 28, 2024
@WagnerJon
Copy link

Still getting the error above. Even with added and authorized trakt user via the plex_debrid UI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

No branches or pull requests

3 participants