Fix inline documentation
This commit is contained in:
parent
35993366f3
commit
35ac1304d0
1 changed files with 58 additions and 54 deletions
|
|
@ -172,55 +172,59 @@ class YTMusic:
|
||||||
pass browseId and params to :py:func:`get_artist_albums`.
|
pass browseId and params to :py:func:`get_artist_albums`.
|
||||||
|
|
||||||
:param channelId: channel id of the artist
|
:param channelId: channel id of the artist
|
||||||
:return: Dictionary with requested information. Example::
|
:return: Dictionary with requested information.
|
||||||
|
|
||||||
{
|
Example::
|
||||||
"name": "Oasis",
|
|
||||||
"description": "Oasis were ...",
|
{
|
||||||
"views": "1,838,795,605",
|
"name": "Oasis",
|
||||||
"songs": {
|
"description": "Oasis were ...",
|
||||||
"browseId": "VLPLMpM3Z0118S42R1npOhcjoakLIv1aqnS1",
|
"views": "1,838,795,605",
|
||||||
"results": [
|
"songs": {
|
||||||
{
|
"browseId": "VLPLMpM3Z0118S42R1npOhcjoakLIv1aqnS1",
|
||||||
"videoId": "ZrOKjDZOtkA",
|
"results": [
|
||||||
"title": "Wonderwall (Remastered)",
|
{
|
||||||
"artist": "Oasis",
|
"videoId": "ZrOKjDZOtkA",
|
||||||
"album": "(What's The Story) Morning Glory? (Remastered)"
|
"title": "Wonderwall (Remastered)",
|
||||||
}
|
"artist": "Oasis",
|
||||||
]
|
"album": "(What's The Story) Morning Glory? (Remastered)"
|
||||||
},
|
}
|
||||||
"albums": {
|
]
|
||||||
"results": [
|
},
|
||||||
{
|
"albums": {
|
||||||
"title": "Familiar To Millions",
|
"results": [
|
||||||
"year": "2018",
|
{
|
||||||
"browseId": "MPREb_AYetWMZunqA"
|
"title": "Familiar To Millions",
|
||||||
}
|
"year": "2018",
|
||||||
],
|
"browseId": "MPREb_AYetWMZunqA"
|
||||||
"browseId": "UCmMUZbaYdNH0bEd1PAlAqsA"
|
}
|
||||||
},
|
],
|
||||||
"singles": {
|
"browseId": "UCmMUZbaYdNH0bEd1PAlAqsA",
|
||||||
"results": [
|
"params": "6gPTAUNwc0JDbndLYlFBQV..."
|
||||||
{
|
},
|
||||||
"title": "Stand By Me (Mustique Demo)",
|
"singles": {
|
||||||
"year": "2016",
|
"results": [
|
||||||
"browseId": "MPREb_7MPKLhibN5G"
|
{
|
||||||
}
|
"title": "Stand By Me (Mustique Demo)",
|
||||||
],
|
"year": "2016",
|
||||||
"browseId": "UCmMUZbaYdNH0bEd1PAlAqsA"
|
"browseId": "MPREb_7MPKLhibN5G"
|
||||||
},
|
}
|
||||||
"videos": {
|
],
|
||||||
"results": [
|
"browseId": "UCmMUZbaYdNH0bEd1PAlAqsA",
|
||||||
{
|
"params": "6gPTAUNwc0JDbndLYlFBQV..."
|
||||||
"title": "Wonderwall",
|
},
|
||||||
"views": "358M",
|
"videos": {
|
||||||
"videoId": "bx1Bh8ZvH84",
|
"results": [
|
||||||
"playlistId": "PLMpM3Z0118S5xuNckw1HUcj1D021AnMEB"
|
{
|
||||||
}
|
"title": "Wonderwall",
|
||||||
],
|
"views": "358M",
|
||||||
"browseId": "VLPLMpM3Z0118S5xuNckw1HUcj1D021AnMEB"
|
"videoId": "bx1Bh8ZvH84",
|
||||||
|
"playlistId": "PLMpM3Z0118S5xuNckw1HUcj1D021AnMEB"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"browseId": "VLPLMpM3Z0118S5xuNckw1HUcj1D021AnMEB"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
"""
|
"""
|
||||||
body = prepare_browse_endpoint("ARTIST", channelId)
|
body = prepare_browse_endpoint("ARTIST", channelId)
|
||||||
|
|
@ -274,13 +278,13 @@ class YTMusic:
|
||||||
|
|
||||||
Example::
|
Example::
|
||||||
|
|
||||||
{
|
{
|
||||||
"browseId": "MPREb_0rtvKhqeCY0",
|
"browseId": "MPREb_0rtvKhqeCY0",
|
||||||
"artist": "Armin van Buuren",
|
"artist": "Armin van Buuren",
|
||||||
"title": "This I Vow (feat. Mila Josef)",
|
"title": "This I Vow (feat. Mila Josef)",
|
||||||
"type": "EP",
|
"type": "EP",
|
||||||
"year": "2020"
|
"year": "2020"
|
||||||
}
|
}
|
||||||
|
|
||||||
"""
|
"""
|
||||||
body = {"browseId": channelId, "params": params}
|
body = {"browseId": channelId, "params": params}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue