Skip to content
New issue

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

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

Already on GitHub? # to your account

10 треков из чарта #44

Open
BloodyBaRGaIn opened this issue Apr 14, 2024 · 5 comments
Open

10 треков из чарта #44

BloodyBaRGaIn opened this issue Apr 14, 2024 · 5 comments

Comments

@BloodyBaRGaIn
Copy link
Contributor

При получении треков из чарта возвращается только 10 объектов.
Использую следующую конструкцию:

List<YLandingEntity> list = Client.GetLanding(YLandingBlockType.Chart).Blocks[0].Entities;

Здесь список имеет значение свойства Count, равное 10, а не 100, как ожидалось.
Каждый из этих объектов преобразуется в YLandingEntityChart, у которого, в свою очередь, есть свойство Track, которое далее используется.
Возможно, требуются какие-то дополнительные инструкции?
Заранее спасибо огромное!!!

@K1llMan
Copy link
Owner

K1llMan commented Apr 14, 2024

Это блоки из страницы лэндинга, там только 10 доступно. Сам чарт находится по адресу https://music.yandex.ru/chart, который, видимо, не реализован.

@BloodyBaRGaIn
Copy link
Contributor Author

Большое спасибо за ответ!
Буду рад помочь, чем смогу, если смогу вообще.

@BloodyBaRGaIn
Copy link
Contributor Author

Результат выполнения запроса

https://api.music.yandex.net:443/landing3/chart

выдаёт здоровенный json, и, вроде бы как, это оно.

@K1llMan
Copy link
Owner

K1llMan commented Apr 15, 2024

Это новые методы для лэндинга. Их надо вообще все добавлять вместе с новыми моделями.

@BloodyBaRGaIn
Copy link
Contributor Author

Звучит как майлстоун к версии 2.0

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants