This is a simple script for converting TTML subtitle files to SRT ones. Tested with TTML files on tv.nrk.no.
It assumes the data is structured like this:
<tt>
<body>
<div>
<p>(...)</p>
| # move the mouse around to avoid the inactivity timeout on some websites | |
| # https://github.com/facastagnini | |
| # requires cliclick | |
| # brew install cliclick | |
| while true | |
| do | |
| /usr/local/bin/cliclick "m:12,34" | |
| sleep 60 | |
| /usr/local/bin/cliclick "m:120,34" |
| #!/bin/bash | |
| #################################### | |
| # | |
| # Backup via SCP | |
| # | |
| # Executes daily as defined by crontab -e | |
| # 0 0 * * * bash /home/pi/scripts/backup.sh | |
| # | |
| # Don't forget to generate an ssh key and add it to the mac mini |