From a1dde783f01cce5bb71a62ec1eda875bc77f7044 Mon Sep 17 00:00:00 2001 From: Lovi <62809003+Arrowar@users.noreply.github.com> Date: Tue, 17 Jun 2025 10:02:37 +0200 Subject: [PATCH] Update readme --- README.md | 78 +++++++++----------------- StreamingCommunity/Util/config_json.py | 2 +- Test/Download/HLS.py | 12 ---- Test/Download/MP4.py | 11 ---- Test/EasyDownload/HLS.py | 27 +++++++++ Test/EasyDownload/MP4.py | 27 +++++++++ 6 files changed, 83 insertions(+), 74 deletions(-) create mode 100644 Test/EasyDownload/HLS.py create mode 100644 Test/EasyDownload/MP4.py diff --git a/README.md b/README.md index 5b5bab6..2ddceeb 100644 --- a/README.md +++ b/README.md @@ -1,33 +1,29 @@ -

- Project Logo -

+
-

- - PyPI - - - Donate - - - Commits - - - Last Commit - -

+## 📊 Project Status & Info -

- - License - - - PyPI Downloads - - - Lines of Code - -

+[![PyPI Version](https://img.shields.io/pypi/v/streamingcommunity?logo=pypi&logoColor=white&labelColor=2d3748&color=3182ce&style=for-the-badge)](https://pypi.org/project/streamingcommunity) +[![Downloads](https://img.shields.io/pypi/dm/streamingcommunity?logo=pypi&logoColor=white&labelColor=2d3748&color=38a169&style=for-the-badge)](https://pypi.org/project/streamingcommunity) +[![License](https://img.shields.io/github/license/Arrowar/StreamingCommunity?logo=gnu&logoColor=white&labelColor=2d3748&color=e53e3e&style=for-the-badge)](https://github.com/Arrowar/StreamingCommunity/blob/main/LICENSE) + +[![Code Lines](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/Arrowar/StreamingCommunity/main/.github/.domain/loc-badge.json&style=for-the-badge&labelColor=2d3748)](https://github.com/Arrowar/StreamingCommunity) +[![Last Commit](https://img.shields.io/github/last-commit/Arrowar/StreamingCommunity?logo=git&logoColor=white&labelColor=2d3748&color=805ad5&style=for-the-badge)](https://github.com/Arrowar/StreamingCommunity/commits) +[![Issues](https://img.shields.io/github/issues/Arrowar/StreamingCommunity?logo=github&logoColor=white&labelColor=2d3748&color=ed8936&style=for-the-badge)](https://github.com/Arrowar/StreamingCommunity/issues) + +## 💝 Support the Project + +[![Donate PayPal](https://img.shields.io/badge/💳_Donate-PayPal-00457C?style=for-the-badge&logo=paypal&logoColor=white&labelColor=2d3748)](https://www.paypal.com/donate/?hosted_button_id=UXTWMT8P6HE2C) +## 🚀 Download & Install + +[![Windows](https://img.shields.io/badge/🪟_Windows-0078D4?style=for-the-badge&logo=windows&logoColor=white&labelColor=2d3748)](https://github.com/Arrowar/StreamingCommunity/releases/latest/download/StreamingCommunity_win.exe) +[![macOS](https://img.shields.io/badge/🍎_macOS-000000?style=for-the-badge&logo=apple&logoColor=white&labelColor=2d3748)](https://github.com/Arrowar/StreamingCommunity/releases/latest/download/StreamingCommunity_mac) +[![Linux latest](https://img.shields.io/badge/🐧_Linux_latest-FCC624?style=for-the-badge&logo=linux&logoColor=black&labelColor=2d3748)](https://github.com/Arrowar/StreamingCommunity/releases/latest/download/StreamingCommunity_linux_latest) +[![Linux 22.04](https://img.shields.io/badge/🐧_Linux_22.04-FCC624?style=for-the-badge&logo=linux&logoColor=black&labelColor=2d3748)](https://github.com/Arrowar/StreamingCommunity/releases/latest/download/StreamingCommunity_linux_previous) +--- + +*⚡ **Quick Start:** `pip install streamingcommunity` or download the executable for your platform above* + +
# 📋 Table of Contents @@ -76,24 +72,6 @@ # Installation -

- - Windows - - - macOS - - - Linux - - - Linux Previous - - - All Versions - -

- ## 1. PyPI Installation Install directly from PyPI: @@ -798,10 +776,10 @@ python3 telegram_bot.py # Tutorials -- [Windows Tutorial](https://www.youtube.com/watch?v=mZGqK4wdN-k) -- [Linux Tutorial](https://www.youtube.com/watch?v=0qUNXPE_mTg) -- [Pypy Tutorial](https://www.youtube.com/watch?v=C6m9ZKOK0p4) -- [Compiled .exe Tutorial](https://www.youtube.com/watch?v=pm4lqsxkTVo) +- [Windows](https://www.youtube.com/watch?v=mZGqK4wdN-k) +- [Linux](https://www.youtube.com/watch?v=0qUNXPE_mTg) +- [Pypy](https://www.youtube.com/watch?v=C6m9ZKOK0p4) +- [Compiled](https://www.youtube.com/watch?v=pm4lqsxkTVo) # To Do diff --git a/StreamingCommunity/Util/config_json.py b/StreamingCommunity/Util/config_json.py index 62f68a4..28a107d 100644 --- a/StreamingCommunity/Util/config_json.py +++ b/StreamingCommunity/Util/config_json.py @@ -275,7 +275,7 @@ class ConfigManager: } try: - console.print(f"[bold cyan]Retrieving site data from GitHub:[/bold cyan] [green]{domains_github_url}[/green]") + console.print(f"[bold cyan]Retrieving site data from GitHub:[/bold cyan]") response = requests.get(domains_github_url, timeout=8, headers=headers) if response.ok: diff --git a/Test/Download/HLS.py b/Test/Download/HLS.py index e5629fc..fc820e3 100644 --- a/Test/Download/HLS.py +++ b/Test/Download/HLS.py @@ -11,28 +11,16 @@ sys.path.append(src_path) # Import -from StreamingCommunity.Util.message import start_message from StreamingCommunity.Util.os import os_summary os_summary.get_system_summary() from StreamingCommunity.Util.logger import Logger from StreamingCommunity.Lib.Downloader import HLS_Downloader -"""start_message() -logger = Logger() -result = HLS_Downloader( - output_path=".\\Video\\test.mp4", - m3u8_url="https://acdn.ak-stream-videoplatform.sky.it/hls/2024/11/21/968275/master.m3u8" -).start() - -thereIsError = result['error'] is not None -print(thereIsError)""" - class TestHLSDownloader(unittest.TestCase): def setUp(self): os_summary.get_system_summary() - start_message() self.logger = Logger() def test_hls_download(self): diff --git a/Test/Download/MP4.py b/Test/Download/MP4.py index 3cf437c..ead1109 100644 --- a/Test/Download/MP4.py +++ b/Test/Download/MP4.py @@ -11,27 +11,16 @@ sys.path.append(src_path) # Import -from StreamingCommunity.Util.message import start_message from StreamingCommunity.Util.os import os_summary os_summary.get_system_summary() from StreamingCommunity.Util.logger import Logger from StreamingCommunity.Lib.Downloader import MP4_downloader -"""start_message() -logger = Logger() -path, kill_handler = MP4_downloader( - url="https://148-251-75-109.top/Getintopc.com/IDA_Pro_2020.mp4", - path=r".\\Video\\undefined.mp4" -) - -thereIsError = path is None -print(thereIsError)""" class TestMP4Downloader(unittest.TestCase): def setUp(self): os_summary.get_system_summary() - start_message() self.logger = Logger() def test_mp4_download(self): diff --git a/Test/EasyDownload/HLS.py b/Test/EasyDownload/HLS.py new file mode 100644 index 0000000..d6a2ff6 --- /dev/null +++ b/Test/EasyDownload/HLS.py @@ -0,0 +1,27 @@ +# 23.06.24 + +# Fix import +import sys +import os +src_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..')) +sys.path.append(src_path) + + + +# Import +from StreamingCommunity.Util.message import start_message +from StreamingCommunity.Util.os import os_summary +os_summary.get_system_summary() +from StreamingCommunity.Util.logger import Logger +from StreamingCommunity.Lib.Downloader import HLS_Downloader + + +start_message() +logger = Logger() +result = HLS_Downloader( + output_path=".\\Video\\test.mp4", + m3u8_url="https://acdn.ak-stream-videoplatform.sky.it/hls/2024/11/21/968275/master.m3u8" +).start() + +thereIsError = result['error'] is not None +print(thereIsError) \ No newline at end of file diff --git a/Test/EasyDownload/MP4.py b/Test/EasyDownload/MP4.py new file mode 100644 index 0000000..3955cb2 --- /dev/null +++ b/Test/EasyDownload/MP4.py @@ -0,0 +1,27 @@ +# 23.06.24 + +# Fix import +import sys +import os +src_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..')) +sys.path.append(src_path) + + + +# Import +from StreamingCommunity.Util.message import start_message +from StreamingCommunity.Util.os import os_summary +os_summary.get_system_summary() +from StreamingCommunity.Util.logger import Logger +from StreamingCommunity.Lib.Downloader import MP4_downloader + + +start_message() +logger = Logger() +path, kill_handler = MP4_downloader( + url="https://148-251-75-109.top/Getintopc.com/IDA_Pro_2020.mp4", + path=r".\\Video\\undefined.mp4" +) + +thereIsError = path is None +print(thereIsError) \ No newline at end of file