diff --git a/README.md b/README.md
index 90e492a..361cee1 100644
--- a/README.md
+++ b/README.md
@@ -21,6 +21,9 @@
Install pybalt using PowerShell on Windows
Downloads [install.bat](./install.bat) and executes it.
+
+Powershell should be run as administrator, otherwise aliases (`cobalt`, `pybalt`) in terminal will not work.
+
```powershell
powershell -Command "Invoke-WebRequest -Uri https://raw.githubusercontent.com/nichind/pybalt/main/install.bat -OutFile install.bat; .\install.bat"
```
diff --git a/install.bat b/install.bat
index f674808..149f07f 100644
--- a/install.bat
+++ b/install.bat
@@ -14,6 +14,4 @@ python -m pip install --upgrade pip
python -m pip install pybalt -U
-
-pause
-
+pause
\ No newline at end of file
diff --git a/pybalt/cobalt.py b/pybalt/cobalt.py
index e4a87bc..c55f5bd 100644
--- a/pybalt/cobalt.py
+++ b/pybalt/cobalt.py
@@ -61,7 +61,7 @@ def __init__(
- downloaded (bool): Whether the file has been downloaded.
- path (str): The path where the file is saved.
"""
- self.cobalt = cobalt
+ self.cobalt = cobalt if cobalt else Cobalt()
self.status = status
self.url = url
self.tunnel = tunnel
@@ -90,6 +90,15 @@ def __repr__(self):
return ""
+class DownloadedFile(File):
+ def __init__(self, *args, **kwargs):
+ super().__init__(*args, **kwargs)
+ self.downloaded = True
+
+ def __repr__(self):
+ return ""
+
+
class Cobalt:
def __init__(
self, api_instance: str = None, api_key: str = None, headers: dict = None
diff --git a/setup.py b/setup.py
index 8aced3b..c807fb0 100644
--- a/setup.py
+++ b/setup.py
@@ -8,10 +8,10 @@ def readme():
setup(
name="pybalt",
- version="2024.11.15",
+ version="2024.11.16",
author="nichind",
author_email="nichinddev@gmail.com",
- description="Download mediafiles from YouTube, Twitter (X), Instagram, Reddit & more. CLI wrapper and python module for @imputnet's cobalt processing instance api.",
+ description="Download mediafiles from YouTube, Twitter (X), Instagram, Reddit & more. CLI & python module for @imputnet's cobalt processing instance api.",
long_description=readme(),
long_description_content_type="text/markdown",
url="https://github.com/nichind/pybalt",
@@ -22,6 +22,7 @@ def readme():
"pytube",
"python-dotenv",
],
+ keywords=['downloader', 'cobalt', 'cobalt-cli', 'youtube', 'twitter', 'x', 'instagram', 'reddit', 'twitch', 'bilibili', 'download', 'youtube-downloader', 'twitter-downloader'],
classifiers=[
"Programming Language :: Python :: 3.11",
"License :: OSI Approved :: MIT License",