No description
  • Rust 99.9%
  • Shell 0.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Eric Heimerman 61c3278a36
All checks were successful
build-test / build-test-1 (push) Successful in 3m40s
build-test / build-test (push) Successful in 0s
CI: add a "Run workflow" button
Forgejo 16 has no API to rerun a failed job, so this is the way to rerun CI
without pushing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DtinzDV2nbfT6rgYwM3GN7
2026-10-13 14:23:28 -04:00
.forgejo/workflows CI: add a "Run workflow" button 2026-10-13 14:23:28 -04:00
.github Point docs at Forgejo and fix where they say the database lives (#15) 2026-10-12 20:33:25 -04:00
.kiro Point docs at Forgejo and fix where they say the database lives (#15) 2026-10-12 20:33:25 -04:00
.vscode relative path storage 2025-11-10 10:33:10 -06:00
deployment CI: run on the runner's rust image with sccache 2026-10-13 14:21:57 -04:00
docs Rescan in the background, follow moved files, report missing ones (fixes #13) 2026-10-13 16:36:42 +00:00
src Accept ~ and Tab-complete folders in path prompts (fixes #18) 2026-10-13 17:24:55 +00:00
tests Accept ~ and Tab-complete folders in path prompts (fixes #18) 2026-10-13 17:24:55 +00:00
.gitignore Repo cleanup: drop the committed binary, empty test file, and dead code (#13) 2026-10-12 19:06:18 -04:00
Cargo.lock integrated torrent search and magnet link handling 2026-02-08 05:23:35 -06:00
Cargo.toml integrated torrent search and magnet link handling 2026-02-08 05:23:35 -06:00
CONTRIBUTING.md Add Forgejo CI: build, clippy, test (fixes #12) 2026-10-13 05:00:09 +00:00
movies.code-workspace fixed status display issues and make more robust 2025-12-06 21:52:04 -06:00
README.md Search the whole library with f and jump to the result (fixes #17) 2026-10-13 17:20:15 +00:00

Video Library Manager

                                                           ██                         ██████
     ████                                                  ██                       ███   ██
  █ ██████              ██████        ███        █                     ███        ████    ██
██████ ███ ████        ████ ███       ███       ███       ███       ███████       ███     ██
██████ ████████       ███ █████       ████     █████     ████      ████  ██       ████            ████
█████  █████████     ████  ███████████████     ██  ██████████      ███████       ███████      ██████
█████  ████ ███     █████    ███ ██    ███    ███        ████     ████          ███  ███████████
████   ███  ███    ██████    ██        ███    ██         ████    █████        ███      █████
████   ███  ███    ██ ███    ██        ████   ██         ████   ██████       ███     ████████
████        ███  ███   ███████          ███  ██           ███  ███  ████ █████     ███    ████
███         ██████       ███             ██████           ███ ███     █████       ███     ███
             ███                           ██               ███                   ██     ███
                                                                                  █████████
                -- written by Eric Heimerman (with a little help from Kiro)         ███

Your personal video collection, organized and accessible from your terminal.

Important: Your Videos Are Safe

This program does not modify your video files. It only reads file information and writes to its own videos.sqlite database. The program does not need write access to your video files themselves - only to the database file in your video folder.

That said, this software is provided as-is with no guarantees. Always maintain backups of important files.

What is this?

This is a simple program that helps you organize and browse your video collection. Think of it as a personal Netflix interface for your own movies and TV shows - but running right in your terminal. You can:

  • Browse your entire video collection in one place
  • Organize TV shows into series and seasons
  • Track which episodes you've watched with automatic progress tracking
  • Resume watching from where you left off (with mpv, Celluloid or VLC)
  • Search for videos by typing
  • Launch videos in your favorite player (like VLC or Celluloid)

Perfect for anyone with a large collection of movies or TV shows who wants a better way to keep track of what they have and what they've watched.

Why use this?

If you have folders full of video files scattered across your computer, this tool brings them all together. Instead of clicking through folders trying to remember where you put that one episode, you can:

  • See your entire collection at a glance
  • Organize TV shows properly (no more "Season 1 Episode 3" in the filename)
  • Remember what you've already watched
  • Find videos quickly by searching
  • Keep everything organized even if you move files around

Getting Started

What you'll need

  • A computer running Linux, macOS, or Windows
  • Rust programming language installed (get it here)
  • A video player like VLC (download VLC)

Installation

  1. Download this project (or clone it if you know git):

    git clone <repository-url>
    cd <project-folder>
    
  2. Build the program:

    cargo build --release
    
  3. Run it:

    cargo run --release
    

The first time you run it, the program will create a configuration file and database for you.

First-time setup

The first time you run the program, it will:

  1. Create a config.yaml file in your system's config directory:
    • Linux: ~/.config/movies/config.yaml
    • macOS: ~/Library/Application Support/movies/config.yaml
    • Windows: %APPDATA%\movies\config.yaml
  2. Create a movies.log file in your system's data directory:
    • Linux: ~/.local/share/movies/movies.log
    • macOS: ~/Library/Application Support/movies/movies.log
    • Windows: %APPDATA%\movies\movies.log
  3. Prompt you to enter the path to your video folder
  4. Create a videos.sqlite database file in your video folder

Just enter the path where your videos are stored (e.g., /home/yourname/Videos) and the program will be ready to use!

Note: The video player defaults to /usr/bin/vlc. If you use a different player, edit the video_player: setting in config.yaml. Progress tracking and resume work with VLC, mpv and Celluloid, including Flatpak installs (e.g. /var/lib/flatpak/exports/bin/io.github.celluloid_player.Celluloid). See the Configuration Guide for all available options.

How to use it

Adding your videos

Press F1 to open the menu, then press S to rescan your video folder. The program will find all your video files and add them to the library. This might take a minute if you have a lot of videos.

Browsing your collection

Use the arrow keys (up and down) to move through your videos. You'll see:

  • Standalone episodes (videos not organized into series)
  • TV series (which you can enter to see seasons)
  • Seasons (which you can enter to see episodes)

When you have more items than fit on screen, a scroll bar appears on the right side showing your position in the list. The indicator moves as you scroll, helping you understand how much content is above and below your current position.

Press Enter to:

  • Play a video
  • Open a series to see its seasons
  • Open a season to see its episodes

Press Esc to go back to the previous screen.

Searching for videos

Press / to enter search mode, then start typing. As you type, the list will filter to show only matching videos. Press Enter to accept the filter, or Esc to cancel and clear the search.

The / filter only looks at the list you're in. To search everything, press f: the list changes to every series and episode in the library, and you can type straight away. Each episode shows its series, season and year, e.g. Pilot (Lost, season 1, 2004), so you can search by those too. Enter on a result takes you to that episode in its season (or series), ready to play; Esc leaves the search.

Organizing TV shows

Have a bunch of TV show episodes? Here's how to organize them:

  1. Navigate to an episode
  2. Press F4 (or F1 for the menu, then select "assign to series")
  3. Choose an existing series or press + to create a new one
  4. Type the series name and press Enter

For the next episode from the same show, just press F5 to quickly assign it to the same series and season!

Tracking what you've watched

Navigate to any episode and press F3 to mark it as watched (or unwatched). Watched episodes show a special indicator so you can see at a glance what you've already seen.

Progress Tracking: The program automatically tracks your viewing progress when your video player is mpv, Celluloid or VLC:

  • When you start watching an episode, it's automatically marked as unwatched
  • Progress is saved when you close the player
  • When you reach 95% of the video, it's automatically marked as watched
  • Toggling watched status (F3) resets progress and starts fresh next time
  • The last_watched_time field preserves when you last watched an episode

Notes:

  • Celluloid only saves your position when you exit with Shift+Q (not the X button).
  • mpv and Celluloid resume from their own saved position (mpv's "watch later" files). VLC is started at the saved position, and its position is read from VLC's recent-media list, so VLC's "Save recently played items" setting must be on.

Want to rewatch a whole series? Press F7 to mark all episodes as unwatched. This works on:

  • The entire library (if you're at the top level)
  • Just one series (if you're viewing a series)
  • Just one season (if you're viewing a season)

Can't find what you're looking for in your collection? Press F8 to search for torrents online:

  1. Press F8 to open the torrent search
  2. Type the name of the movie or show you're looking for
  3. Press Tab to switch between Movies and TV. It starts on TV when you open it inside a series or season (or on a series), and on Movies otherwise
  4. Press Enter to search. "Searching…" shows while it runs; Esc cancels it
  5. Browse the results with arrow keys
  6. Press Enter on a result to open the magnet link in your torrent client

The search returns the top 10 results from The Pirate Bay, sorted by seeders (most popular first). Each result shows:

  • Name
  • File size
  • Number of seeders and leechers

Requirements: You need a magnet link handler installed (like Transmission, qBittorrent, or Deluge) for this feature to work. When you select a result, the program opens the magnet link in your default torrent client, which will start downloading the content. In your torrent client, be sure to save the video to the correct directory (where this app can scan them) and remember to do a rescan once the download is complete, in order for the video to show up in your browse list.

Press Esc at any time to cancel the search and return to browsing your library.

Editing episode details

Navigate to an episode and press F2 to edit its details:

  • Name
  • Year (digits only)
  • Watched (press Space, + or - to switch between Yes and No)
  • Episode number (digits only, or +/- to step it)
  • Season number (+/-)

Length is read from the video file and shown as h:mm:ss, so it isn't edited by hand.

Use the arrow keys to move between fields, type to edit, and press F2 again to save your changes (or Esc to cancel).

Quick reference

Main controls

Key What it does
Arrow keys Move up and down through your videos
Enter Play video or open series/season
Esc Go back to previous screen / Exit the program
/ Enter search/filter mode
f Search the whole library
F8 Search for torrents online
F1 Open menu to see all available actions

Quick actions (when viewing an episode)

Key What it does
F2 Edit episode details
F3 Mark as watched/unwatched
F4 Organize into a series
F5 Repeat last organization (quick assign)
F6 Remove from series (make standalone)
F7 Mark all as unwatched

Tip: Press F1 anytime to see a menu of what you can do with the currently selected item.

Common questions

Where is my data stored?

The program creates a videos.sqlite file in your video folder (db_location in config.yaml holds its path). This database remembers all your organization and watched status.

Your actual video files are never modified - the program only reads them and stores metadata in the database. The program only needs write access to the videos.sqlite database file, not to your video files.

Configuration is stored in your system's config directory (~/.config/movies on Linux), and logs are in your system's data directory (~/.local/share/movies on Linux).

Can I move my video files?

Yes! The program stores file locations relative to your video folder. When you move your video collection:

  1. Move the entire folder (including the videos.sqlite database file)
  2. Update db_location in config.yaml to the new path of videos.sqlite
  3. All your organization and watched status will be preserved

What video formats are supported?

By default: MP4, MKV, AVI, MOV, FLV, WMV, and WebM. You can add more in config.yaml.

Can I customize colors and appearance?

Yes! Edit config.yaml to change colors, scrollbar characters, and the watched indicator. See the Configuration Guide for details.

I moved/deleted some videos. How do I update the library?

Press F1 to open the menu, then press S to rescan. The scan runs in the background, with its progress in the status bar, so you can keep browsing.

  • New videos are added to the list.
  • Moved or renamed folders: a video that moved to another folder inside your video folder keeps its entry (watched status, series, season) when its file name is unchanged and no other new file has the same name.
  • Deleted videos stay in the list, shown in the "invalid" color (red by default), and the rescan reports how many are missing. Remove them one at a time with F1 → Delete, or all at once with F1 → Remove missing.

Troubleshooting

Having issues? Check the Troubleshooting Guide for solutions to common problems:

  • Installation and build issues
  • Video playback problems
  • Library scanning issues
  • Display and terminal problems
  • Database and performance issues

For developers

If you're interested in the technical details, architecture, or want to contribute to the project, check out CONTRIBUTING.md for developer documentation.

Feedback & Contributions

This project was built with AI assistance, and we welcome your feedback and contributions!

Report Issues or Request Features

Contribute Code

Want to contribute code? Check out CONTRIBUTING.md for developer documentation and guidelines.

Don't hesitate to critique the code or suggest better approaches - that's how we all learn and improve!

License

This project is open-source under the MIT License. Feel free to use it, modify it, and share it!