Improve setPartNumber
This commit is contained in:
parent
c9d8d8d5c6
commit
f968d2eef8
1 changed files with 2 additions and 2 deletions
|
@ -1385,12 +1385,12 @@ class API():
|
||||||
self.server = utils.window('emby_server%s' % self.userId)
|
self.server = utils.window('emby_server%s' % self.userId)
|
||||||
self.token = utils.window('emby_accessToken%s' % self.userId)
|
self.token = utils.window('emby_accessToken%s' % self.userId)
|
||||||
|
|
||||||
def setPartNumber(self, number=0):
|
def setPartNumber(self, number=None):
|
||||||
"""
|
"""
|
||||||
Sets the part number to work with (used to deal with Movie with several
|
Sets the part number to work with (used to deal with Movie with several
|
||||||
parts).
|
parts).
|
||||||
"""
|
"""
|
||||||
self.part = int(number)
|
self.part = number or 0
|
||||||
|
|
||||||
def getPartNumber(self):
|
def getPartNumber(self):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue