Merge branch 'hotfix/v0.6.1' into develop

This commit is contained in:
LecygneNoir 2018-10-28 09:57:37 +01:00
commit 8c0f1fd038
3 changed files with 12 additions and 1 deletions

View file

@ -1,5 +1,11 @@
# Changelog # Changelog
## v0.6.1
### Fixes
- fix an error when playlists on Peertube have same names but not same display names (issue #20)
- fix an error where videos does not upload on Peertube when some characters are used in playlist(issue #19)
## v0.6 ## v0.6
### Compatibility ### ### Compatibility ###

View file

@ -88,6 +88,11 @@ def create_playlist(oauth, url, options):
jresponse = response.json() jresponse = response.json()
jresponse = jresponse['videoChannel'] jresponse = jresponse['videoChannel']
return jresponse['id'] return jresponse['id']
if response.status_code == 409:
logging.error('Peertube: Error: It seems there is a conflict with an existing playlist, please beware '
'Peertube internal name is compiled from 20 firsts characters of playlist name.'
' Please check your playlist name an retry.')
exit(1)
else: else:
logging.error(('Peertube: The upload failed with an unexpected response: ' logging.error(('Peertube: The upload failed with an unexpected response: '
'%s') % response) '%s') % response)

View file

@ -94,7 +94,7 @@ except ImportError:
'see https://github.com/ahupp/python-magic\n') 'see https://github.com/ahupp/python-magic\n')
exit(1) exit(1)
VERSION = "prismedia v0.6" VERSION = "prismedia v0.6.1"
VALID_PRIVACY_STATUSES = ('public', 'private', 'unlisted') VALID_PRIVACY_STATUSES = ('public', 'private', 'unlisted')
VALID_CATEGORIES = ( VALID_CATEGORIES = (