Sign inSign up

pbalazs123/felirathub

By pbalazs123

โ€ขUpdated 11 days ago

Hungarian & English subtitles for Stremio from feliratok.eu and OpenSubtitles

Image
0

3.8K

pbalazs123/felirathub repository overview

FeliratHUB logo

โ FeliratHUB

Hungarian & English subtitles for Stremio

Subtitles from SuperSubtitlesโ  (feliratok.eu) and OpenSubtitles in one list, for the right episode, with correct Hungarian accents, best match first.

GitHubโ  โ€ข Releasesโ  โ€ข Report a bugโ 


โ โœจ Features

  • ๐Ÿ”— Two sources, one list: OpenSubtitles first; SuperSubtitles fills in the languages OpenSubtitles has nothing in, or nothing that matches your file at least 70%
  • ๐Ÿ‡ญ๐Ÿ‡บ Hungarian and English subtitles, or only one of them
  • ๐Ÿ” Right episode, right film: other episodes, seasons and same-name films are filtered out
  • ๐Ÿ“ฆ Season packs: the episode is taken out of ZIP and RAR packs on the fly
  • ๐Ÿ”ค Correct accents: everything arrives as UTF-8, so ล‘ and ลฑ display correctly
  • ๐Ÿ† Best match first: the best 2 per language (all of them when the player sends no file name), ranked by how well they fit what you play: the source and release group count most (and the cut for films), shown as e.g. "Magyar ยท 92%"
  • ๐ŸŽญ Forced subtitles: subtitles for the Hungarian dub ("szinkronoshoz") are listed as "Magyar ยท Forced", after the full ones
  • ๐ŸŽฏ Configure page to choose languages and sources; install with one click
  • ๐Ÿ’พ History and disk cache in /data: mount a volume there and they survive restarts
  • ๐Ÿ“ค Your own subtitles: upload a subtitle on the dashboard for a film or episode; it is offered with the others as the source "Uploaded"
  • ๐Ÿ“Š Dashboard with sign-in (DASHBOARD_PASSWORD): request history, your uploads, source status, caches and system health
  • ๐Ÿ”’ Hardened: non-root, no package managers in the image, zip-bomb and size limits

โ ๐Ÿท๏ธ Tags

TagDescription
latestLatest release
0.1.2, 0.1A specific release, or the newest of a minor version
devTest builds of upcoming changes (may be unstable)

All images support linux/amd64 and linux/arm64 (e.g. Raspberry Pi 4/5). The same images are also on ghcr.io/pbalazs123/felirathub.

โ ๐Ÿš€ Quick Start

services:
  felirathub:
    image: pbalazs123/felirathub:latest       # or :dev for test builds
    container_name: felirathub
    restart: unless-stopped
    ports:
      # Only reachable from this host; put a reverse proxy with HTTPS in front of it.
      - "127.0.0.1:7000:7000"
    # Optional settings: remove the "#" in front of "environment:" and of the lines you need.
    # environment:
    #   DASHBOARD_PASSWORD: change-me          # enables the admin dashboard at /dashboard
    #   OPENSUBTITLES: "0"                     # OpenSubtitles off for new installs
    #   PUBLIC_URL: https://subs.example.com   # only if links come out with the wrong address
    volumes:
      - felirathub-data:/data                  # request history (SQLite) and disk cache survive restarts

volumes:
  felirathub-data:
docker compose up -d

The same file is in the repository: curl -O https://raw.githubusercontent.com/pbalazs123/felirathub/main/docker-compose.yml

โ Docker Run
docker run -d \
  --name felirathub \
  --restart unless-stopped \
  -p 127.0.0.1:7000:7000 \
  -v felirathub-data:/data \
  pbalazs123/felirathub:latest

Then open http://localhost:7000/, choose your settings and click Install.

โ ๐Ÿ” HTTPS (required for remote access)

Stremio only accepts plain-HTTP addons from localhost. To use FeliratHUB from other devices, put it behind a reverse proxy with HTTPS. Example with Caddy:

subtitles.example.com {
	reverse_proxy 127.0.0.1:7000
}

If Caddy runs in Docker on the same network, use reverse_proxy felirathub:7000. Then install the addon from https://subtitles.example.com/configure.

โ โš™๏ธ Environment Variables

All optional.

VariableDefaultWhat it does
DATA_DIR/dataFolder for the request history and statistics (mount a volume there); if it isn't writable, they're kept in memory
CACHE_DIR/data/cacheFolder for the disk cache, so it survives restarts; if it isn't writable, caching stays in memory
DASHBOARD_PASSWORDโ€“Enables the dashboard at /dashboard; without it nothing is recorded
PUBLIC_URLโ€“Public address, e.g. https://subs.example.com, if links come out wrong behind a proxy
OPENSUBTITLES10 turns OpenSubtitles off for new installs
PORT7000Port to listen on
APP_BASE_PATHโ€“Serve under a subpath, e.g. /felirathub
HISTORY_DAYS30Days the request history is kept (daily totals: 90). When kept in memory it's also capped at 50,000 requests
CACHE_DIR_MAX_MB500Size limit of the disk cache
SEARCH_CACHE_HOURS12How long search results are cached
RATE_LIMIT_PER_SECOND2Requests per second to each source
DEBUG_SUBS01 logs every subtitle search

โ ๐Ÿ”„ Updating

docker compose pull && docker compose up -d

Coming from SuperSubtitles? FeliratHUB is a separate addon (id community.felirathub): install it from its configure page and remove the old SuperSubtitles addon in your app.

โ โ“ Troubleshooting

  • No subtitles? The title may have none in your languages, or a source or language is switched off on the configure page.
  • See what's happening: run with -e DEBUG_SUBS=1 and check docker logs felirathub.

FeliratHUB is unofficial and not affiliated with SuperSubtitles, OpenSubtitles or Stremio.

Tag summary

Content type

Image

Digest

sha256:d585d18f9โ€ฆ

Size

65.2 MB

Last updated

20 days ago

docker pull pbalazs123/felirathub