Skip to content
odanielmeschiariPublic

About

A desktop software made to organize local movies for free. Completely ad-free and offline. It uses TMDB API for metadata.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

CineLocal

Local movie browser for Linux and Windows. Fast and offline: the internet is only used to download posters and metadata for new movies (or when you force an update) and, if you set an OpenSubtitles key, their subtitles.

Home screen

Download and install (no Python or VLC needed)

Get just the file for your system from the latest release (no need for the source zip):

  • Windows 10/11: CineLocal-windows-x86_64-setup.exe — double-click it and follow the wizard (no administrator rights; adds CineLocal to the Start Menu). Windows SmartScreen may warn about an unknown publisher: More info → Run anyway. If Windows 11 says "Smart App Control blocked an app that may not be safe", see Smart App Control below.
  • Linux Mint / Ubuntu / Debian (x86_64): CineLocal-linux-x86_64.deb — double-click it (Software Manager) or run sudo apt install ./CineLocal-linux-x86_64.deb. It installs the few system libraries it needs.
  • Portable, no installation (other distros too): CineLocal-windows-x86_64-portable.zip or CineLocal-linux-x86_64-portable.tar.gz — extract anywhere and run the CineLocal file inside the folder. On Linux you may need sudo apt install libxcb-cursor0.

The built-in player is already included. The app is a folder (not a single file) on purpose: a single file would have to unpack itself to a temporary folder on every launch, which makes it slow to open.

Smart App Control (Windows 11)

Smart App Control only runs programs signed by a trusted publisher (or known to Microsoft) and has no "Run anyway" button. Releases signed by the maintainers open normally. If your copy is blocked (an unsigned build, such as one you built yourself), you can either:

  • turn it off in Settings → Privacy & security → Windows Security → App & browser control → Smart App Control (Windows does not let you turn it back on without reinstalling Windows), or
  • run CineLocal from the source (see Installation from source (Windows 10/11) below).

