Исправлена ошибка https://github.com/MarshalX/yandex-music-api/issues/6 обязательности поля ID заказа (Yandex?). Теперь оно опциональное.
このコミットが含まれているのは:
コミット
63f29567c7
2
setup.py
2
setup.py
|
@ -16,7 +16,7 @@ packages = find_packages(exclude=['tests*'])
|
||||||
|
|
||||||
with open('README.rst', 'r', encoding='utf-8') as f:
|
with open('README.rst', 'r', encoding='utf-8') as f:
|
||||||
setup(name='yandex-music',
|
setup(name='yandex-music',
|
||||||
version='0.0.4',
|
version='0.0.5',
|
||||||
author='Il`ya Semyonov',
|
author='Il`ya Semyonov',
|
||||||
author_email='Ilya@marshal.by',
|
author_email='Ilya@marshal.by',
|
||||||
license='LGPLv3',
|
license='LGPLv3',
|
||||||
|
|
|
@ -36,8 +36,8 @@ class AutoRenewable(YandexMusicObject):
|
||||||
vendor_help_url,
|
vendor_help_url,
|
||||||
product_id,
|
product_id,
|
||||||
product,
|
product,
|
||||||
order_id,
|
|
||||||
finished,
|
finished,
|
||||||
|
order_id=None,
|
||||||
client=None,
|
client=None,
|
||||||
**kwargs):
|
**kwargs):
|
||||||
self.expires = datetime.fromisoformat(expires)
|
self.expires = datetime.fromisoformat(expires)
|
||||||
|
@ -45,11 +45,11 @@ class AutoRenewable(YandexMusicObject):
|
||||||
self.vendor_help_url = vendor_help_url
|
self.vendor_help_url = vendor_help_url
|
||||||
self.product_id = product_id
|
self.product_id = product_id
|
||||||
self.product = product
|
self.product = product
|
||||||
self.order_id = order_id
|
|
||||||
self.finished = finished
|
self.finished = finished
|
||||||
|
|
||||||
|
self.order_id = order_id
|
||||||
|
|
||||||
self.client = client
|
self.client = client
|
||||||
self._id_attrs = (self.order_id,)
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def de_json(cls, data, client):
|
def de_json(cls, data, client):
|
||||||
|
|
読み込み中…
新しいイシューから参照