From ff73e58427bf717354882e57db12b58707abccc0 Mon Sep 17 00:00:00 2001 From: Luke Date: Sat, 19 Sep 2020 16:16:58 +0200 Subject: [PATCH 1/7] Create setup.py --- setup.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 setup.py diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..c617162 --- /dev/null +++ b/setup.py @@ -0,0 +1,21 @@ +import setuptools + +with open("README.md", "r") as fh: + long_description = fh.read() + +setuptools.setup( + name="streamtape-api-python-scaldings", + version="1.0", + author="scaldings", + author_email="lukedahlia@gmail.com", + description=A Streamtape API written in Python", + long_description=long_description, + long_description_content_type="text/markdown", + url="https://github.com/scaldings/streamtape-api-python", + packages=setuptools.find_packages(), + classifiers=[ + "Programming Language :: Python :: 3", + "Operating System :: OS Independent", + ], + python_requires='>=3.6', +) From 45d0c7df478f900763b7ae852915c639f2002bb9 Mon Sep 17 00:00:00 2001 From: Luke Date: Sat, 19 Sep 2020 16:18:48 +0200 Subject: [PATCH 2/7] Update README.md --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index d119c2f..d0a1a77 100644 --- a/README.md +++ b/README.md @@ -7,3 +7,15 @@ You can get those at from https://streamtape.com/accpanel#accsettings ## Documentation You can find the whole documentation here: https://streamtape.com/api + +## Installation +1. Clone this repository to a folder. +``` +git clone https://github.com/scaldings/streamtape-api-python.git my_folder +``` +2. Install it manually +``` +cd my_folder +python setup.py build +python setup.py install +``` From 8d6c7626e7b52404d3cf5525ae6dcc349f4562fa Mon Sep 17 00:00:00 2001 From: Luke Date: Sat, 19 Sep 2020 16:19:12 +0200 Subject: [PATCH 3/7] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d0a1a77..e7ca5a5 100644 --- a/README.md +++ b/README.md @@ -9,11 +9,11 @@ You can get those at from https://streamtape.com/accpanel#accsettings You can find the whole documentation here: https://streamtape.com/api ## Installation -1. Clone this repository to a folder. +**1. Clone this repository to a folder** ``` git clone https://github.com/scaldings/streamtape-api-python.git my_folder ``` -2. Install it manually +**2. Install it manually** ``` cd my_folder python setup.py build From adc41a3c0eff4f5d468f5a332c944d0d8c5f5c0a Mon Sep 17 00:00:00 2001 From: Luke Date: Sat, 19 Sep 2020 16:20:39 +0200 Subject: [PATCH 4/7] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e7ca5a5..7dc018b 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ You can find the whole documentation here: https://streamtape.com/api ``` git clone https://github.com/scaldings/streamtape-api-python.git my_folder ``` -**2. Install it manually** +**2. Navigate to the folder and install it manually** ``` cd my_folder python setup.py build From ee991b99ae4dbb8937256678e8bd35fda165703c Mon Sep 17 00:00:00 2001 From: Luke Date: Sat, 19 Sep 2020 16:21:10 +0200 Subject: [PATCH 5/7] Update setup.py --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index c617162..7bb2e75 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ version="1.0", author="scaldings", author_email="lukedahlia@gmail.com", - description=A Streamtape API written in Python", + description="A Streamtape API written in Python", long_description=long_description, long_description_content_type="text/markdown", url="https://github.com/scaldings/streamtape-api-python", From 53819aba2fbb847031a373a87cb241c401533a93 Mon Sep 17 00:00:00 2001 From: Luke Date: Tue, 13 Oct 2020 14:52:21 +0200 Subject: [PATCH 6/7] Update streamtape-api.py --- streamtape-api.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/streamtape-api.py b/streamtape-api.py index 94764f8..6710071 100644 --- a/streamtape-api.py +++ b/streamtape-api.py @@ -66,13 +66,13 @@ def check_remote_upload_status(login, key, upload_id): # File / folder management -def folder_contnent(login, key): +def folder_content(login, key): url = f'https://api.streamtape.com/file/listfolder?login={login}&key={key}' data = requests.get(url).json() return data -def subfolder_conent(login, key, folder_id): +def subfolder_content(login, key, folder_id): url = f'https://api.streamtape.com/file/listfolder?login={login}&key={key}&loder={folder_id}' data = requests.get(url).json() return data @@ -132,4 +132,4 @@ def failed_conversions(login, key): def get_thumbnail(login, key, file_id): url = f'https://api.streamtape.com/file/getsplash?login={login}&key={key}&file={file_id}' data = requests.get(url).json() - return data \ No newline at end of file + return data From 9369925bf5142cd913ee01d9a5f3a824761b5892 Mon Sep 17 00:00:00 2001 From: TheGeeKing <58857539+TheGeeKing@users.noreply.github.com> Date: Wed, 19 Jan 2022 23:31:46 +0100 Subject: [PATCH 7/7] Fix typo issue MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix: - `loder` → `folder` --- streamtape-api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/streamtape-api.py b/streamtape-api.py index 6710071..f1740fc 100644 --- a/streamtape-api.py +++ b/streamtape-api.py @@ -73,7 +73,7 @@ def folder_content(login, key): def subfolder_content(login, key, folder_id): - url = f'https://api.streamtape.com/file/listfolder?login={login}&key={key}&loder={folder_id}' + url = f'https://api.streamtape.com/file/listfolder?login={login}&key={key}&folder={folder_id}' data = requests.get(url).json() return data