forked from arehbein-git/ppTag
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
44 lines (32 loc) · 1.49 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/env python
class ppTagConfig():
"""A simple class holding the config for ppTag"""
####################### Change HERE #######################
#if you do not have a token you have to supply your credentials
PLEX_LOGIN = ''
PLEX_PASS = ''
# if you already have a token pass it here
PLEX_TOKEN = ''
# the plex server url
PLEX_URL = 'http://192.168.0.200:32400' # including http(s) (local url is best)
# provide the usernames for which the rating should be updated
# when users have a pin we need this, otherwise set it to ''
USERDATA = { 'user': '1234' }
# for the access tokens we need the exact server name
SERVERNAME = 'plexserver'
# Photo section name in plex to focus on (empty will process the first photo section found)
PLEX_SECTION = ''
# path of the photo library in plex (absolute path)
PHOTOS_LIBRARY_PATH_PLEX = '/<some path>/'
# for the correct path creation we need the path to the
# photo library from the view of the script (absolute path)
# Linux/Mac: "/<some path>/"
# Windows: "C:\\some folder\\some folder" # (paths need escaping)
PHOTOS_LIBRARY_PATH = "/<some path>/"
# start an update at the start of the script
FORCE_RUN_AT_START = True # False
# set logging level (DEBUG, INFO, WARNING, ERROR, CRITICAL)
LOG_LEVEL = 'ERROR'
# set timezone the same as your plex server (e.g. America/New_York)
TIMEZONE = ''
###########################################################