Skip to content

oop7/YTSage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

564 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

ytsage-wordmark YTSage Interface

Python 3.10+ PyPI Downloads GitHub Downloads License: MIT Supported Platforms GitHub Stars PyPI version GitHub Sponsors

Modern YouTube downloader with a clean PySide6 interface.
Download videos in any quality, extract audio, fetch subtitles, and more.

๐ŸŒ README Languages

English: EN | Arabic: AR | German: DE | Spanish: ES | French: FR | Hindi: HI | Indonesian: ID | Italian: IT | Japanese: JA | Polish: PL | Portuguese: PT | Russian: RU | Turkish: TR | Chinese: ZH

Installation โ€ข Features โ€ข Usage โ€ข Screenshots โ€ข Troubleshooting โ€ข Sponsor โ€ข Contributing


โ“ Why YTSage?

YTSage is designed for users who want a simple yet powerful YouTube downloader. Unlike other tools, it offers:

  • A modern and clean PySide6 interface
  • One-click downloads for video, audio, and subtitles
  • Advanced features like SponsorBlock, subtitle merging, and playlist selection
  • Optional Generic Mode for sites supported by yt-dlp beyond YouTube
  • Cross-platform support and easy installation

โœจ Features

Core Features Advanced Features Extra Features
๐ŸŽฅ Format Table ๐Ÿšซ SponsorBlock Integration ๐ŸŽž๏ธ FPS/HDR Display
๐ŸŽต Audio Extraction ๐Ÿ“ Subtitle Selection & Merging ๐Ÿ”„ Auto Update yt-dlp
โœจ Simple UI ๐Ÿ’พ Save Description & Thumbnail ๐Ÿ› ๏ธ FFmpeg/yt-dlp/Deno Detection
๐Ÿ“‹ Playlist Support & Selector ๐Ÿš€ Speed Limiter โš™๏ธ Custom Commands
๐Ÿ“‘ Chapter Integration โœ‚๏ธ Video Section Trimming ๐Ÿช Login with Cookies
๐Ÿ“œ Download History ๐Ÿ”„ Version Channel Selection ๐ŸŒ Proxy Support
๐ŸŽš๏ธ Audio Format Conversion ๐ŸŽฌ Video Format Settings ๐Ÿ†™ Built-in Updater Tab
๐ŸŒ Generic Mode ๐Ÿ”Š Audio Normalization (EBU R128) ๐ŸŒ Localized in 14 Languages
๐Ÿ’พ Playlist Export โš™๏ธ Default Quality & Subtitles

๐Ÿš€ Installation

โšก Quick Install (Recommended)

Install YTSage via PyPI:

pip install ytsage
๐Ÿ”„ Update existing installation
pip install --upgrade ytsage

Then launch the application:

ytsage

๐Ÿ“ฆ Pre-built Executables

๐Ÿ‘‰ Download Latest Release

๐ŸชŸ Windows

Format Description
Windows EXE Standard Installer
Windows FFmpeg With FFmpeg Included
Windows Portable Portable version, no installation needed
Windows Portable FFmpeg Portable with FFmpeg, zipped
๐Ÿ› ๏ธ Installation Steps
  1. EXE Installer (.exe): Double-click the file and follow the setup wizard.
  2. Portable Version (.zip): Extract the archive to your desired location and launch ytsage.exe.
  3. FFmpeg Included: Choose versions with FFmpeg included if you don't have FFmpeg installed on your system.

๐Ÿง Linux

Format Description
Linux DEB Debian Package
Linux AppImage AppImage, Portable
Linux RPM RPM Package
Flathub Flatpak Bundle
๐Ÿ› ๏ธ Installation Steps
  • DEB (.deb):
    sudo dpkg -i ytsage_*.deb
    sudo apt-get install -f # Fix missing dependencies if needed
  • RPM (.rpm):
    sudo rpm -i ytsage-*.rpm
  • AppImage (.AppImage):
    chmod +x YTSage-*.AppImage
    ./YTSage-*.AppImage
  • Flatpak: Follow instructions on Flathub or run:
    flatpak install flathub io.github.oop7.ytsage

๐ŸŽ macOS

