Browse Source

fix max lenght for playlist name in Peertube

feature/pt-playlist-1.3
LecygneNoir 5 years ago
parent
commit
81a183dd72
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      lib/pt_upload.py

+ 4
- 1
lib/pt_upload.py View File

@ -64,7 +64,10 @@ def get_playlist_by_name(user_info, options):
def create_playlist(oauth, url, options):
template = ('Peertube: Playlist %s does not exist, creating it.')
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')) +'", \
"description":null}'

Loading…
Cancel
Save