diff --git a/CHANGELOG.md b/CHANGELOG.md index 14e913b..81f0d6d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/prismedia/pt_upload.py b/prismedia/pt_upload.py index 0268506..1f35e62 100644 --- a/prismedia/pt_upload.py +++ b/prismedia/pt_upload.py @@ -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"] diff --git a/prismedia/upload.py b/prismedia/upload.py index 0f49cb4..14b4133 100755 --- a/prismedia/upload.py +++ b/prismedia/upload.py @@ -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 = ( diff --git a/pyproject.toml b/pyproject.toml index aa015ba..75186f0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 ",