mirror of
https://git.lecygnenoir.info/LecygneNoir/prismedia.git
synced 2025-10-04 09:59:16 +02:00
fix max lenght for playlist name in Peertube
This commit is contained in:
parent
745548abba
commit
81a183dd72
1 changed files with 4 additions and 1 deletions
|
@ -64,7 +64,10 @@ def get_playlist_by_name(user_info, options):
|
||||||
def create_playlist(oauth, url, options):
|
def create_playlist(oauth, url, options):
|
||||||
template = ('Peertube: Playlist %s does not exist, creating it.')
|
template = ('Peertube: Playlist %s does not exist, creating it.')
|
||||||
logging.info(template % (str(options.get('--playlist'))))
|
logging.info(template % (str(options.get('--playlist'))))
|
||||||
data = '{"name":"' + utils.cleanString(str(options.get('--playlist'))) +'", \
|
playlist_name = utils.cleanString(str(options.get('--playlist')))
|
||||||
|
# Peertube allows 20 chars max for playlist name
|
||||||
|
playlist_name = playlist_name[:19]
|
||||||
|
data = '{"name":"' + playlist_name +'", \
|
||||||
"displayName":"' + str(options.get('--playlist')) +'", \
|
"displayName":"' + str(options.get('--playlist')) +'", \
|
||||||
"description":null}'
|
"description":null}'
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue