added description overwrite and suffix support
This commit is contained in:
parent
42e0a8c22c
commit
54258d7126
@ -84,7 +84,14 @@ def run_user_playlist(username, playlist_name):
|
|||||||
recommendation_limit=int(playlist_dict['recommendation_sample']))
|
recommendation_limit=int(playlist_dict['recommendation_sample']))
|
||||||
|
|
||||||
engine.execute_playlist(tracks, playlist_dict['playlist_id'])
|
engine.execute_playlist(tracks, playlist_dict['playlist_id'])
|
||||||
engine.change_description(sorted(submit_parts), playlist_dict['playlist_id'])
|
|
||||||
|
overwrite = playlist_dict.get('description_overwrite', None)
|
||||||
|
suffix = playlist_dict.get('description_suffix', None)
|
||||||
|
|
||||||
|
engine.change_description(sorted(submit_parts),
|
||||||
|
playlist_dict['playlist_id'],
|
||||||
|
overwrite=overwrite,
|
||||||
|
suffix=suffix)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
logger.critical(f'multiple/no playlists found ({username}/{playlist_name})')
|
logger.critical(f'multiple/no playlists found ({username}/{playlist_name})')
|
||||||
|
Loading…
Reference in New Issue
Block a user