From 35770389b1c6b2790d44f0531ffdf95864bf10a3 Mon Sep 17 00:00:00 2001 From: Gianluca Lauro <52338215+gianlucalauro@users.noreply.github.com> Date: Mon, 10 Mar 2025 14:12:38 +0100 Subject: [PATCH] Fix GET_ONLY_LINK (#283) * fixed GET_ONLY_LINK in HLS_Downloader * added IDEs to .gitignore --- .gitignore | 4 ++++ StreamingCommunity/Lib/Downloader/HLS/downloader.py | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index d04f503..4f12a50 100644 --- a/.gitignore +++ b/.gitignore @@ -41,6 +41,10 @@ ENV/ env.bak/ venv.bak/ +# IDEs +.idea +.vscode + # Other Video note.txt diff --git a/StreamingCommunity/Lib/Downloader/HLS/downloader.py b/StreamingCommunity/Lib/Downloader/HLS/downloader.py index 9f5b272..a6ed152 100644 --- a/StreamingCommunity/Lib/Downloader/HLS/downloader.py +++ b/StreamingCommunity/Lib/Downloader/HLS/downloader.py @@ -438,13 +438,13 @@ class HLS_Downloader: return response if GET_ONLY_LINK: - console.print(f"URL: {self.m3u8_url}[/bold red]") + console.print(f"URL: [bold red]{self.m3u8_url}[/bold red]") return { 'path': None, 'url': self.m3u8_url, 'is_master': getattr(self.m3u8_manager, 'is_master', None), 'msg': None, - 'error': error_msg, + 'error': None, 'stopped': True }