#13 Update doc and more to help new users

Merged
LecygneNoir merged 4 commits from Zykino/prismedia:fixFirstSetup into develop 5 years ago
  1. +2
    -1
      README.md
  2. +2
    -1
      lib/pt_upload.py
  3. +1
    -1
      lib/yt_upload.py
  4. +1
    -1
      peertube_secret.sample
  5. +1
    -1
      prismedia_upload.py

+ 2
- 1
README.md View File

@ -1,6 +1,6 @@
# Prismedia
A scripting way to upload videos to peertube and youtube
A scripting way to upload videos to peertube and youtube written in python2
## Dependencies
Search in your package manager, otherwise use ``pip install --upgrade``
@ -11,6 +11,7 @@ Search in your package manager, otherwise use ``pip install --upgrade``
- docopt
- schema
- python-magic
- python-magic-bin
- requests-toolbelt
- tzlocal

+ 2
- 1
lib/pt_upload.py View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python2
# coding: utf-8
import os
@ -138,6 +138,7 @@ def upload_video(oauth, secret, options):
else:
logging.error(('Peertube: The upload failed with an unexpected response: '
'%s') % response)
print(response.json())
exit(1)

+ 1
- 1
lib/yt_upload.py View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python2
# coding: utf-8
# From Youtube samples : https://raw.githubusercontent.com/youtube/api-samples/master/python/upload_video.py # noqa

+ 1
- 1
peertube_secret.sample View File

@ -1,5 +1,5 @@
# This information is obtained upon registration/once logged in a new PeerTube
# on url+'/oauth-clients/local'
# on url+'/api/v1/oauth-clients/local'
# ex: http://domain.example/api/v1/oauth-clients/local
# Warn, no quote " inside this file
[peertube]

+ 1
- 1
prismedia_upload.py View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python2
# coding: utf-8
"""

Loading…
Cancel
Save