https://github.com/mikedp/mythtv-stuff
Bits and pieces for MythTV
https://github.com/mikedp/mythtv-stuff
Last synced: over 1 year ago
JSON representation
Bits and pieces for MythTV
- Host: GitHub
- URL: https://github.com/mikedp/mythtv-stuff
- Owner: MikeDP
- License: mit
- Created: 2024-01-25T08:53:15.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-08T15:40:01.000Z (over 2 years ago)
- Last Synced: 2025-01-10T14:43:59.516Z (over 1 year ago)
- Language: Python
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MythTV-Stuff
## Bits and pieces for MythTV
My current MythTV system[^1] is an ASRock J5040-ITX Pentium Silver, 8GB ram, 250GB SSD for the OS (Ubuntu Mate 22.04 LTS), 1TB WD Red for the data drive and has three USB DVB-T2 tuners. I'm running MythTV v 33.1.
[^1]: As of February 2024.
1 - **MythRecEnd.py** : This script can be installed as a USER JOB or SYSTEM EVENT (Recording Ends) to run immediately on completion of a recording job. It creates a user readable name comprised of the %TITLE%-%SUBTITLE%-YYMMDDHHMM.ext as a symlink to the recording in a separate folder which can then be used as the source for other clients (e.g. Jellyfin, Kodi, VLC... anything that supports DLNA).
2 - **MythRecDel.py** : This script can be installed as a SYSTEM EVENT (Recording Deleted) to run immediately on deletion of a recording job. It re-creates the symlink and then deletes it.
Both these scripts are called with the same arguments. It's important the arguments are double quoted to prevent spaces in the title/subtitle resulting in them being broken into multiple arguments.
```
/usr/bin/python3 /path/to/script/MythRecEnd.py "%FILE%" "%TITLE%" "%SUBTITLE%"
/usr/bin/python3 /path/to/script/MythRecDel.py "%FILE%" "%TITLE%" "%SUBTITLE%"
```