Format Description
macOS ARM64 APP Zipped Application for Apple Silicon
macOS ARM64 DMG Disk Image Installer for Apple Silicon
๐Ÿ› ๏ธ Installation Steps
  • DMG Installer (.dmg): Double-click to mount, then drag YTSage.app to your Applications folder.
  • Application Archive (.zip): Extract the zip and move YTSage.app to your Applications folder.

Note: If you encounter an "Application is damaged" error, see the macOS troubleshooting section below.


๐Ÿ’ป Manual Source Installation

1. Clone the repository

git clone https://github.com/oop7/YTSage.git
cd YTSage

2. Install dependencies

โšก Using uv

uv pip install .

๐Ÿ“ฆ Or using standard pip

pip install .

3. Run the application

python -m ytsage.main

๐Ÿ“ธ Screenshots

Download Settings Playlist Download
Download Settings Playlist Download
Audio Format Selection Custom Options
Audio Format Custom Options

๐Ÿ“– Usage

๐ŸŽฏ Basic Usage
  1. Launch YTSage
  2. Paste YouTube URL (or use "Paste URL" button)
  3. Click "Analyze"
  4. Select Format:
    • Video for video downloads
    • Audio Only for audio extraction
  5. Choose Options:
    • Enable Subtitles and select language
    • Enable Subtitle Merging
    • Save Thumbnail
    • Remove Sponsored Segments
    • Save Description
    • Embed Chapters
  6. Select Output Directory
  7. Click "Download"

๐Ÿ’ก Default download directory is the user's "Downloads" folder.

๐Ÿ“‹ Playlist Download
  1. Paste Playlist URL
  2. Click "Analyze"
  3. Select videos from the playlist selector (optional, defaults to all)
  4. Choose desired format/quality
  5. Click "Download"

๐Ÿ’ก The application automatically handles the download queue, and you can export playlist entries as .txt, .csv, .m3u, or .json.

๐ŸŒ Generic Mode for Non-YouTube Sites

Use Generic Mode when you want YTSage to accept URLs from sites supported by yt-dlp, such as Dailymotion, CBC Gem, TikTok, and others.

How to use it:

  1. Open Download Settings.
  2. Toggle on Generic Mode.
  3. Paste a supported video or playlist URL that is not from YouTube.
  4. Click Analyze.
  5. Choose a format and download as usual.

Notes:

  • Generic mode only changes the URL validation inside YTSage. The target site must still be supported by your installed version of yt-dlp.
  • Some sites require cookies, login sessions, proxy, or extra yt-dlp arguments depending on the extractor.
  • If a site fails, update yt-dlp from the built-in updater tab first before reporting an issue.
๐Ÿงฐ Media & Download Options
  • Subtitle Options: Filter languages and embed subtitles into the video file.
  • Subtitle Merging: Merge subtitles into the video file for hardcoded/burned-in subtitles.
  • Save Description: Save the video description as a text file.
  • Save Thumbnail: Save the video thumbnail as an image file.
  • Embed Chapters: Embed chapter markers as metadata for compatible video players.
  • Remove Sponsored Segments: Remove sponsored segments from the video using SponsorBlock.
  • Trim Video: Download only specific parts of a video by specifying time ranges in HH:MM:SS format.
โš™๏ธ Output & File Settings
  • Speed Limiter: Limit download speed, e.g., 500K for 500 KB/s.
  • Save Download Path: Saves the default download path for future downloads. Available in Download Settings โ†’ Download Path.
  • Default Video Resolution: Set your preferred default video resolution for auto-selection (e.g., 1080p, 720p). Available in Download Settings โ†’ Default Video Resolution.
  • Default Subtitle Languages: Set default subtitle languages for auto-selection (comma-separated, e.g., en,es). Available in Download Settings โ†’ Default Subtitle Languages.
  • Output Filename Format: Customize the output filename format using variables like %(title)s, %(uploader)s, %(playlist_index)s, and %(resolution)s. Available in Download Settings โ†’ Filename Format.
  • Force Output Format: Force video downloads into a specific container format like mp4, webm, or mkv. Available in Download Settings โ†’ Output Format Settings.
  • Audio Format Conversion: Convert audio-only downloads into preferred formats such as AAC, MP3, FLAC, WAV, Opus, M4A, Vorbis, or Best. Available in Download Settings โ†’ Audio Format Settings.
  • Audio Normalization: Standardize volume for audio-only downloads using EBU R128.
  • Concurrent Connections: Dramatically increase download speed by downloading files in multiple fragments simultaneously. Available in Download Settings โ†’ General โ†’ Concurrent Connections (Default is 1, maximum recommended is 8-10 to avoid IP throttling).
