From 35ac1304d0ed172921c27bb4ed42f4b9f83722ac Mon Sep 17 00:00:00 2001 From: sigma67 Date: Fri, 17 Apr 2020 01:00:35 +0200 Subject: [PATCH] Fix inline documentation --- ytmusicapi/ytmusic.py | 112 ++++++++++++++++++++++-------------------- 1 file changed, 58 insertions(+), 54 deletions(-) diff --git a/ytmusicapi/ytmusic.py b/ytmusicapi/ytmusic.py index daaa059..52bf90f 100644 --- a/ytmusicapi/ytmusic.py +++ b/ytmusicapi/ytmusic.py @@ -172,55 +172,59 @@ class YTMusic: pass browseId and params to :py:func:`get_artist_albums`. :param channelId: channel id of the artist - :return: Dictionary with requested information. Example:: + :return: Dictionary with requested information. - { - "name": "Oasis", - "description": "Oasis were ...", - "views": "1,838,795,605", - "songs": { - "browseId": "VLPLMpM3Z0118S42R1npOhcjoakLIv1aqnS1", - "results": [ - { - "videoId": "ZrOKjDZOtkA", - "title": "Wonderwall (Remastered)", - "artist": "Oasis", - "album": "(What's The Story) Morning Glory? (Remastered)" - } - ] - }, - "albums": { - "results": [ - { - "title": "Familiar To Millions", - "year": "2018", - "browseId": "MPREb_AYetWMZunqA" - } - ], - "browseId": "UCmMUZbaYdNH0bEd1PAlAqsA" - }, - "singles": { - "results": [ - { - "title": "Stand By Me (Mustique Demo)", - "year": "2016", - "browseId": "MPREb_7MPKLhibN5G" - } - ], - "browseId": "UCmMUZbaYdNH0bEd1PAlAqsA" - }, - "videos": { - "results": [ - { - "title": "Wonderwall", - "views": "358M", - "videoId": "bx1Bh8ZvH84", - "playlistId": "PLMpM3Z0118S5xuNckw1HUcj1D021AnMEB" - } - ], - "browseId": "VLPLMpM3Z0118S5xuNckw1HUcj1D021AnMEB" + Example:: + + { + "name": "Oasis", + "description": "Oasis were ...", + "views": "1,838,795,605", + "songs": { + "browseId": "VLPLMpM3Z0118S42R1npOhcjoakLIv1aqnS1", + "results": [ + { + "videoId": "ZrOKjDZOtkA", + "title": "Wonderwall (Remastered)", + "artist": "Oasis", + "album": "(What's The Story) Morning Glory? (Remastered)" + } + ] + }, + "albums": { + "results": [ + { + "title": "Familiar To Millions", + "year": "2018", + "browseId": "MPREb_AYetWMZunqA" + } + ], + "browseId": "UCmMUZbaYdNH0bEd1PAlAqsA", + "params": "6gPTAUNwc0JDbndLYlFBQV..." + }, + "singles": { + "results": [ + { + "title": "Stand By Me (Mustique Demo)", + "year": "2016", + "browseId": "MPREb_7MPKLhibN5G" + } + ], + "browseId": "UCmMUZbaYdNH0bEd1PAlAqsA", + "params": "6gPTAUNwc0JDbndLYlFBQV..." + }, + "videos": { + "results": [ + { + "title": "Wonderwall", + "views": "358M", + "videoId": "bx1Bh8ZvH84", + "playlistId": "PLMpM3Z0118S5xuNckw1HUcj1D021AnMEB" + } + ], + "browseId": "VLPLMpM3Z0118S5xuNckw1HUcj1D021AnMEB" + } } - } """ body = prepare_browse_endpoint("ARTIST", channelId) @@ -274,13 +278,13 @@ class YTMusic: Example:: - { - "browseId": "MPREb_0rtvKhqeCY0", - "artist": "Armin van Buuren", - "title": "This I Vow (feat. Mila Josef)", - "type": "EP", - "year": "2020" - } + { + "browseId": "MPREb_0rtvKhqeCY0", + "artist": "Armin van Buuren", + "title": "This I Vow (feat. Mila Josef)", + "type": "EP", + "year": "2020" + } """ body = {"browseId": channelId, "params": params}