2022-03-04 05:07:49 +09:00
|
|
|
__version__ = '2.0.1'
|
2021-02-03 21:00:21 +09:00
|
|
|
__license__ = 'GNU Lesser General Public License v3 (LGPLv3)'
|
2022-02-16 20:26:29 +09:00
|
|
|
__copyright__ = 'Copyright (C) 2019-2022 Il`ya (Marshal) <https://github.com/MarshalX>'
|
2021-02-03 21:00:21 +09:00
|
|
|
|
2019-05-07 06:02:21 +09:00
|
|
|
from .base import YandexMusicObject
|
2019-06-03 01:23:29 +09:00
|
|
|
|
2019-05-11 05:01:32 +09:00
|
|
|
from .settings import Settings
|
|
|
|
from .permission_alerts import PermissionAlerts
|
|
|
|
from .experiments import Experiments
|
New supported objects: Search, Suggestions, Video, Best, AlbumSearchResult, ArtistSearchResult, PlaylistSearchResult, TrackSearchResult, VideoSearchResult,
The following methods are wrapped:
- /search
- /search/suggest
The following classes received optional fields instead of required ones: Album, Artist, Playlist, Track
Added "params" arg to the GET request
Code refactoring
2019-05-18 01:20:34 +09:00
|
|
|
|
2020-01-26 03:09:03 +09:00
|
|
|
from .account.status import Status
|
|
|
|
from .account.account import Account
|
|
|
|
from .account.plus import Plus
|
2020-06-07 20:46:37 +09:00
|
|
|
from .account.alert_button import AlertButton
|
|
|
|
from .account.alert import Alert
|
2020-01-26 03:09:03 +09:00
|
|
|
from .account.user_settings import UserSettings
|
2020-06-14 21:09:50 +09:00
|
|
|
from .account.non_auto_renewable import NonAutoRenewable
|
|
|
|
from .account.deactivation import Deactivation
|
|
|
|
from .account.operator import Operator
|
2020-01-26 03:09:03 +09:00
|
|
|
from .account.subscription import Subscription
|
|
|
|
from .account.price import Price
|
|
|
|
from .account.product import Product
|
|
|
|
from .account.auto_renewable import AutoRenewable
|
2020-04-17 03:35:45 +09:00
|
|
|
from .account.renewable_remainder import RenewableRemainder
|
2020-01-26 03:09:03 +09:00
|
|
|
from .account.passport_phone import PassportPhone
|
|
|
|
from .account.permissions import Permissions
|
New supported objects: Search, Suggestions, Video, Best, AlbumSearchResult, ArtistSearchResult, PlaylistSearchResult, TrackSearchResult, VideoSearchResult,
The following methods are wrapped:
- /search
- /search/suggest
The following classes received optional fields instead of required ones: Album, Artist, Playlist, Track
Added "params" arg to the GET request
Code refactoring
2019-05-18 01:20:34 +09:00
|
|
|
|
2019-11-10 03:11:43 +09:00
|
|
|
from .album.album import Album
|
2020-12-02 16:22:27 +09:00
|
|
|
from .album.label import Label
|
2019-11-10 03:11:43 +09:00
|
|
|
from .album.track_position import TrackPosition
|
2021-01-28 01:24:40 +09:00
|
|
|
from .album.deprecation import Deprecation
|
|
|
|
|
2019-11-10 03:11:43 +09:00
|
|
|
from .artist.artist import Artist
|
|
|
|
from .artist.artist_tracks import ArtistTracks
|
2019-11-20 02:30:07 +09:00
|
|
|
from .artist.artist_albums import ArtistAlbums
|
2019-11-10 03:11:43 +09:00
|
|
|
from .artist.brief_info import BriefInfo
|
|
|
|
from .artist.counts import Counts
|
|
|
|
from .artist.description import Description
|
|
|
|
from .artist.link import Link
|
|
|
|
from .artist.ratings import Ratings
|
|
|
|
from .artist.vinyl import Vinyl
|
2019-06-03 01:23:29 +09:00
|
|
|
|
2019-06-04 22:30:33 +09:00
|
|
|
from .playlist.case_forms import CaseForms
|
|
|
|
from .playlist.made_for import MadeFor
|
|
|
|
from .playlist.user import User
|
Добавлены новые классы: Brand, Contest, OpenGraphData.
Поля contest, dummy_description, dummy_page_description, dummy_cover, dummy_rollover_cover, og_data, branding классу Playlist.
Добавлена информацию по поводу запуска потока по треку, плейлисту и т.д.
Документация и тесты к новым полям, классам #339
2020-06-15 04:11:38 +09:00
|
|
|
from .playlist.contest import Contest
|
|
|
|
from .playlist.open_graph_data import OpenGraphData
|
|
|
|
from .playlist.brand import Brand
|
2019-06-04 22:30:33 +09:00
|
|
|
from .playlist.play_counter import PlayCounter
|
Добавлен метод получения информации об артисте (Brief Info https://github.com/MarshalX/yandex-music-api/issues/9).
Добавлены следующие классы: BriefInfo, Description, Vinyl, PlaylistId.
Класс Video вынесен из пакета Search в корень.
Добавлен de_list в Cover.
Добавлены следующие поля в класс Artist: likes_count, full_names, description, countries, en_wikipedia_link, db_aliases, aliases, init_date, end_date.
Добавлено поле track_id в класс Chart.
Добавлено поле available_full_without_permission в класс Track.
Класс Video расширен для поддержки второго типа (используется в brief info, спасибо яндух) видео (добавлены необязательные поля cover, embed_url, provider, provider_video_id).
Обновлена документация.
2019-09-13 00:32:43 +09:00
|
|
|
from .playlist.playlist_id import PlaylistId
|
2020-05-15 04:44:57 +09:00
|
|
|
from .playlist.tag import Tag
|
|
|
|
from .playlist.tag_result import TagResult
|
2019-11-24 07:51:45 +09:00
|
|
|
from .playlist.playlist_absence import PlaylistAbsence
|
2019-06-04 22:30:33 +09:00
|
|
|
from .playlist.playlist import Playlist
|
2020-05-07 17:09:12 +09:00
|
|
|
from .playlist.playlist_recommendation import PlaylistRecommendations
|
2019-06-03 01:23:29 +09:00
|
|
|
|
2020-01-24 08:18:27 +09:00
|
|
|
from .shot.shot_type import ShotType
|
|
|
|
from .shot.shot_data import ShotData
|
|
|
|
from .shot.shot import Shot
|
|
|
|
from .shot.shot_event import ShotEvent
|
|
|
|
|
2019-11-10 03:11:43 +09:00
|
|
|
from .tracks_list import TracksList
|
|
|
|
from .track.major import Major
|
Добавлен новый класс LicenceTextPart.
Поля cheapest, title, family_sub, fb_image, fb_name, family, intro_period_duration, intro_price, start_period_duration, start_price, licence_text_parts для Product.
Поля storage_dir, duplicates для Album.
Поле subscribed для ArtistEvent.
Поле description для GeneratedPlaylist.
Поле genre для Event.
Поле show_in_regions для Genre.
Поле cover_uri для MixLink.
Поля og_description, top_artist для Playlist.
Поля full_image_url, mts_full_image_url для Station.
Документация и тесты к новым поля. #339
2020-06-07 05:48:32 +09:00
|
|
|
from .track.licence_text_part import LicenceTextPart
|
2020-06-14 21:09:50 +09:00
|
|
|
from .track.poetry_lover_match import PoetryLoverMatch
|
2020-06-06 23:06:23 +09:00
|
|
|
from .track.meta_data import MetaData
|
2019-11-10 03:11:43 +09:00
|
|
|
from .track.normalization import Normalization
|
|
|
|
from .track.track import Track
|
2020-01-26 02:03:00 +09:00
|
|
|
from .track.tracks_similar import SimilarTracks
|
2019-06-03 01:23:29 +09:00
|
|
|
|
2019-06-04 22:30:33 +09:00
|
|
|
from .feed.generated_playlist import GeneratedPlaylist
|
|
|
|
from .feed.album_event import AlbumEvent
|
|
|
|
from .feed.artist_event import ArtistEvent
|
|
|
|
from .feed.track_with_ads import TrackWithAds
|
|
|
|
from .feed.day import Day
|
|
|
|
from .feed.event import Event
|
|
|
|
from .feed.feed import Feed
|
New supported objects: Search, Suggestions, Video, Best, AlbumSearchResult, ArtistSearchResult, PlaylistSearchResult, TrackSearchResult, VideoSearchResult,
The following methods are wrapped:
- /search
- /search/suggest
The following classes received optional fields instead of required ones: Album, Artist, Playlist, Track
Added "params" arg to the GET request
Code refactoring
2019-05-18 01:20:34 +09:00
|
|
|
|
2019-11-10 03:11:43 +09:00
|
|
|
from .promo_code_status import PromoCodeStatus
|
|
|
|
from .download_info import DownloadInfo
|
|
|
|
from .video import Video
|
New supported objects: Search, Suggestions, Video, Best, AlbumSearchResult, ArtistSearchResult, PlaylistSearchResult, TrackSearchResult, VideoSearchResult,
The following methods are wrapped:
- /search
- /search/suggest
The following classes received optional fields instead of required ones: Album, Artist, Playlist, Track
Added "params" arg to the GET request
Code refactoring
2019-05-18 01:20:34 +09:00
|
|
|
|
2019-06-04 22:30:33 +09:00
|
|
|
from .search.best import Best
|
|
|
|
from .search.search import Search
|
|
|
|
from .search.suggestions import Suggestions
|
|
|
|
from .search.search_result import SearchResult
|
2019-05-07 06:02:21 +09:00
|
|
|
|
2019-06-04 22:30:33 +09:00
|
|
|
from .landing.chart_item import ChartItem
|
|
|
|
from .landing.play_context import PlayContext
|
|
|
|
from .landing.track_short_old import TrackShortOld
|
|
|
|
from .landing.mix_link import MixLink
|
|
|
|
from .landing.promotion import Promotion
|
|
|
|
from .landing.block_entity import BlockEntity
|
|
|
|
from .landing.landing import Landing
|
|
|
|
from .landing.block import Block
|
2020-05-16 07:00:52 +09:00
|
|
|
from .landing.landing_list import LandingList
|
2020-05-15 03:02:34 +09:00
|
|
|
from .landing.chart_info_menu_item import ChartInfoMenuItem
|
|
|
|
from .landing.chart_info_menu import ChartInfoMenu
|
|
|
|
from .landing.chart_info import ChartInfo
|
2019-06-04 22:30:33 +09:00
|
|
|
from .landing.track_id import TrackId
|
|
|
|
from .landing.chart import Chart
|
|
|
|
from .landing.play_contexts_data import PlayContextsData
|
|
|
|
from .landing.personal_playlists_data import PersonalPlaylistsData
|
New supported objects: Landing, Block, BlockEntity, Chart, ChartItem, MixLink, PersonalPlaylistsData, PlayContext, PlayContextsData, Promotion, TrackId, TrackShorOld (YEAH!)
The following method are wrapped:
- /landing3
Added the ability to download covers
The following field are optional: Playlist.tags
Now, when parsing json, the "client" key is replaced with "client_"
2019-05-25 02:10:39 +09:00
|
|
|
|
2019-06-04 22:30:33 +09:00
|
|
|
from .genre.title import Title
|
|
|
|
from .genre.images import Images
|
|
|
|
from .genre.genre import Genre
|
2019-06-01 17:23:28 +09:00
|
|
|
|
2019-06-04 22:30:33 +09:00
|
|
|
from .rotor.id import Id
|
|
|
|
from .rotor.value import Value
|
|
|
|
from .rotor.enum import Enum
|
|
|
|
from .rotor.sequence import Sequence
|
2020-06-07 20:46:37 +09:00
|
|
|
from .rotor.station_data import StationData
|
2019-06-04 22:30:33 +09:00
|
|
|
from .rotor.discrete_scale import DiscreteScale
|
|
|
|
from .rotor.ad_params import AdParams
|
|
|
|
from .rotor.restrictions import Restrictions
|
|
|
|
from .rotor.rotor_settings import RotorSettings
|
|
|
|
from .rotor.station import Station
|
|
|
|
from .rotor.station_tracks_result import StationTracksResult
|
|
|
|
from .rotor.station_result import StationResult
|
|
|
|
from .rotor.dashboard import Dashboard
|
New supported objects: Station, StationResult, StationTrackResult, Value, Sequence, RotorSettings, Restrictions, Id, Enum, DiscreteScale, DashBoard, AdParams
The following methods are wrapped:
- /rotor/account/status
- /rotor/stations/dashboard
- /rotor/stations/list
- /rotor/station/genre:{genre}/feedback
- /rotor/station/genre:{genre}/info
- /rotor/station/genre:{genre}/tracks
The following fields are now optional: Account[region, passport_phones], Status[cache_limit, subeditor, subeditor_level, plus], Subscription[auto_renewable, can_start_trial, mcdonalds]
Added new fields: Subscription.end, Status[skips_per_hour, station_exists, premium_region], Track..preview_duration_ms
Fixed downloading the cover of the track
2019-06-03 22:16:24 +09:00
|
|
|
|
2019-10-17 05:10:52 +09:00
|
|
|
from .supplement.supplement import Supplement
|
|
|
|
from .supplement.lyrics import Lyrics
|
|
|
|
from .supplement.video_supplement import VideoSupplement
|
|
|
|
|
2020-06-20 22:54:46 +09:00
|
|
|
from .queue.context import Context
|
|
|
|
from .queue.queue import Queue
|
|
|
|
from .queue.queue_item import QueueItem
|
|
|
|
|
2020-02-04 21:34:11 +09:00
|
|
|
from .like import Like
|
2019-11-20 02:00:58 +09:00
|
|
|
from .pager import Pager
|
2019-11-10 03:11:43 +09:00
|
|
|
from .cover import Cover
|
|
|
|
from .invocation_info import InvocationInfo
|
|
|
|
from .track_short import TrackShort
|
|
|
|
from .icon import Icon
|
2019-06-04 22:30:33 +09:00
|
|
|
from .client import Client
|
2022-02-20 02:59:53 +09:00
|
|
|
from .client_async import ClientAsync
|
2019-06-04 22:30:33 +09:00
|
|
|
|
2019-11-10 03:11:43 +09:00
|
|
|
|
2021-02-03 21:28:10 +09:00
|
|
|
__all__ = [
|
2022-02-20 02:59:53 +09:00
|
|
|
'__copyright__',
|
|
|
|
'__license__',
|
|
|
|
'__version__',
|
2021-02-03 21:28:10 +09:00
|
|
|
'YandexMusicObject',
|
|
|
|
'Client',
|
2022-02-20 02:59:53 +09:00
|
|
|
'ClientAsync',
|
2021-02-03 21:28:10 +09:00
|
|
|
'Account',
|
|
|
|
'PassportPhone',
|
|
|
|
'InvocationInfo',
|
|
|
|
'Permissions',
|
|
|
|
'Plus',
|
|
|
|
'Subscription',
|
|
|
|
'Status',
|
|
|
|
'Price',
|
|
|
|
'Product',
|
|
|
|
'AutoRenewable',
|
|
|
|
'Settings',
|
|
|
|
'PermissionAlerts',
|
|
|
|
'Experiments',
|
|
|
|
'Cover',
|
|
|
|
'Ratings',
|
|
|
|
'Counts',
|
|
|
|
'Link',
|
|
|
|
'Artist',
|
|
|
|
'User',
|
|
|
|
'CaseForms',
|
|
|
|
'MadeFor',
|
|
|
|
'Label',
|
|
|
|
'Album',
|
|
|
|
'PlayCounter',
|
|
|
|
'Playlist',
|
|
|
|
'TrackShort',
|
|
|
|
'TracksList',
|
|
|
|
'Major',
|
|
|
|
'Normalization',
|
|
|
|
'TrackPosition',
|
|
|
|
'Track',
|
|
|
|
'Like',
|
|
|
|
'GeneratedPlaylist',
|
|
|
|
'TrackWithAds',
|
|
|
|
'Day',
|
|
|
|
'ArtistEvent',
|
|
|
|
'AlbumEvent',
|
|
|
|
'Feed',
|
|
|
|
'Event',
|
|
|
|
'PromoCodeStatus',
|
|
|
|
'DownloadInfo',
|
|
|
|
'Video',
|
|
|
|
'SearchResult',
|
|
|
|
'Best',
|
|
|
|
'Search',
|
|
|
|
'Suggestions',
|
|
|
|
'MixLink',
|
|
|
|
'BlockEntity',
|
|
|
|
'Block',
|
|
|
|
'PlayContextsData',
|
|
|
|
'TrackId',
|
|
|
|
'TrackShortOld',
|
|
|
|
'PersonalPlaylistsData',
|
|
|
|
'Promotion',
|
|
|
|
'Landing',
|
|
|
|
'Chart',
|
|
|
|
'ChartItem',
|
|
|
|
'PlayContext',
|
|
|
|
'Title',
|
|
|
|
'Genre',
|
|
|
|
'Icon',
|
|
|
|
'Images',
|
|
|
|
'Id',
|
|
|
|
'Station',
|
|
|
|
'Dashboard',
|
|
|
|
'RotorSettings',
|
|
|
|
'AdParams',
|
|
|
|
'Restrictions',
|
|
|
|
'Value',
|
|
|
|
'Enum',
|
|
|
|
'DiscreteScale',
|
|
|
|
'StationResult',
|
|
|
|
'Sequence',
|
|
|
|
'StationTracksResult',
|
|
|
|
'BriefInfo',
|
|
|
|
'Description',
|
|
|
|
'PlaylistId',
|
|
|
|
'Vinyl',
|
|
|
|
'Supplement',
|
|
|
|
'Lyrics',
|
|
|
|
'VideoSupplement',
|
|
|
|
'ArtistTracks',
|
|
|
|
'Pager',
|
|
|
|
'ArtistAlbums',
|
|
|
|
'PlaylistAbsence',
|
|
|
|
'Shot',
|
|
|
|
'ShotEvent',
|
|
|
|
'ShotType',
|
|
|
|
'ShotData',
|
|
|
|
'SimilarTracks',
|
|
|
|
'UserSettings',
|
|
|
|
'RenewableRemainder',
|
|
|
|
'ChartInfo',
|
|
|
|
'ChartInfoMenu',
|
|
|
|
'ChartInfoMenuItem',
|
|
|
|
'Tag',
|
|
|
|
'TagResult',
|
|
|
|
'PlaylistRecommendations',
|
|
|
|
'LandingList',
|
|
|
|
'MetaData',
|
|
|
|
'LicenceTextPart',
|
|
|
|
'StationData',
|
|
|
|
'AlertButton',
|
|
|
|
'Alert',
|
|
|
|
'NonAutoRenewable',
|
|
|
|
'PoetryLoverMatch',
|
|
|
|
'Operator',
|
|
|
|
'Deactivation',
|
|
|
|
'Contest',
|
|
|
|
'OpenGraphData',
|
|
|
|
'Brand',
|
|
|
|
'Context',
|
|
|
|
'Queue',
|
|
|
|
'QueueItem',
|
|
|
|
'Deprecation',
|
|
|
|
]
|