Fixed Plex_LIBS bug

This commit is contained in:
Faiz Ahmed
2021-07-26 14:07:02 -04:00
parent 7ae7b41268
commit 86e8d29117
2 changed files with 4 additions and 6 deletions

View File

@@ -1,9 +1,7 @@
from plexapi.myplex import MyPlexAccount
import re
from app.bot.helper.confighelper import Plex_LIBS
def plexadd(plex, plexname):
global Plex_LIBS
def plexadd(plex, plexname, Plex_LIBS):
try:
if Plex_LIBS[0] == "all":
Plex_LIBS = plex.library.sections()