Browse Source

Merge branch 'hotfix/v0.6.1' into develop

feature/pt-playlist-1.3
LecygneNoir 5 years ago
parent
commit
8c0f1fd038
3 changed files with 12 additions and 1 deletions
  1. +6
    -0
      CHANGELOG.md
  2. +5
    -0
      lib/pt_upload.py
  3. +1
    -1
      prismedia_upload.py

+ 6
- 0
CHANGELOG.md View File

@ -1,5 +1,11 @@
# 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
### Compatibility ###

+ 5
- 0
lib/pt_upload.py View File

@ -88,6 +88,11 @@ def create_playlist(oauth, url, options):
jresponse = response.json()
jresponse = jresponse['videoChannel']
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:
logging.error(('Peertube: The upload failed with an unexpected response: '
'%s') % response)

+ 1
- 1
prismedia_upload.py View File

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

Loading…
Cancel
Save