@turtletank I sent you a PM with a bug I’m running into when using ADBTuner with channels dvr built in USB HDMI Capture method. Hopefully if you have time you can take a look at it. Thanks.
Thanks for this Xfinity custom configuration! Worked perfectly for me in my Xfinity on FireStick setup.
Would it be possible to add commands[] to this like with ADB_LOOP? After much trial and error, I was forced to do this to get two actions to run:
{
"ADB": {
"command": "input keyevent KEYCODE_DPAD_DOWN"
},
"condition": {
"check": "||TARGET_URL_OR_IDENTIFIER||",
"cast": "string",
"equals": "3"
}
},
{
"ADB": {
"command": "sleep 1"
},
"condition": {
"check": "||TARGET_URL_OR_IDENTIFIER||",
"cast": "string",
"equals": "3"
}
},
Lol, trying to recreate script actions instead of just launching a script. I get it, but it's way past time to consider doing that.
ADBTuner loads configurations via a web interface, rest API, and from remote git repositories. Allowing shell scripts as configurations turns all three of these into easy avenues for remote code execution.
Maybe we are all generally ok with the risk of someone sneaking code onto a locked down Android TV device, but I'm not willing to let any network connected device run shell code in ADBTuner's container. Even if I enforced authentication it would still be too risky IMO.
It's not unusual for applications to have a small configuration language like this. I'd rather it not exist at all, but I added a few things to help people out who needed to make some simple customizations to what ADBTuner was already doing internally. Maybe I've gone too far with it, that's fair, but I don't intend to add anything after these new conditional statements are done.
Channels DVR does not provide a path for an attacker to upload an arbitrary script file and execute it on the host. Arbitrary code execution represents a more significant risk than someone deleting some media files or changing DVR settings.
The Channels Team also had to put out a fire a couple of years ago because it's very easy for a simple misconfiguration to accidentally expose a web service in an unintended way.
I don't feel that it's ok to knowingly build insecure software and then expect that the end user knows they have to secure it and that they know how to do so.
ADBTuner was never meant to be a platform for development and exploration in this space.
When Channels DVR was released it was a huge breath of fresh air compared to other self-hosted DVR options (MythTV, etc.). Yeah it didn't do "all the things" but you could plug in a HDHomerun device, install the Channels DVR software and be up and running in a couple of hours instead of wasting a weekend just trying to figure out how to load some guide data. Somehow they made it easier than setting up a new TiVo.
I haven't been entirely successful, partly because everything is a battle these days, but I've been trying to do the same thing and make this whole process easier for people who just want to watch some TV and don't have the desire, or free time, to spend a month learning new topics trying to figure all of this out.
A few people here have been a huge help with this goal in sharing their knowledge of specific apps and platforms in the form of "channel configurations."
Sharing JSON configuration files that have limited capabilities will always be safer than sharing shell scripts. Even if the script author is trusted, a bad copy/paste could have disastrous results.
Every new option, every new feature, adds complexity. I'm just trying to thread the needle here and find a good balance.
ah4c is a great piece of software and, as you've noticed, is the shell script runner you are looking for.
I'm ok with ADBTuner being the "n00b" option, the gateway drug that eventually leads hobbyists to ah4c.
I apologize if my search skills are failing me. I am using a Firestick 4k and an ONN 4k as my tuners, with DirecTV Stream as the service. Frequently I find that a channel change has failed when I start playing back a recording. Any recommendations on troubleshooting? I am not seeing anything obvious in the logs on my ADB Tuner container.
Right - so if I recorded something on NBC the previous night but want to record something on Bravo the following morning, it'll record at the right time for Bravo but the recording will show the device stayed on NBC. I just restarted my ADB Tuner container, it's showing 20260723-1 for the version.
Ah OK. I'm using David B.'s DTV configuration, I'll clone & swap in that command and give it a shot. Thanks!
Any tips on automatically disabling closed captions on record start?
Oh that makes sense. I don't think I've re-extracted the channel list through OliveTin since I first set it up a while back
Thanks for the help.
For Closed Captioning, that should be set on the apps used by your Firestick and ONN. It’s either On or Off.
Open the DTV stream app your stick and set captioning how you want it. Make sure to check the other device.
No maintenance required. I can't remember the last time I had a failed tune with this one on FireStick 4K Max (Gen1 or Gen2) devices:
{
"name": "DirecTV X",
"author": "David B.",
"version": "X.X.X",
"description": "Fast tuning for DirecTV. Prevent are you still there prompt from showing.",
"uuid": "3c7d5a19-6f2e-4b8a-9d3f-8e1c4b7a5f92",
"global_options": {
"wait_for_video_playback_detection": true,
"use_fixed_delay": false,
"fixed_delay_seconds": 0,
"check_for_and_clear_whos_watching_prompts": false,
"wait_after_post_playback_start_commands_seconds": 0
},
"pre_tune_commands": [],
"tune_commands": [
"am start -S -W -n '||TARGET_PACKAGE_NAME||'/$(cmd package resolve-activity -a android.intent.action.MAIN '||TARGET_PACKAGE_NAME||' | awk -F= '/name=/{print $2; exit}') -a android.intent.action.VIEW -d '||TARGET_URL_OR_IDENTIFIER||'"
],
"post_playback_start_commands": [],
"post_tune_commands": [
"input keyevent KEYCODE_MEDIA_STOP",
"input keyevent KEYCODE_HOME"
],
"timed_keep_active_commands": [
{
"run_every_minutes": 60,
"commands": [
"input keyevent KEYCODE_MEDIA_PLAY"
]
}
]
}
Yes, and that's actually been the case for a quite some time. You can find numerous posts of mine on the forum emphasizing that very thing. It's just not worth it to have failed recordings trying to save a few seconds when watching a channel live.
If you're not force stopping the app after a show is done or adding -S to it on a tune launch you're going to have a lot of problems imo.
Yes, but DirecTV syncs the preference. So if I watch something on the app (because I want captions) but I forget to turn off captions, they get burned into the recordings. Which is annoying (on Jeopardy), but survivable if this change ups the reliability.
That... is an excellent idea
That's why I stated that they're On or Off.
That all makes a lot of sense. I've updated my config & set up the separate profile. I see there's an option to not prompt for profile on launch as well, so it sounds like this will be perfect. Thanks for the help!
Looks like the same config I'm using. Everything appears to be identical with the exception of the uuid.
"uuid": "eeadcfd5-0b2c-4f9a-858b-05073ba918b2",
There's a lot of talk on this thread about YTTV changing their app back in June/July time frame.
Did that ever get worked out? Does YTTV and other apps still work with ADBTuner?