Browse Source

Fix peertube pagination index for playlsit, as index begins at 0, not 1, shame on me! 😳

master
LecygneNoir 3 years ago
parent
commit
6d15ad18ca
4 changed files with 8 additions and 3 deletions
  1. +5
    -0
      CHANGELOG.md
  2. +1
    -1
      prismedia/pt_upload.py
  3. +1
    -1
      prismedia/upload.py
  4. +1
    -1
      pyproject.toml

+ 5
- 0
CHANGELOG.md View File

@ -1,5 +1,10 @@
# Changelog
## v0.10.3
### Fix
- Fix the pagination for Peertube playlist, as index begins at 0, not 1
## v0.10.2
### Fixes

+ 1
- 1
prismedia/pt_upload.py View File

@ -109,7 +109,7 @@ def get_default_playlist(user_info):
def get_playlist_by_name(oauth, url, username, options):
start = 1
start = 0
user_playlists = json.loads(oauth.get(
url+"/api/v1/accounts/"+username+"/video-playlists?start="+str(start)+"&count=100").content)
total = user_playlists["total"]

+ 1
- 1
prismedia/upload.py View File

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

+ 1
- 1
pyproject.toml View File

@ -1,6 +1,6 @@
[tool.poetry]
name = "prismedia"
version = "0.10.2"
version = "0.10.3"
description = "scripting your way to upload videos on peertube and youtube"
authors = [
"LecygneNoir <git@lecygnenoir.info>",

Loading…
Cancel
Save