edcb-bridge
A bridge server that lets KonomiTV's recording reservation features for the EDCB backend work with EPGStation (v2 / v3) or mirakc.
Installation
# mise via github release
mise use -g github:eggplants/edcb-bridge
# mise via pipx
mise use -g pipx:edcb-bridge
# pipx
pipx install edcb-bridge
# pip
pip install edcb-bridge
Docker
docker pull ghcr.io/eggplants/edcb-bridge
docker run -d -p 4510:4510 \
-e MIRAKC_URL=http://192.168.1.10:40772 \
-e EPGSTATION_URL=http://192.168.1.10:8888 \
ghcr.io/eggplants/edcb-bridge
docker compose
See: https://github.com/eggplants/mb/blob/main/compose/compose.yaml
# docker compose up -d edcb-bridge
# docker compose logs -f edcb-bridge
services:
edcb-bridge:
# https://github.com/eggplants/edcb-bridge/pkgs/container/edcb-bridge
image: ghcr.io/eggplants/edcb-bridge
container_name: edcb-bridge
restart: unless-stopped
ports:
- 4510:4510
environment:
TZ: Asia/Tokyo
MIRAKC_URL: http://mirakc:40772
RECORDER: epgstation
EPGSTATION_URL: http://epgstation:8888
RECORDED_DIR: /mnt/hdd1/recorded
depends_on:
- mirakc
- epgstation
CLI
edcb-bridge \
--listen-port 4510 \
--mirakc-url http://192.168.1.10:40772 \
--epgstation-url http://192.168.1.10:8888 \
--recorder epgstation \
--recorded-dir /mnt/hdd1/recorded
Help
$ edcb-bridge --help
usage: edcb-bridge [-h] [--listen-host LISTEN_HOST] [--listen-port LISTEN_PORT] [--mirakc-url MIRAKC_URL]
[--recorder {epgstation,mirakc}] [--epgstation-url EPGSTATION_URL] [--recorded-dir RECORDED_DIR]
[--mirakc-content-path-template MIRAKC_CONTENT_PATH_TEMPLATE] [--start-margin START_MARGIN]
[--end-margin END_MARGIN] [--epg-cache-ttl EPG_CACHE_TTL] [--http-timeout HTTP_TIMEOUT]
[--log-level {DEBUG,INFO,WARNING,ERROR}] [-V]
EDCB (EpgTimerSrv) CtrlCmd compatible bridge to EPGStation / mirakc for KonomiTV.
Every option can also be given by the environment variable shown in brackets.
options:
-h, --help show this help message and exit
--listen-host LISTEN_HOST address to listen on for CtrlCmd [LISTEN_HOST] (default: 0.0.0.0)
--listen-port LISTEN_PORT port to listen on for CtrlCmd [LISTEN_PORT] (default: 4510)
--mirakc-url MIRAKC_URL mirakc (or Mirakurun) URL to read services and programs from [MIRAKC_URL]
(default: http://127.0.0.1:40772)
--recorder {epgstation,mirakc} recording backend [RECORDER] (default: epgstation)
--epgstation-url EPGSTATION_URL EPGStation URL (recorder=epgstation) [EPGSTATION_URL] (default:
http://127.0.0.1:8888)
--recorded-dir RECORDED_DIR recording folder as seen by KonomiTV [RECORDED_DIR] (default:
/mnt/hdd1/recorded)
--mirakc-content-path-template MIRAKC_CONTENT_PATH_TEMPLATE
recorded file name (recorder=mirakc) [MIRAKC_CONTENT_PATH_TEMPLATE] (default:
{start:%Y%m%d%H%M}_{sid}_{title}.m2ts)
--start-margin START_MARGIN start margin in seconds shown in KonomiTV (display only) [START_MARGIN]
(default: 0)
--end-margin END_MARGIN end margin in seconds shown in KonomiTV (display only) [END_MARGIN] (default: 0)
--epg-cache-ttl EPG_CACHE_TTL seconds to cache the program guide [EPG_CACHE_TTL] (default: 60.0)
--http-timeout HTTP_TIMEOUT HTTP timeout in seconds [HTTP_TIMEOUT] (default: 20.0)
--log-level {DEBUG,INFO,WARNING,ERROR}
log level [LOG_LEVEL] (default: INFO)
-V, --version show program's version number and exit
Environment variables
| Variable | Default | Description |
|---|---|---|
LISTEN_HOST / LISTEN_PORT |
0.0.0.0 / 4510 |
CtrlCmd listen address |
MIRAKC_URL |
http://127.0.0.1:40772 |
Source of service and program information |
RECORDER |
epgstation |
Recording backend (epgstation / mirakc) |
EPGSTATION_URL |
http://127.0.0.1:8888 |
EPGStation |
RECORDED_DIR |
/mnt/hdd1/recorded |
Recording folder as seen from KonomiTV. Used to convert between EDCB's destination folder (absolute path) and EPGStation's directory (relative path) |
MIRAKC_CONTENT_PATH_TEMPLATE |
{start:%Y%m%d%H%M}_{sid}_{title}.m2ts |
File name used when RECORDER=mirakc ({start} {onid} {sid} {eid} {title}) |
START_MARGIN / END_MARGIN |
0 |
Margins shown on KonomiTV's recording settings screen (display only) |
EPG_CACHE_TTL |
60 |
Program information cache lifetime in seconds |
HTTP_TIMEOUT |
20 |
HTTP timeout in seconds |
LOG_LEVEL |
INFO |
DEBUG logs every command |
KonomiTV configuration
# by default located in: /opt/KonomiTV/config.yaml
# restart pm2 service after changed: sudo pm2 restart KonomiTV
general:
backend: EDCB
always_receive_tv_from_mirakurun: true
edcb_url: tcp://127.0.0.1:4510/
mirakurun_url: http://127.0.0.1:40772/
Using mirakc as the recording backend
Add the recording settings to mirakc's config.yml and mount the recording folder.
recording:
basedir: /var/lib/mirakc/recording
mirakc:
volumes:
- /mnt/hdd1/recorded:/var/lib/mirakc/recording
With RECORDED_DIR=/mnt/hdd1/recorded in this setup, the destination subfolder specified in KonomiTV is
reflected in contentPath.
Limitations
- EPGStation
- Manual reservations cannot be disabled (EPGStation has no disabled state; they can still be deleted)
- Deleting a reservation created by a rule leaves it behind as a "skipped (disabled)" reservation, due to how EPGStation works
- EDCB-specific settings such as priority, margins, program tracking, exact-time recording, and post-recording actions are ignored
- Automatic reservations do not save "fuzzy search", "genre/time exclusion", "paid programs only", or the memo field
- Day-of-week and time ranges are rounded to whole hours
- Only subfolders under
RECORDED_DIRcan be used as the destination. File name templates are passed through as-is in EPGStation'srecordedFormatsyntax (e.g.%TITLE%)
- mirakc
- Only program-based reservations are supported (time-based reservations, automatic reservations, and changing settings are not supported; disabling is treated as deletion)
- mirakc does not return the TSID, so it is derived from the NID for terrestrial channels and from the channel
name (
BS15_1/CS4) for BS/CS (it cannot be derived for other channel types such as BS4K)
- Past programs (
EnumPgArc), recorded information (EnumRecInfo), and station logos return empty results (KonomiTV falls back to its bundled logos)
License
Metadata
Release files for edcb-bridge 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| edcb_bridge-0.0.2.tar.gz | 31.9 kB | Without provenance | Details for edcb_bridge-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| edcb_bridge-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for edcb_bridge-0.0.2-py3-none-any.whl |
Total release size: 70.9 kB
Release files / edcb_bridge-0.0.2.tar.gz
| Download URL | edcb_bridge-0.0.2.tar.gz |
|---|---|
| Size | 31.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c1ce43238a72e5556447842bd70b58eed7b5e4cc0593eb13ee326ba6dcb92123
|
|
BLAKE2b-256 checksum How to use checksums |
73dd13250b38e2cc00529c8ce736d05821b98516ceb5f12111238c58cc192614
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / edcb_bridge-0.0.2-py3-none-any.whl
| Download URL | edcb_bridge-0.0.2-py3-none-any.whl |
|---|---|
| Size | 39.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a03b847c0d9242d9a5119854f87d0ccd9a8b299f6c48567ffbd550d323f74507
|
|
BLAKE2b-256 checksum How to use checksums |
0375a04100d83ed932a72840ce16262b3d8ded882218a1e9d69696b50d68bdc6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for edcb-bridge 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.