Publishing a release (maintainers)

  1. git tag v<version> && git push --tags — GitHub Actions builds the app with PyInstaller (cinelocal.spec, with VLC bundled) and attaches to a new release the Windows installer (installer/cinelocal.iss, Inno Setup), the Linux .deb (packaging/build-deb.sh) and the two portable archives. On Windows the executables, libraries and installers are signed with Azure Artifact Signing (packaging/sign-windows.ps1), which is what Smart App Control requires. One-time setup: create an Artifact Signing account and certificate profile (identity validation included), register a GitHub OIDC federated credential for an app that has the Artifact Signing Certificate Profile Signer role, then in the repository add the variables SIGN_ENDPOINT (e.g. https://eus.codesigning.azure.net/), SIGN_ACCOUNT and SIGN_PROFILE, and the secrets AZURE_CLIENT_ID, AZURE_TENANT_ID and AZURE_SUBSCRIPTION_ID. Without them the Windows files are published unsigned.
  2. To build locally instead: install VLC (set VLC_DIR if it is not in the default place), then pip install pyinstaller && pyinstaller --noconfirm cinelocal.spec (the app folder is dist/CineLocal/). Then packaging/build-deb.sh <version> (Linux) or iscc /DAppVersion=<version> installer\cinelocal.iss (Windows, with Inno Setup installed).

Installation from source (Linux Mint / Ubuntu / Debian)

unzip cinelocal.zip && cd cinelocal
chmod +x *.sh   # some zip extractors lose the executable permission
./install.sh

The script installs any missing system libraries (it asks for the administrator password), creates a virtual environment with PySide6 and adds CineLocal to the application menu. To remove it: ./uninstall.sh (--purge also deletes the data).

Installation from source (Windows 10/11, needs Python)

  1. Install Python 3.10 to 3.12 from python.org/downloads/windows, checking "Add python.exe to PATH" in the installer.
  2. Extract the CineLocal zip and double-click install.bat (or run install.bat in Command Prompt, inside the extracted folder).
  3. The built-in player needs VLC: if it is not installed, CineLocal offers to download it the first time it opens (no administrator rights needed). Without it, CineLocal opens the movie in the Windows default player.
  4. Open CineLocal from the Start Menu.

The script copies the app to %LOCALAPPDATA%\Programs\cinelocal, creates a virtual environment with PySide6 (needs internet, ~200 MB) and adds the Start Menu shortcut. It does not need administrator rights. To remove it: uninstall.bat (--purge also deletes the data).

Uninstalling

Your movies are never deleted: the uninstaller only removes the app and, if you ask, CineLocal's data.

Installed from the Windows installer / .deb

  • Windows: Settings → Apps → CineLocal → Uninstall. At the end it asks whether to also delete the library, posters and settings.
  • Linux: sudo apt remove cinelocal (or the Software Manager). Your data stays in your home folder; to delete it too (library, posters, API key and saved positions, with no way back): rm -rf ~/.config/cinelocal ~/.local/share/cinelocal ~/.cache/cinelocal
  • Portable version: just delete the folder. To also remove the data, delete the same data folders: on Windows %APPDATA%\cinelocal and %LOCALAPPDATA%\cinelocal (paste each one in the File Explorer address bar).

Linux

  1. Open a terminal in the extracted CineLocal folder (the same one as install.sh).

  2. If you see Permission denied, make the script executable (some zip extractors lose that permission):

    chmod +x uninstall.sh
  3. Uninstall — removes the app, the menu shortcut and the icon, but keeps the library, posters and settings (if you reinstall later, everything stays as it was):

    ./uninstall.sh
  4. Purge (optional) — also removes all data. This deletes the library, the cached posters, the API key and the saved "Continue watching" positions, and cannot be undone:

    ./uninstall.sh --purge

    Folders removed by the purge: ~/.config/cinelocal, ~/.local/share/cinelocal and ~/.cache/cinelocal.

Windows

  1. Open Command Prompt in the extracted CineLocal folder (the same one as install.bat). No chmod or administrator rights needed.

  2. Uninstall — removes the app and the Start Menu shortcut, keeping the data:

    uninstall.bat
  3. Purge (optional) — also removes the library, posters, API key and saved positions, with no way back:

    uninstall.bat --purge

    Folders removed by the purge: %APPDATA%\cinelocal and %LOCALAPPDATA%\cinelocal.

Getting started

  1. Open the app and click Select movies folder (the folder is read recursively).
  2. Paste your free TMDB key: create an account at themoviedb.org → Settings → API → copy the "API Key" (or the "Read Access Token"). Use Test to validate it.
  3. The app identifies each file by its name (ignoring 1080p, BluRay, [YTS]... and using the year, if present), downloads the poster, synopsis, rating, cast, etc. in the background and stores everything locally.

Usage

  • All movies (default screen): rows above the grid (← → arrows to move through the movies) that disappear when empty or while searching, and scroll together with the grid. Use Edit home (in Settings) to choose which rows appear — Continue watching, For you, History, Favorites, Watchlist and any of your collections — and in what order (by default Continue watching and For you).

  • Grid: click a poster to open the details (in the same window; ← Back, Esc or Alt+← return to the list exactly where you were). Ctrl/Shift+click selects several movies; right-click opens the menu (favorite, watched, collections, tags, update, fix match). In details, use More → More info for file size, budget, box office, production countries and companies, languages, franchise and other TMDB data. Each movie can have multiple colored tags; add or remove them from details or the grid menu and change their color from a tag's context menu. Click a tag on a movie's details page to filter the library to that tag.

  • Instant search (Ctrl+F) by title, actor, director or genre; sorting by title, year, rating, popularity, vote count, runtime, recently added or best match for you (ascending and descending where applicable).

  • Advanced search (magnifier button next to the search box): opens a panel where you combine any of the filters below; only the ones you fill in count, and a movie must match all of them. It works on the data already saved locally, on top of the section selected in the sidebar. The button shows how many results you will get; Show results applies it and a bar with Clear search appears above the grid to go back to the whole catalog. Use Save… to keep the current filters under a name and load them again from the “Saved filters” list next time.

    • Content: movies or series, runtime (the runtime limits only apply to movies; series are not filtered by it).
    • Release and ratings: year (a range or a single year), TMDB rating and number of votes.
    • Genre (any or all of the chosen ones) and age rating.
    • Production countries, spoken languages and movie tags.
    • People: directors and cast, picked from the ones in your library.
    • My library: watched/unwatched, favorites, watchlist, in progress, your collections, your tags, your own star ratings and how recently the movie was added.

    Number fields accept typed values, the ▲▼ buttons or preset values from the ▾ menu; lists have Select all and Clear. Age ratings are downloaded with the metadata (use Force update on existing movies).

    Filters

  • Sidebar: All, Favorites, Watched/Unwatched, Collections (a movie can be in several), Tags (below Collections), Genres and Years (decades). Click a tag to view its movies; right-click it to edit its name and color and select which movies belong to it. Right-click a collection to rename or delete it. History lists everything you have watched, or started to watch, with the most recent first (movies marked as watched before the dates were recorded come last).

  • Watch opens the built-in player (based on libVLC): Space pauses, ←/→ skip 10 s, ↑/↓ change the volume, M toggles mute, F toggles fullscreen and Esc goes back. It needs VLC installed (on Linux install.sh installs it) and, on Linux, X11 or XWayland (Wayland sessions run through XWayland automatically; a pure Wayland session without XWayland is not supported). Without that, or if you set a player in Settings (e.g. mpv --fs), the movie opens in the external player (xdg-open on Linux, the associated program on Windows). Past 95% the movie is marked as watched; at the end of an episode, the player offers the next one (and in series, the ▶| button next to pause skips to it). On the grid, a bar on the poster shows how much has been watched, and Continue watching (sidebar) gathers what is half-watched (series included, with the episode in progress); "Watch from the start" is in the right-click menu. Volume and picture adjustments are remembered between movies; the player's gear (⚙) also has speed (0.5x to 2x) and subtitle delay, and the progress bar shows the time at the point under the mouse. In Settings you choose the default player (built-in or external); right-click a movie (or use the player's ⚙ gear) to open it in the other one. The built-in player remembers where you stopped and resumes from there, even after closing the app. In the player, the ⚙ gear gathers Audio and Subtitles (tracks that come in the file) and Picture (brightness, contrast, color and sharpness). In fullscreen, the controls and the pointer disappear after a few seconds without moving the mouse.

    Player

  • Series: files with S01E02, 1x02 or Season 1 Episode 2 in the name (or inside Season N folders) are grouped under a single series poster, which opens the list of seasons and episodes, each with its own metadata. (Portuguese names such as Temporada 1 Episódio 2 are recognized too.) Series appear with a “Series” badge on the grid and are left out of collections.

    Series

  • Watchlist: movies you want to watch in the future. Add them with the Watchlist button in the details or from the right-click menu; the list lives in the sidebar.
    Description

  • For you: recommendations from your own library, shown as a row on the home screen and as its own section in the sidebar, with the % each title matches your taste. The row is always ordered by match, whatever sort is chosen for the rest of the home screen; the sidebar section starts by best match (Sort → Best match for you) and can be sorted freely (that choice is forgotten when you leave it). It works offline, from the metadata already saved, and is recalculated whenever you favorite, rate, mark as watched, queue or update something. The exact criteria:

    1. What counts as taste. Each title with metadata gets a score from -1 to 1, the sum of (limited to that range):

      Signal Weight
      Your stars: 1★ / 2★ / 3★ / 4★ / 5★ (half stars in between) -1.0 / -0.5 / +0.1 / +0.6 / +1.0
      Favorite +0.8
      In the watchlist +0.2
      Watched, without stars +0.1

      Titles with a positive score are what you like; a negative one counts against. Nothing happens until at least one title has a score.

    2. The profile is the average of those titles, weighted by their score:

      • Genres: the average of their genres, where rare genres in your library count more than common ones (weight ln((N+1)/(n+1)) + 1; N titles, n with that genre). Series genres such as "Action & Adventure" are split into their parts. Negative scores subtract.
      • Rating: the average TMDB rating of what you like. The rating of a title with few votes is pulled towards 6.0: (rating × votes + 6.0 × 200) / (votes + 200).
      • Era: the average year of what you like, and how spread out those years are (at least 10 years).
      • Language: the share of what you like (by score) in each original language.
      • Director, cast and franchise: how much you love each one, from 0 to 1: 1 - ∏(1 - score) over the titles you like with that director, one of the 5 top-billed actors or that franchise (so two 5★ movies from the same director make 100%), minus the same amount computed from the titles you dislike (never below 0). Era, rating and language only look at the titles you like.
    3. The match of a title, from 0 to 100%:

      • genres = cosine similarity between the title's genres and the profile's genres (0 if they share none);
      • rating = 100% if the title is as good as what you like or better, else it falls as exp(-gap² / 2), where gap is the difference in TMDB rating points (50% if you have not rated anything with TMDB votes);
      • era = exp(-((year - average year) / spread)² / 2) (50% if the year is unknown);
      • language = your share for the title's original language (0 if unknown or never seen);
      • base = genres × (0.55 + 0.45 × (0.5 × rating + 0.25 × era + 0.25 × language)), so without genres in common there is no base;
      • bonus = 1 - ∏(1 - k × love) over the title's directors (k = 0.5), top-5 cast (0.25 each) and franchise (0.6), where love is from the profile (0 to 1);
      • match = base + (1 - base) × bonus.
    4. Who is recommended. Titles with metadata that you have not watched, favorited or rated, with a match of at least 40%; the best 100, ties in alphabetical order. The poster shows the match in its top left corner.

  • Similar movies: the details of a movie end with a row of movies from your library that resemble it (genres, director, cast, franchise and era). It works offline, from the metadata already saved.

  • Franchises: movies that belong to the same TMDB franchise (2 or more in your library) are put into a collection named after it, automatically, after each metadata update (Metadata → Create franchise collections runs it on demand). A movie is linked once, so taking it out of the collection by hand sticks. Movies that already have metadata need a Force update the first time, to learn their franchise.

  • File badges: the details show the resolution, video codec, audio and size of the file (1080p, H.264, AC3 5.1, 2.1 GB). They are read from the files in the background with libVLC (no extra install).

  • Duplicates (Metadata → Find duplicate files…): lists movies and episodes that exist in more than one file, with size and quality side by side, and opens the folder of each so you can delete the ones you don't want.

  • Statistics (Metadata → Statistics…): movies, series and episodes, time watched and left to watch, library size, your average rating, and the most common genres, decades, directors and actors.

    Statistics

  • Rescan (F5): runs when the app opens; detects new movies and removes the ones that disappeared from disk. Files moved to another subfolder keep their metadata, collections and flags.

  • Edit metadata: in the details of a movie or series, ⋮ → Edit metadata… changes the title, year, runtime, genres, director, tagline, overview and cast, and lets you pick your own cover image. What you edit (and the cover) is kept when the metadata is updated; Reset to original… discards your edits and downloads the metadata again.

  • Metadata: fetch pending items, force an update of all (keeps confirmed matches) or review movies without a match. When the app is not sure (remakes, ambiguous title, nothing found), the movie gets a Review badge and you pick the right one in a dialog.

  • Automatic subtitles (optional): paste a free OpenSubtitles API key in Settings and the subtitle of every new movie or episode is downloaded in the background, in the Subtitle language (or the metadata language, if that is left on "File default"). It is saved next to the video (Movie.pt-BR.srt), so it loads every time you watch it again, in any player. Videos that already have a subtitle are skipped. The free account has a daily download limit: what is left waits and is downloaded on the next scan.

  • Metadata language: default en-US (English is used as a fallback when a translation is missing); change it in Settings.