๐ŸŒ Access & Network
  • Login with Cookies: Log in to YouTube using cookies to access private content. How to use it:
    1. Recommended: Use the built-in Extract cookies from browser option in the app, then select your browser and optionally a profile.
    2. Alternatively, extract cookies manually: a. Export browser cookies using an extension like cookie-editor b. Copy cookies in Netscape format c. Create a file named cookies.txt and paste cookies d. Select the cookies.txt file in the app
  • Proxy Support: Use a proxy server for downloads, e.g., http://<proxy-server>:<port>
  • Generic Mode: Allows YTSage to analyze and download from non-YouTube sites supported by yt-dlp. Enable from Download Settings โ†’ Generic Mode.
๐Ÿ› ๏ธ Tools & Maintenance
  • Custom Commands: Access advanced yt-dlp features via command-line arguments.
  • Updater Tab: Manage built-in update tools from one place in Custom Options:
    • yt-dlp Updates: Check for updates and toggle between Stable and Nightly release channels.
    • FFmpeg Version Checker: Check your FFmpeg version and open installation guides.
    • Deno Updates: Check and update the Deno runtime.
  • FFmpeg/yt-dlp/Deno Detection: Automatically detects paths and versions for FFmpeg, yt-dlp, and Deno from the About dialog.
  • Download History: View past downloads with thumbnails and statuses from the History button.
๐ŸŒ Localization

YTSage supports 14 languages for global accessibility. Select your preferred language in Custom Options โ†’ Language.

Supported Languages

Language Code Language Code
๐Ÿ‡บ๐Ÿ‡ธ English en ๐Ÿ‡ช๐Ÿ‡ธ Spanish es
๐Ÿ‡ธ๐Ÿ‡ฆ Arabic ar ๐Ÿ‡ซ๐Ÿ‡ท French fr
๐Ÿ‡ฉ๐Ÿ‡ช German de ๐Ÿ‡ฎ๐Ÿ‡ณ Hindi hi
๐Ÿ‡ฎ๐Ÿ‡ฉ Indonesian id ๐Ÿ‡ฎ๐Ÿ‡น Italian it
๐Ÿ‡ฏ๐Ÿ‡ต Japanese ja ๐Ÿ‡ต๐Ÿ‡ฑ Polish pl
๐Ÿ‡ง๐Ÿ‡ท Portuguese pt ๐Ÿ‡ท๐Ÿ‡บ Russian ru
๐Ÿ‡น๐Ÿ‡ท Turkish tr ๐Ÿ‡จ๐Ÿ‡ณ Chinese zh

README Translations

Language File Language File
๐Ÿ‡บ๐Ÿ‡ธ English README.md ๐Ÿ‡ช๐Ÿ‡ธ Spanish README.es.md
๐Ÿ‡ธ๐Ÿ‡ฆ Arabic README.ar.md ๐Ÿ‡ซ๐Ÿ‡ท French README.fr.md
๐Ÿ‡ฉ๐Ÿ‡ช German README.de.md ๐Ÿ‡ฎ๐Ÿ‡ณ Hindi README.hi.md
๐Ÿ‡ฎ๐Ÿ‡ฉ Indonesian README.id.md ๐Ÿ‡ฎ๐Ÿ‡น Italian README.it.md
๐Ÿ‡ฏ๐Ÿ‡ต Japanese README.ja.md ๐Ÿ‡ต๐Ÿ‡ฑ Polish README.pl.md
๐Ÿ‡ง๐Ÿ‡ท Portuguese README.pt.md ๐Ÿ‡ท๐Ÿ‡บ Russian README.ru.md
๐Ÿ‡น๐Ÿ‡ท Turkish README.tr.md ๐Ÿ‡จ๐Ÿ‡ณ Chinese README.zh.md

