mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-05-24 00:41:38 +00:00
Merge pull request #348 from TrueTechy/fix/sonarqube-clumsy
Various fixes from sonarqube
This commit is contained in:
commit
16bd0091f7
12 changed files with 54 additions and 82 deletions
|
@ -215,8 +215,8 @@ def set_screensaver(value):
|
|||
|
||||
class JSONRPC(object):
|
||||
|
||||
version = 1
|
||||
jsonrpc = "2.0"
|
||||
id = 1
|
||||
jsonrpc_version = "2.0"
|
||||
|
||||
def __init__(self, method, **kwargs):
|
||||
|
||||
|
@ -228,8 +228,8 @@ class JSONRPC(object):
|
|||
def _query(self):
|
||||
|
||||
query = {
|
||||
'jsonrpc': self.jsonrpc,
|
||||
'id': self.version,
|
||||
'jsonrpc': self.jsonrpc_version,
|
||||
'id': self.id,
|
||||
'method': self.method,
|
||||
}
|
||||
if self.params is not None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue