Feature: add get_playlist_suggestions
get_playlist: added suggestions_token add_playlist_items: made videoIds parameter optional
This commit is contained in:
parent
b76eea3738
commit
81afbe118c
4 changed files with 62 additions and 25 deletions
|
|
@ -36,3 +36,4 @@ FEEDBACK_TOKEN = ['feedbackEndpoint', 'feedbackToken']
|
|||
BADGE_LABEL = [
|
||||
'badges', 0, 'musicInlineBadgeRenderer', 'accessibilityData', 'accessibilityData', 'label'
|
||||
]
|
||||
RELOAD_CONTINUATION = ['continuations', 0, 'reloadContinuationData', 'continuation']
|
||||
|
|
|
|||
|
|
@ -100,6 +100,10 @@ def get_parsed_continuation_items(response, parse_func, continuation_type):
|
|||
def get_continuation_params(results, ctoken_path):
|
||||
ctoken = nav(results,
|
||||
['continuations', 0, 'next' + ctoken_path + 'ContinuationData', 'continuation'])
|
||||
return get_continuation_string(ctoken)
|
||||
|
||||
|
||||
def get_continuation_string(ctoken):
|
||||
return "&ctoken=" + ctoken + "&continuation=" + ctoken
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue