File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 6
6
host: localhost
7
7
port: 8096
8
8
username: user
9
+ apikey: apikey
9
10
password: password
10
11
"""
11
12
from __future__ import division , absolute_import , print_function
@@ -150,7 +151,9 @@ def __init__(self):
150
151
# Adding defaults.
151
152
config ['emby' ].add ({
152
153
u'host' : u'http://localhost' ,
153
- u'port' : 8096
154
+ u'port' : 8096 ,
155
+ u'apikey' : None ,
156
+ u'password' : None
154
157
})
155
158
156
159
self .register_listener ('database_change' , self .listen_for_db_change )
@@ -171,6 +174,11 @@ def update(self, lib):
171
174
password = config ['emby' ]['password' ].get ()
172
175
token = config ['emby' ]['apikey' ].get ()
173
176
177
+ # Check if at least a apikey or password is given.
178
+ if not any ([password , token ]):
179
+ self ._log .warning (u'Provide at least Emby password or apikey.' )
180
+ return
181
+
174
182
# Get user information from the Emby API.
175
183
user = get_user (host , port , username )
176
184
if not user :
Original file line number Diff line number Diff line change 44
44
:bug: `2302 `
45
45
* :doc: `/plugins/lyrics `: The plugin now reports a beets-specific User-Agent
46
46
header when requesting lyrics. :bug: `2357 `
47
+ * :doc: `/plugins/embyupdate `: Fix a bug that apikey and password is needed in config.
47
48
48
49
For plugin developers: new importer prompt choices (see :ref: `append_prompt_choices `), you can now provide new candidates for the user to consider.
49
50
You can’t perform that action at this time.
0 commit comments