https://github.com/Benexl/yt-x Skip to content Navigation Menu Toggle navigation Sign in * Product + GitHub Copilot Write better code with AI + Security Find and fix vulnerabilities + Actions Automate any workflow + Codespaces Instant dev environments + Issues Plan and track work + Code Review Manage code changes + Discussions Collaborate outside of code + Code Search Find more, search less Explore + All features + Documentation + GitHub Skills + Blog * Solutions By company size + Enterprises + Small and medium teams + Startups By use case + DevSecOps + DevOps + CI/CD + View all use cases By industry + Healthcare + Financial services + Manufacturing + Government + View all industries View all solutions * Resources Topics + AI + DevOps + Security + Software Development + View all Explore + Learning Pathways + White papers, Ebooks, Webinars + Customer Stories + Partners + Executive Insights * Open Source + GitHub Sponsors Fund open source developers + The ReadME Project GitHub community articles Repositories + Topics + Trending + Collections * Enterprise + Enterprise platform AI-powered developer platform Available add-ons + Advanced Security Enterprise-grade security features + GitHub Copilot Enterprise-grade AI features + Premium Support Enterprise-grade 24/7 support * Pricing Search or jump to... Search code, repositories, users, issues, pull requests... Search [ ] Clear Search syntax tips Provide feedback We read every piece of feedback, and take your input very seriously. [ ] [ ] Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Name [ ] Query [ ] To see all available qualifiers, see our documentation. Cancel Create saved search Sign in Sign up Reseting focus You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert {{ message }} Benexl / yt-x Public * Notifications You must be signed in to change notification settings * Fork 22 * Star 590 Browse youtube from your terminal License MIT license 590 stars 22 forks Branches Tags Activity Star Notifications You must be signed in to change notification settings * Code * Issues 0 * Pull requests 0 * Actions * Projects 0 * Security * Insights Additional navigation options * Code * Issues * Pull requests * Actions * Projects * Security * Insights Benexl/yt-x master BranchesTags [ ] Go to file Code Folders and files Name Name Last commit message Last commit date Latest commit History 172 Commits extensions extensions .gitignore .gitignore LICENSE LICENSE README.md README.md flake.lock flake.lock flake.nix flake.nix yt-x yt-x View all files Repository files navigation * README * MIT license yt-x GitHub Issues or Pull Requests GitHub License GitHub file size in bytes GitHub Release GitHub commit activity Browse YouTube from your terminal. Plus other sites yt-dlp supports. yt-x.webm Workflow Demo https://www.reddit.com/r/unixporn/comments/ 1hou2s7/oc_ytx_v040_workflow_new_year_new_way_to_explore/?utm_source= share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content= share_button Features * Interactive Menu: Text-based UI using fzf or rofi for seamless navigation. * YouTube-Specific Menus: Access your feed, trending videos, playlists, watch later, subscriptions feed, liked videos, clips. * Playback Support: Play videos and audio via mpv or vlc. * Search Functionality: Search for videos, channels and playlists directly. * Channel Exploration: Explore channels, including their videos, streams, podcasts, shorts, and playlists. * Saved Channels: Bookmark your favorite channels for quick access, with support for importing existing subscriptions. * Saved Videos: Save videos to watch later. * Mixes: Generate and explore YouTube song mixes. * Custom Playlists: Save playlists for easier access. * Download Management: Download videos, audio, and playlists using yt-dlp. * History & Recents: Track your recent videos and search history. * Configuration Management: Customize and manage configurations for yt-x, mpv and yt-dlp with ease. * Extensions: Extend yt-x with your own custom ui and preview logic allowing more precise coverage of other sites that yt-dlp supports * Custom Commands: Basically a simple way to achieve the same thing with extensions. A custom command is just a yt-dlp command that loads a playlist or playlist like json. * Miscellaneous Features: + Shell completions for bash, zsh, and fish. + Desktop entry generation for easy access. Installation Linux/BSD Arch Linux MacOS Android # NixOS nix profile install github:Benexl/yt-x # Latest Release curl -sL "https://raw.githubusercontent.com/Benexl/yt-x/refs/tags//yt-x" -o ~/.local/bin/yt-x && chmod +x ~/.local/bin/yt-x # Development Version curl -sL "https://raw.githubusercontent.com/Benexl/yt-x/refs/heads/master/yt-x" -o ~/.local/bin/yt-x && chmod +x ~/.local/bin/yt-x Dependencies Required * jq - JSON parsing. * curl - Download preview images. * yt-dlp - Fetch YouTube data. * fzf - Main UI navigation. * mpv - Video and audio playback. * ffmpeg - Proper HLS stream downloading. * bash - Script interpreter. Optional * gum - Enhanced UI (highly recommended). * chafa - Cross-terminal image rendering (highly recommended). * icat - Image rendering. * imgcat - Image rendering. * rofi - Alternate UI. --------------------------------------------------------------------- Usage # Launch the UI yt-x # Edit configuration yt-x -e # Specify player at runtime yt-x --player # Set selector at runtime yt-x -s # Specify Rofi theme path yt-x --rofi-theme # Enable/disable preview yt-x --preview / yt-x --no-preview # Print desktop entry yt-x -E # Print shell completions yt-x completions --bash yt-x completions --zsh yt-x completions --fish # Update the script yt-x --update # Display help yt-x --help --------------------------------------------------------------------- Tips Enabling Imports of Subscriptions & Private Playlists Set your preferred browser in the configuration file: PREFERRED_BROWSER: chrome To enable mpv to access private playlists and videos, add this to mpv.conf: ytdl-raw-options=cookies-from-browser=chrome ytdl-format="best[height=1080]/bestvideo[height=1080]+bestaudio/best[height=720]/bestvideo[height=720]+bestaudio/best" For additional enhancements, consider: * uosc for a modern mpv UI. * thumbfast for thumbnail timeline previews. Custom Playlists Define custom playlists by editing ~/.config/yt-x/ custom_playlists.json (or use the UI): [ { "name": "", "playlistUrl": "https://www.youtube.com/playlist?list=", "playlistWatchUrl": "https://www.youtube.com/watch?list=" } ] Contribution Pull requests are highly welcome! Support Need help? Join the community on Discord: [6874747073] Supporting the Project Give the project a star and consider contributing to the codebase. ko-fi About Browse youtube from your terminal Topics cli youtube command-line fzf mpv jq yt-dlp yt-dlp-wrapper yt-x Resources Readme License MIT license Activity Stars 590 stars Watchers 6 watching Forks 22 forks Report repository Releases 8 v0.4.0 Latest Dec 29, 2024 + 7 releases Contributors 6 * @Benexl * @heywoodlh * @JManch * @mindhuntr * @0xMarius * @DinethDilhara Languages * Shell 98.4% * Nix 1.6% Footer (c) 2024 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Docs * Contact * Manage cookies * Do not share my personal information You can't perform that action at this time.