Where the data lives

What Where
Library, collections, flags (SQLite) ~/.local/share/cinelocal/library.db
Posters, thumbnails and backdrops ~/.cache/cinelocal/images/
Settings (includes the TMDB key) ~/.config/cinelocal/settings.json (permission 600)

On Windows: library in %LOCALAPPDATA%\cinelocal\library.db, posters in %LOCALAPPDATA%\cinelocal\cache\images\ and settings in %APPDATA%\cinelocal\settings.json.

Your video files are never modified.

Code structure

main.py                     entry point
cinelocal/
  config.py                 paths, extensions, settings (JSON)
  db.py                     SQLite: movies, collections, flags
  scanner.py                folder scanning and filename cleanup
  library.py                syncs disk ↔ database (new, removed, moved)
  recommend.py              "For you": match of each title with your taste
  similar.py                similar movies from the saved metadata
  franchises.py             which movies go into which franchise collection
  duplicates.py             the same movie or episode in more than one file
  mediainfo.py              resolution/codecs of a file (libVLC) and the badges
  vlc_setup.py              installs VLC (libVLC) automatically when the computer does not have it
  stats.py                  numbers for the statistics page
  tmdb.py                   TMDB HTTP client
  opensubtitles.py          OpenSubtitles HTTP client: finds and saves subtitles next to the videos
  parsing.py                parses responses and picks the best match
  metadata_service.py       identifies the movie, downloads metadata and images
  images.py                 poster/thumbnail/backdrop cache
  workers.py                threads (parallel updates, background tasks)
  service.py                in-memory state + operations used by the interface
  filters.py                filters, advanced search, sorting and counts
  player.py                 opens the movie in the external player
  ui/                       theme (QSS), grid, sidebar, windows and dialogs
  ui/player_page.py         built-in player (libVLC)
  ui/advanced_search.py     advanced search panel (overlay)
  ui/home_dialog.py         “Edit home”: rows of the home screen
  ui/edit_dialog.py         manual editing of metadata and cover
  ui/duplicates_dialog.py   list of duplicate files
  ui/stats_dialog.py        statistics page
tests/test_core.py          tests for the logic without a GUI

Tests: python3 -m unittest discover -s tests

Notes

  • This product uses the TMDB API but is not endorsed or certified by TMDB.
  • Recognized formats: mkv, mp4, avi, mov, wmv, m4v, webm, flv, ts. To change them, edit VIDEO_EXTENSIONS in cinelocal/config.py.

About

A desktop software made to organize local movies for free. Completely ad-free and offline. It uses TMDB API for metadata.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages