notebook
This commit is contained in:
+2
-1
@@ -35,6 +35,7 @@ for _s in (sys.stdout, sys.stderr):
|
||||
|
||||
DEF_PLEX = "http://192.168.1.76:32400"
|
||||
DEF_SECTION = 23 # EUNI (Other Videos)
|
||||
DEF_TOKEN = "Em6_tQ7DizF2s36-9_Jx" # natvrdo; lze prebit env PLEX_TOKEN nebo --token
|
||||
|
||||
# Mapovani profese kodu EUNI -> nazev (nezname kody se vynechaji).
|
||||
# Cely soucasny batch je profese 2 = Lékař. Dalsi profese doplnit az se dotahnou.
|
||||
@@ -162,7 +163,7 @@ def main():
|
||||
ap.add_argument("--plex", default=DEF_PLEX)
|
||||
ap.add_argument("--section", type=int, default=DEF_SECTION)
|
||||
ap.add_argument("--mongo", default=px.DEF_MONGO)
|
||||
ap.add_argument("--token", default=os.environ.get("PLEX_TOKEN", ""))
|
||||
ap.add_argument("--token", default=os.environ.get("PLEX_TOKEN") or DEF_TOKEN)
|
||||
ap.add_argument("--no-poster", action="store_true",
|
||||
help="nevybirat nahled (jen metadata)")
|
||||
args = ap.parse_args()
|
||||
|
||||
Reference in New Issue
Block a user