Improve setPartNumber

This commit is contained in:
tomkat83 2016-02-07 18:05:59 +01:00
parent c9d8d8d5c6
commit f968d2eef8

View file

@ -1385,12 +1385,12 @@ class API():
self.server = utils.window('emby_server%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
parts).
"""
self.part = int(number)
self.part = number or 0
def getPartNumber(self):
"""