added description overwrite and suffix support

This commit is contained in:
aj 2019-08-19 00:52:02 +01:00
parent 42e0a8c22c
commit 54258d7126

View File

@ -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})')