๐Ÿ’ก Want to contribute a translation? Check out the Contributing section to help us add more languages!

๐Ÿ› ๏ธ Troubleshooting

Click to view common issues and solutions
  • Format table not appearing: Update yt-dlp to latest version and switch to nightly yt-dlp.
  • Download failed: Check your internet connection and ensure the video is available.
  • Specific Download Errors:
    • Private Videos: Use cookie authentication to access private content.
    • Age-Restricted Content: Log in to your YouTube account to view age-restricted videos.
    • Geo-Blocked Videos: Consider using a VPN to bypass regional restrictions.
    • Deleted Videos: Video is no longer available on YouTube.
    • Live Streams: Live streams cannot be downloaded; wait for the broadcast to end.
    • Network Errors: Check your internet connection and try again.
    • Invalid URLs: Ensure the URL is correct and from a supported platform.
    • Premium Content: Requires a YouTube Premium subscription.
    • Copyright Blocks: Content is blocked due to copyright restrictions.
  • Video and Audio Files separate after download: This happens when FFmpeg is missing or not detected. YTSage requires FFmpeg to merge high-quality video and audio streams.
    • Solution: Ensure FFmpeg is installed and accessible in your system's PATH. For Windows users, the easiest option is to download the YTSage-v<version>-ffmpeg.exe file, which comes bundled with FFmpeg.

๐Ÿ›ก๏ธ Windows Defender / Antivirus Warning

Some antivirus software may flag .exe files as false positives. This is a known limitation of packaged applications.

Why this happens:

  • Antivirus heuristics can mistakenly identify packaged executables as suspicious.

Safe Alternatives:

  • โœ… Use pip install: pip install ytsage (Recommended)
  • โœ… Build from Source: by following this guide
  • โœ… Whitelist the app in your antivirus software.

๐ŸŽ macOS: "Application is damaged and cannot be opened"

If you see this error on macOS Sonoma or newer, you need to remove the quarantine attribute.

  1. Open Terminal (you can find this using Spotlight).
  2. Type the following command but do not press Enter yet. Make sure to include the space at the end:
    xattr -d com.apple.quarantine 
  3. Drag the YTSage.app file from your Finder window and drop it directly into the Terminal window. This will automatically paste the correct file path.
  4. Press Enter to run the command.
  5. Try opening YTSage.app again. It should now launch correctly.

Config Locations (Advanced)

  • Windows: %LOCALAPPDATA%\YTSage
  • macOS: ~/Library/Application Support/YTSage
  • Linux: ~/.local/share/YTSage

๐Ÿ’– Sponsor

If YTSage saves you time, please consider sponsoring the project. Sponsoring helps cover development time, testing across all platforms, and future improvements.

Sponsor YTSage

๐Ÿ‘ฅ Contributing

We welcome contributions! Hereโ€™s how you can help:

  1. ๐Ÿด Fork the repository
  2. ๐ŸŒฟ Create your feature branch:
git checkout -b feature/AmazingFeature
  1. ๐Ÿ’พ Commit your changes:
git commit -m 'Add some AmazingFeature'
  1. ๐Ÿ“ค Push to the branch:
git push origin feature/AmazingFeature
  1. ๐Ÿ”„ Open a Pull Request

๐ŸŒ Contributing Translations

  • Update the relevant localized README file (e.g., readme-translations/README.fr.md)
  • Keep app strings synced by editing ytsage/languages/<code>.json
  • If your language is missing, start from README.md and create README.<code>.md
๐Ÿ“‚ Project Structure

YTSage - Project Structure

This document describes the organized folder structure of YTSage.

๐Ÿ“ Project Structure

