Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Новое неизвестное поле от API #372

Closed
ANDRE888 opened this issue Sep 28, 2020 · 1 comment · Fixed by #392
Closed

Новое неизвестное поле от API #372

ANDRE888 opened this issue Sep 28, 2020 · 1 comment · Fixed by #392
Labels
feature Новая функция или улучшение старой

Comments

@ANDRE888
Copy link

ANDRE888 commented Sep 28, 2020

По просьбе из WARNING'a прикладываю отладочную информацию ниже, которая поможет Вам в разработке:

Found unknown fields received from API! Please copy warn message and send to https://bit.ly/3dsFxyH (github issue), thank you!

Type: <class 'yandex_music.account.status.Status'>; kwargs: {'advertisement': 'Оформите постоянную подписку – первый месяц бесплатно!', 'bar_below': {'alert_id': 'xxx', 'text': 'тест Подписка скоро закончится. А вместе с ней закончатся музыка и подкасты без ограничений. Не надо так.', 'bg_color': '#FF5038', 'text_color': '#FFFFFF', 'alert_type': 'Churn_SubscriptionEnd_Music', 'button': {'text': 'Оформить подписку', 'bg_color': '#FFFFFF', 'text_color': '#191919', 'uri': 'https://plus.yandex.ru/?source=music_web_churn_subscriptionend'}, 'close_button': False}}

Type: <class 'yandex_music.account.subscription.Subscription'>; kwargs: {'non_auto_renewable': {'start': '2020-01-10T23:40:44+03:00', 'end': '2021-01-09T23:40:44+03:00'}}

Type: <class 'yandex_music.account.status.Status'>; kwargs: {'advertisement': 'Оформите постоянную подписку – первый месяц бесплатно!'}

Type: <class 'yandex_music.album.album.Album'>; kwargs: {'meta_type': 'music'}


@ANDRE888 ANDRE888 added the feature Новая функция или улучшение старой label Sep 28, 2020
@arynyklas
Copy link

Решил так:
import logging
yandex_music.base.logger.setLevel(logging.ERROR)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Новая функция или улучшение старой
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants