-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconfig.py
80 lines (72 loc) · 3.72 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# Different Logging Levels
# 4: DEBUG
# 3: INFO
# 2: WARNING
# 1: ERROR
# 0: CRITICAL
log_level = 3
# When set true, if the script finds a user that already exists,
# the script will attempt to change the policy of that user,
# and add the emby connect account to that user.
overwrite = False
# The url to your Emby server
emby_base_url = 'http://localhost:8096'
# Login info for an account on your Emby server that has admin privileges
# Username
emby_admin_uname = ''
# Password
emby_admin_passwd = ''
# The script will avoid doing anything to these users AND admin_uname
avoid_users = [
'Python',
'Admin1122'
]
# number of seconds before the first request will timeout.
timeout = 2
# Determine whether or not to output in tsv format. Will be text if False
tsv_out = True
# If all thats provided is a connect username, this prefix will be put at
# the start of the username on the server
user_prefix = '!'
# These are the user policy changes that will be made. Can be empty
user_policy = {
'IsAdministrator': False, # True|False
'IsHidden': True, # True|False
'IsHiddenRemotely': True, # True|False
'IsDisabled': False, # True|False
# 'MaxParentalRating': None, # int|None
# 'BlockedTags': [], # string[]
# 'EnableUserPreferenceAccess': True, # True|False
# 'AccessSchedules': [], # [Configuration.AccessSchedule{...}]
# 'BlockUnratedItems': [], # string[Movie, Trailer, Series, Music, Game, Book, LiveTvChannel, LiveTvProgram, ChannelContent, Other]
'EnableRemoteControlOfOtherUsers': False, # True|False
'EnableSharedDeviceControl': True, # True|False
'EnableRemoteAccess': True, # True|False
'EnableLiveTvManagement': False, # True|False
'EnableLiveTvAccess': False, # True|False
'EnableMediaPlayback': True, # True|False
'EnableAudioPlaybackTranscoding': True, # True|False
'EnableVideoPlaybackTranscoding': True, # True|False
'EnablePlaybackRemuxing': True, # True|False
'EnableContentDeletion': False, # True|False
# 'EnableContentDeletionFromFolders': [], # string[]
'EnableContentDownloading': True, # True|False
'EnableSubtitleDownloading': False, # True|False
'EnableSubtitleManagement': False, # True|False
'EnableSyncTranscoding': False, # True|False
'EnableMediaConversion': False, # True|False
# 'EnabledDevices': [], # string[]
'EnableAllDevices': True, # True|False
# 'EnabledChannels': [], # string[]
'EnableAllChannels': True, # True|False
# 'EnabledFolders': [], # string[]
'EnableAllFolders': True, # True|False
# 'InvalidLoginAttemptCount': 10, # int
'EnablePublicSharing': False, # True|False
# 'BlockedMediaFolders': [], # string[]
# 'BlockedChannels': [], # string[]
# 'RemoteClientBitrateLimit': 12, # int
# 'AuthenticationProviderId': '', # string
# 'ExcludedSubFolders': [], # string[]
# 'DisablePremiumFeatures': False # True|False
}