Skip to content
This repository has been archived by the owner on May 18, 2024. It is now read-only.

Add plex server address help #684

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions content/services/plex.py
Original file line number Diff line number Diff line change
Expand Up @@ -791,8 +791,8 @@ def __new__(self,silent=False):
types = ['1'] if Directory.type == "movie" else ['2', '3', '4']
sections += [[Directory.key,types]]
names += [Directory.title]
except:
ui_print("[plex error]: couldnt reach local plex server at: " + library.url + " to determine library sections. Make sure the address is correct, the server is running, and youve set up at least one library.")
except Exception as e:
ui_print("[plex error]: couldnt reach local plex server at: " + library.url + " to determine library sections. Make sure the address is correct, the server is running, and youve set up at least one library. Error:" + e)
if len(sections) == 0:
return list_
if not silent:
Expand Down Expand Up @@ -876,11 +876,11 @@ def __new__(self,silent=False):
episode.grandparentEID = item.EID
except:
ui_print('done')
ui_print("[plex error]: found incorrectly matched library item : " + item.title + " - this item needs a metadata refresh (open plex webui, find item, open item menu, refresh metadata).")
ui_print("[plex error]: found incorrectly matched library item : " + item.title + " - this item needs a metadata refresh (open plex webui, find item, open item menu, refresh metadata).")
ui_print('done')
current_library = copy.deepcopy(list_)
if first_load and updated:
store.save(current_library,"plex","metadata")
store.save(current_library,"plex","metadata")
return list_

def search(query, library=[]):
Expand Down
4 changes: 2 additions & 2 deletions settings/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,9 +348,9 @@ def get(self):
setting('Trakt library user', [''], content.services.trakt.library, 'user', hidden=True),
setting('Trakt refresh user', [''], content.services.trakt.library.refresh, 'user', hidden=True),
setting('Plex library refresh', [''], content.services.plex.library.refresh, 'sections', hidden=True,moveable=False),
setting('Plex library partial scan', 'Please enter "true" or "false": ', content.services.plex.library.refresh, 'partial', hidden=True, help="Specify wether or not plex_debrid should attempt to partially scan your plex libraries."),
setting('Plex library partial scan', 'Please enter "true" or "false": ', content.services.plex.library.refresh, 'partial', hidden=True, help="Specify whether or not plex_debrid should attempt to partially scan your plex libraries."),
setting('Plex library refresh delay', 'Please enter a number (e.g 420 or 69.69): ', content.services.plex.library.refresh, 'delay', hidden=True, help="Specify the amount of seconds plex_debrid should wait between adding a torrent and scanning your plex libraries."),
setting('Plex server address', 'Please enter your Plex server address: ', content.services.plex.library, 'url', hidden=True),
setting('Plex server address', 'Please enter your Plex server address: ', content.services.plex.library, 'url', hidden=True, help="It must include protocol (eg. http) and not include anything trailing slashes. eg. http://my-plex-server:32400"),
setting('Plex library check', [
'Please specify a library section number that should be checked for existing content before download: '],
content.services.plex.library, 'check', hidden=True, entry="section",
Expand Down