From e53a497080043d378eba9904a4bd03a9eca2bb4f Mon Sep 17 00:00:00 2001 From: Owen Griffiths Date: Mon, 2 Jan 2023 15:35:14 +0000 Subject: [PATCH] Readied for 1.1 release --- README.md | 2 -- pyproject.toml | 8 ++++---- yark.py | 4 ++-- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 37fa4ba..5c07423 100644 --- a/README.md +++ b/README.md @@ -15,8 +15,6 @@ Yark lets you continuously archive all videos and metadata of a channel. You can ## Installation -Currently, it's reccomended to clone this repository and run [`poetry install`](https://python-poetry.org/docs/) then `poetry run yark.py [options]` to run yark; this is because there's a temporary issue getting the archive viewer working inside of pip modules. - To install Yark, simply download Python 3.9+ and run the following: ```shell diff --git a/pyproject.toml b/pyproject.toml index e3708fc..4cf5008 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "yark" -version = "1.0.4" +version = "1.1.0" description = "YouTube archiving made simple." authors = ["Owen Griffiths "] license = "MIT" @@ -22,10 +22,10 @@ requests = "^2.28.1" colorama = "^0.4.5" yt-dlp = "^2022.11.11" -[tool.poetry.dev-dependencies] - [tool.poetry.scripts] -yark = "yark:main" +yark = "yark:run" + +[tool.poetry.dev-dependencies] [build-system] requires = ["poetry-core>=1.0.0"] diff --git a/yark.py b/yark.py index 6aecfa4..47d198a 100644 --- a/yark.py +++ b/yark.py @@ -1280,7 +1280,7 @@ def _jinja2_filter_timestamp(timestamp, fmt=None): # -def main(): +def run(): """Command-line-interface launcher""" # Help message HELP = f"yark [options]\n\n YouTube archiving made simple.\n\nOptions:\n new [name] [url] Creates new archive with name and channel url\n refresh [name] [args?] Refreshes/downloads archive with optional config\n view [name?] Launches offiline archive viewer website\n\nExample:\n $ yark new owez https://www.youtube.com/channel/UCSMdm6bUYIBN0KfS2CVuEPA\n $ yark refresh owez\n $ yark view owez" @@ -1435,4 +1435,4 @@ def launch(): if __name__ == "__main__": - main() + run()