Commit Graph

263 Commits

Author SHA1 Message Date
Your Name 6cc3db2ce5 Add branding screenshots for UI features
Added new screenshots for audio-only, main interface, playlist, and subtitles to the branding assets. These images can be used for documentation or promotional purposes.
2025-08-27 00:57:10 +03:00
Your Name e1b9991be3 Add Windows CI/CD workflow and documentation
Introduces a GitHub Actions workflow for building and releasing YTSage Windows installers and portable ZIPs on version tag pushes. Includes a detailed CI/CD README explaining triggers, build steps, artifact handling, release notes, and troubleshooting.
2025-08-27 00:57:00 +03:00
Your Name 82fb4e7240 Add branding icon assets
Added YTSage.ico, icon.icns, and icon.png to the assets/branding/icons directory for application branding across platforms.
2025-08-27 00:56:45 +03:00
Your Name 09b538c0bd Move yt_dlp import inside method in VideoInfoMixin
The import of yt_dlp is now performed locally within the method to prevent import errors when yt-dlp is not installed. This change improves robustness for environments where yt-dlp may be missing.
2025-08-27 00:09:07 +03:00
Your Name fa983d75a5 Replace pygame with playsound3 for audio notifications
Switched from pygame to playsound3 for playing notification sounds in the GUI. Updated requirements.txt and refactored related code to use playsound3, improving compatibility and simplifying sound playback.
2025-08-26 23:57:56 +03:00
Your Name 6ff72f296a Add yt-dlp error parser for user-friendly messages
Introduces the parse_yt_dlp_error function to convert raw yt-dlp error messages into actionable, user-friendly feedback. This improves error handling and provides clearer guidance to users encountering common download issues.
2025-08-26 19:27:59 +03:00
Your Name 47609c7017 Update default version in AboutDialog
Changed the default version displayed in the AboutDialog from '4.7.0' to '4.8.0b' to reflect the latest release.
2025-08-26 19:27:51 +03:00
Your Name eaf1786d21 Refactor and enhance custom dialogs UI and logic
Refactored custom command execution to use a worker class with signals for better threading and output handling. Improved the CustomOptionsDialog with cookie source selection (file or browser), browser selection UI, and more robust cookie path handling. Enhanced UI styling, help texts, and input validation. Removed command preview from TimeRangeDialog and streamlined dialog layouts for clarity and usability.
2025-08-26 19:27:39 +03:00
Your Name 0db890dd81 Remove unused dialog imports and exports
Deleted CookieLoginDialog and CustomCommandDialog from imports and __all__ exports in ytsage_gui_dialogs/__init__.py, likely because these dialogs are no longer needed or have been removed from the codebase.
2025-08-26 19:27:28 +03:00
Your Name ca7287ee60 Enhance QComboBox and QGroupBox styling
Improved QComboBox appearance with updated padding, border, drop-down, and arrow styles, including hover and focus effects. Added custom styling for QComboBox item views and introduced new styles for QGroupBox and its title for better UI consistency.
2025-08-26 19:27:21 +03:00
Your Name cb342eb499 Add browser cookies support to DownloadThread
Introduces a browser_cookies parameter to DownloadThread, allowing cookies to be loaded from a browser for downloads. Updates command and options construction to handle both cookie files and browser cookies, improving flexibility for authentication.
2025-08-26 19:27:14 +03:00
Your Name 99a55f66e2 Bump version to 4.8.0b
Updated the __version__ string in src/__init__.py to 4.8.0b to reflect the new release.
2025-08-26 19:27:00 +03:00
Your Name 44621a59f0 Add browser cookies support and improve error handling
Introduces support for extracting cookies from browsers in addition to cookie files, updating relevant logic and UI handling. Error handling for yt-dlp extraction is improved with user-friendly messages using a new error parser. Also updates version to 4.8.0b and refines cookie management throughout the app.
2025-08-26 19:26:49 +03:00
Your Name 7093753636 Add YT-DLP documentation URL constant
Introduces YTDLP_DOCS_URL for Windows, macOS, and Linux platforms, providing a direct link to yt-dlp usage and options documentation. Also updates the __main__ info output to include this new constant.
2025-08-26 19:26:21 +03:00
Viren Hirpara 9c13b4b61c Refactor/code cleanup (#37)
* fix imports
remove unused imports
use full import path
sort import (1. Standard Library, 2. Third-Party, 3. Local) in alphabetic.

* - remove: Method 3 from src.core.ytsage_downlader:cleanup_subtitle_file
  - it could delete the subtitle file of other movies if it present in same directory as it scane recursively.

- refactor: migrate from os.path to pathlib.Path for path handling
  - Replaced os.path methods with pathlib.Path to improve readability,
  - avoid repeatation.
  - cross-platform compatibility, and maintain cleaner code.

- improve: enhance code readability
  - Standardized string literals to use double quotes for consistency
  - Removed unnecessary spaces to maintain cleaner formatting
  - Applied code formatting for better readability and maintainability

* - add: ytsage_constants.py file for one place to store all constants.

- imporve: return type hint for function.

- remove: src/gui/ytsage_gui_dialogs.py file to avoid repetation
  - src/gui/dialogs is renamed to src/gui/ytsage_gui_dialogs for same naming convection. (future import will remains same)
  - use of src/gui/ytsage_gui_dialogs/__init__.py to import the dilogs modules.

- change: variable self.parent to self._parent so it does not overwrite the parent()
  - add type hint checking.

* - refactor: QMetaObject.invokeMethod to Signal
  - I encounter error with incokeMethod. Could not solve it.
  - So, Changed it to Signal to match app code language.

- implement: the ytsage_constants.py to code
  - remove: unnecessary logic
  - remove: repetitive code logic.

- update: yt-dlp logic for src\gui\ytsage_gui_dialogs\ytsage_dialogs_update:_update_binary
  - yt-dlp update logic will use `yt-dlp -U`

* refactor: remove unused imports and streamline code formatting across multiple files
2025-08-26 16:27:12 +03:00
Mohamed 6652d7f00f docs: add antivirus false positive warning to troubleshooting 2025-08-19 20:30:54 +03:00
Your Name 248fe30346 Remove unused HTML style block from README
Deleted a <style> block from the README.md that was not rendered on GitHub and is unnecessary for markdown documentation.
2025-08-16 15:32:48 +03:00
Your Name 609583821c Remove inline styles from README links
Cleaned up README.md by removing unnecessary inline CSS styles from navigation and download links for improved readability and markdown compatibility.
2025-08-16 15:22:04 +03:00
Your Name 9c0897e787 Add centralized logging configuration with loguru
Introduces src/core/ytsage_logging.py to provide structured logging for the YTSage application using loguru. Includes multiple output handlers for console and file logging, robust fallbacks for environments without loguru, and safe initialization to replace print statements with consistent logging.
2025-08-16 15:07:31 +03:00
Your Name 73e662148c Add SponsorBlock category selection to video info UI
Introduces a SponsorBlock section to the video info UI, allowing users to select categories via a dialog. Refactors print statements to use the logger for consistency. Updates imports and improves UI feedback for subtitle and SponsorBlock selections.
2025-08-16 15:07:26 +03:00
Your Name a352371c45 Move ytsage_gui_format_table.py to src/gui
Renamed and relocated ytsage_gui_format_table.py to src/gui/ytsage_gui_format_table.py for improved project structure and organization.
2025-08-16 15:07:16 +03:00
Your Name 1e95e643c2 Move ytsage_style.py to src/core directory
Renamed and relocated ytsage_style.py to src/core/ytsage_style.py for improved project structure and organization.
2025-08-16 15:07:09 +03:00
Your Name 1484259692 Add __init__.py for GUI dialogs package
Introduces src/gui/dialogs/__init__.py to organize and re-export dialog classes for the YTSage GUI. This file provides a structured overview of available dialogs and maintains backward compatibility by re-exporting all relevant classes.
2025-08-16 15:07:02 +03:00
Your Name b1a452ab8e Add initial docstring for gui package
Created src/gui/__init__.py with a package-level docstring describing the purpose of the GUI modules for YTSage.
2025-08-16 15:06:57 +03:00
Your Name ba03a02aa1 Refactor GUI main file and add embed chapters option
Moved ytsage_gui_main.py to src/gui/ and updated imports for new module structure. Replaced print statements with structured logging using the logger. Added 'Embed Chapters' checkbox and related state handling. SponsorBlock selection is now managed via a dialog and category list instead of a simple checkbox. Updated version to 4.7.0 and improved resource path handling for icons and sounds.
2025-08-16 15:06:51 +03:00
Your Name b5d7406a34 Move and modularize GUI dialog files
Refactored dialog-related code by splitting ytsage_gui_dialogs.py into multiple modular files under src/gui/dialogs/. Added new files for base, custom, ffmpeg, selection, and settings dialogs, improving code organization and maintainability. Removed the old monolithic ytsage_gui_dialogs.py.
2025-08-16 15:06:36 +03:00
Your Name b339a322e8 Refactor print statements to use logger in ytsage_utils
Replaced all print statements with logger calls for improved logging consistency and error handling. Updated imports to use relative paths and added logger import. This change enhances maintainability and integrates better with the application's logging system.
2025-08-16 15:06:02 +03:00
Your Name 1fcde5d6b9 Refactor and enhance yt-dlp setup dialog UI
Moved ytsage_yt_dlp.py to src/core/ and improved the YtdlpSetupDialog UI with better layout, styling, and accessibility. Replaced print statements with logger calls, added a check_ytdlp_installed() utility, and refined icon path resolution. These changes improve user experience and maintainability.
2025-08-16 15:05:51 +03:00
Your Name 0cb40f4338 Refactor and enhance FFmpeg installer module
Moved ytsage_ffmpeg.py to src/core and refactored for improved logging and error handling. Added SHA-256 verification for downloads, updated FFmpeg URLs to 7.1.1, and implemented fallback extraction methods. Introduced get_ffmpeg_path utility and replaced print statements with logger calls for better integration.
2025-08-16 15:05:27 +03:00
Your Name 8ee436aa14 Refactor downloader logging and add new options
Replaced print statements with logger calls for improved logging. Added support for sponsorblock categories and chapter embedding. Updated imports to use relative paths and improved command building logic for yt-dlp.
2025-08-16 15:05:15 +03:00
Your Name 4fdc815f70 Add package docstring to core __init__.py
Introduces a new __init__.py file for the core package with a descriptive docstring outlining its purpose and contents.
2025-08-16 15:04:24 +03:00
Your Name 97a046cbae Add package metadata to __init__.py
Created src/__init__.py with project docstring, version, and author information for YTSage, a PySide6-based YouTube video downloader.
2025-08-16 15:04:13 +03:00
Your Name 42edf075c6 Delete notification.mp3 2025-08-16 15:04:00 +03:00
Your Name 5d417e980e Add loguru to requirements.txt
Added the loguru logging library to the project dependencies in requirements.txt.
2025-08-16 15:03:54 +03:00
Your Name 989a070782 Revamp README with improved structure and details
Enhanced the README with a new 'Why YTSage?' section, improved installation instructions, added troubleshooting steps, and expanded feature descriptions. Updated project structure, acknowledgments, and star history sections for better clarity and navigation. Improved formatting and added advanced usage notes for cross-platform support.
2025-08-16 15:03:42 +03:00
Your Name d72685ca28 Refactor imports and add logging to main.py
Updated import paths to use src.gui and src.core modules. Integrated logger for improved error and status reporting throughout application startup and error handling.
2025-08-16 15:03:31 +03:00
Your Name 0299affaad Delete icon.png 2025-08-16 15:03:21 +03:00
Your Name 0cb7437d5f Add notification sound asset
Introduced notification.mp3 to the assets/sound directory for use in application alerts or notifications.
2025-08-16 15:03:18 +03:00
Your Name 227c6e7474 Add new icon image to assets
Added icon.png to the assets/Icon directory for use in the application interface.
2025-08-16 15:03:13 +03:00
Your Name 227e543ad9 Update .gitignore for venv and test artifacts
Added rules to ignore virtual environment directories (venv, .venv) and test artifact files (*.test, *.tmp) to prevent them from being tracked in the repository.
2025-08-16 15:03:00 +03:00
Elvis 7e586c07f5 Add setuptools to requirements.txt (#25)
Fix error: ModuleNotFoundError: No module named 'pkg_resources'
2025-08-13 13:57:22 +03:00
Your Name e926543eeb Merge branch 'main' of https://github.com/oop7/YTSage 2025-07-06 15:20:24 +03:00
Your Name 97375ec93b Add .gitignore file for Python project
Initial .gitignore includes rules for Python bytecode, local configuration, packaging artifacts, logs, OS/editor files, and yt-dlp temporary files.
2025-07-06 15:20:20 +03:00
Mohamed 0d384227fa feat: fix README navigation and add themed badges 2025-07-05 13:17:10 +03:00
Your Name 99d0750a74 Add yt-dlp Module with Download and Installation Path Logic 2025-07-04 21:37:01 +03:00
Your Name 49c53abe1e Refactor Utility Functions with Caching and Error Handling for yt-dlp/ffmpeg Paths 2025-07-04 21:36:35 +03:00
Your Name 67d11592bc Refactor Button Styles for Consistency 2025-07-04 21:36:07 +03:00
Your Name c75c36eea9 Ensure yt-dlp Availability in Video Info Module 2025-07-04 21:35:39 +03:00
Your Name 36f9996424 Refactor Imports, yt-dlp/Pygame Availability, and ffmpeg/yt-dlp Checks 2025-07-04 21:35:16 +03:00
Your Name 5a49e606cd Refactor Imports and yt-dlp Path Handling in Dialogs 2025-07-04 21:34:48 +03:00