YTSage/
โ”œโ”€โ”€ ๐Ÿ“ .github/                   # GitHub configuration
โ”‚   โ”œโ”€โ”€ ๐Ÿ“ ISSUE_TEMPLATE/         # Issue templates
โ”‚   โ”‚   โ””โ”€โ”€ ๐Ÿ›-bug-report.md       # Bug report template
โ”‚   โ”œโ”€โ”€โ”€ ๐Ÿ“ workflows/              # GitHub Actions workflows
โ”‚   โ”‚   โ”œโ”€โ”€ build-linux.yml        # Linux build workflow
โ”‚   โ”‚   โ”œโ”€โ”€ build-macos.yml        # macOS build workflow
โ”‚   โ”‚   โ”‚โ”€โ”€ build-windows.yml      # Windows build workflow
|   |   โ””โ”€โ”€ release-all.yml          # Release master workflow
โ”‚   โ””โ”€โ”€ ๐Ÿ“„ CI_CD_README.md        # CI/CD documentation
โ”œโ”€โ”€  ๐Ÿ“ branding/                 # Branding assets (Screenshots, SVGs)
โ”‚   โ”œโ”€โ”€ ๐Ÿ“ icons/                 # App icons
โ”‚   โ”œโ”€โ”€ ๐Ÿ“ screenshots/           # Documentation screenshots
โ”‚   โ””โ”€โ”€ ๐Ÿ“ svg/                   # SVG assets
โ”œโ”€โ”€ ๐Ÿ“„ LICENSE                    # License file
โ”œโ”€โ”€ ๐Ÿ“„ pyproject.toml             # Project metadata and dependencies
โ”œโ”€โ”€ ๐Ÿ“„ README.md                  # Project documentation
โ”œโ”€โ”€ ๐Ÿ“„ requirements.txt           # Python dependencies (dev)
โ””โ”€โ”€ ๐Ÿ“ ytsage/                    # Source package
    โ”œโ”€โ”€ ๐Ÿ“ assets/                # Runtime assets
    โ”‚   โ”œโ”€โ”€ ๐Ÿ“ Icon/              # App icons
    โ”‚   โ””โ”€โ”€ ๐Ÿ“ sound/             # Sound files
    โ”œโ”€โ”€ ๐Ÿ“ languages/             # Localization files
    โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ ar.json            # Arabic translation
    โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ de.json            # German translation
    โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ en.json            # English translation
    โ”‚   โ””โ”€โ”€ ...                   # Other languages
    โ”œโ”€โ”€ ๐Ÿ“ core/                  # Core business logic
    โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ __init__.py        # Core package init
    โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ ytsage_deno.py     # Deno integration
    โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ ytsage_downloader.py # Download functionality
    โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ ytsage_ffmpeg.py   # FFmpeg integration
    โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ ytsage_utils.py    # Utility functions
    โ”‚   โ””โ”€โ”€ ๐Ÿ“„ ytsage_yt_dlp.py   # yt-dlp integration
    โ”œโ”€โ”€ ๐Ÿ“ gui/                   # UI components
    โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ __init__.py        # GUI package init
    โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ ytsage_gui_main.py # Main app window
    โ”‚   โ””โ”€โ”€ ๐Ÿ“ ytsage_gui_dialogs/ # Dialog classes
    โ”œโ”€โ”€ ๐Ÿ“ utils/                 # Utility modules
    โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ __init__.py        # Utils package init
    โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ ytsage_config_manager.py # Config management
    โ”‚   โ””โ”€โ”€ ๐Ÿ“„ ytsage_logger.py   # Logging utilities
    โ”œโ”€โ”€ ๐Ÿ“„ __init__.py            # Package entry point
    โ””โ”€โ”€ ๐Ÿ“„ main.py                # Main execution script

โญ๏ธ Star History

Star History

Star History Chart

๐Ÿ“œ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ™ Acknowledgments

Show Acknowledgments

A big thanks to everyone who contributed to this project by opening an issue to suggest an improvement or report a bug.

Core Components
yt-dlp Download Engine
FFmpeg Media Processing
Deno Runtime for yt-dlp plugins
Libraries & Frameworks
PySide6 GUI Framework
Pillow Image Processing
requests HTTP Requests
packaging Version/Package Management
markdown Markdown Rendering
loguru Logging
Assets & Contributors
New Notification 09 by Universfield Notification Sound
viru185 Code Contributor

โš ๏ธ Disclaimer

This tool is for personal use only. Please respect YouTube's Terms of Service and content creator rights.


Made with โค๏ธ by oop7

About

Modern YouTube downloader with a clean PySide6 interface. Download videos in any quality, extract audio, fetch subtitles, sponsorBlock, and view video metadata. Built with yt-dlp for reliable performance.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Contributors