mirror of
https://git.lecygnenoir.info/LecygneNoir/prismedia.git
synced 2025-10-03 01:19:15 +02:00
Fix peertube pagination index for playlsit, as index begins at 0, not 1, shame on me! 😳
This commit is contained in:
parent
4956a19d0e
commit
6d15ad18ca
4 changed files with 8 additions and 3 deletions
|
@ -1,5 +1,10 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## v0.10.3
|
||||||
|
|
||||||
|
### Fix
|
||||||
|
- Fix the pagination for Peertube playlist, as index begins at 0, not 1
|
||||||
|
|
||||||
## v0.10.2
|
## v0.10.2
|
||||||
|
|
||||||
### Fixes
|
### Fixes
|
||||||
|
|
|
@ -109,7 +109,7 @@ def get_default_playlist(user_info):
|
||||||
|
|
||||||
|
|
||||||
def get_playlist_by_name(oauth, url, username, options):
|
def get_playlist_by_name(oauth, url, username, options):
|
||||||
start = 1
|
start = 0
|
||||||
user_playlists = json.loads(oauth.get(
|
user_playlists = json.loads(oauth.get(
|
||||||
url+"/api/v1/accounts/"+username+"/video-playlists?start="+str(start)+"&count=100").content)
|
url+"/api/v1/accounts/"+username+"/video-playlists?start="+str(start)+"&count=100").content)
|
||||||
total = user_playlists["total"]
|
total = user_playlists["total"]
|
||||||
|
|
|
@ -130,7 +130,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.10.2"
|
VERSION = "prismedia v0.10.3"
|
||||||
|
|
||||||
VALID_PRIVACY_STATUSES = ('public', 'private', 'unlisted')
|
VALID_PRIVACY_STATUSES = ('public', 'private', 'unlisted')
|
||||||
VALID_CATEGORIES = (
|
VALID_CATEGORIES = (
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "prismedia"
|
name = "prismedia"
|
||||||
version = "0.10.2"
|
version = "0.10.3"
|
||||||
description = "scripting your way to upload videos on peertube and youtube"
|
description = "scripting your way to upload videos on peertube and youtube"
|
||||||
authors = [
|
authors = [
|
||||||
"LecygneNoir <git@lecygnenoir.info>",
|
"LecygneNoir <git@lecygnenoir.info>",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue