I-am-PUID-0 / pd_zurg

A combined docker image for the unified deployment of itsToggle's, yowmamasita's, and ncw's projects -- plex_debrid, zurg, and rclone
MIT License
154 stars 11 forks source link

Allow use with jellyfin #2

Closed kubo6472 closed 7 months ago

kubo6472 commented 9 months ago

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

kubo6472 commented 8 months ago

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 commented 8 months ago

Feature added in Version [2.0.0]

kubo6472 commented 8 months ago

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 commented 8 months ago

Possibly fixable by editing this: image

kubo6472 commented 8 months ago
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 commented 8 months ago

Possibly fixable by editing this: image

Fixed in Version [2.0.3]

I-am-PUID-0 commented 7 months ago
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!

WagnerJon commented 3 months ago

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