OliveTin for Channels: An Interface for Misc Channels DVR Scripts & Tricks

So there was an event in the guide in that lane at a time 1 minute from when you wanted to start recording? If so, that's interesting and may be a question for @KineticMan -- but generally with these event-based links you're probably best off not adding any padding to the front of the recording.

Yeah, this totally makes sense that this would cause problems now that I think about it. I haven't seen this before with Peacock and Paramount+ which I also used to start 1 minute early, but I've removed all the padding for these passes and we'll see if things work as expected tomorrow :crossed_fingers:

1 Like

Okay, so removing the padding fixed the tuning issue...however, it got stuck on this screen and didn't actually start playing the event:

Is that something that can be fixed in ADBTuner? (Happy to take this to a different thread if this is now more ADBTuner specific, but you know I'd still just bug you over there @bhnf :smile:)

You are using the "Apple TV" configuration like in my screenshot above correct? Because looking at that config "Watch" should have been selected for you:

{
  "name": "FruitDeepLinks - AppleTV v1.0 (FireTV and AndroidTV)",
  "author": "bnhf",
  "version": "1.0",
  "description": "AppleTV for FruitDeepLinks. Compatible with FireTV and AndroidTV devices.",
  "uuid": "8cf23241-09e3-4b79-90fe-576086707462",
  "global_options": {
    "wait_for_video_playback_detection": false,
    "use_fixed_delay": true,
    "fixed_delay_seconds": 5,
    "wait_after_post_playback_start_commands_seconds": 0
  },
  "pre_tune_commands": [
    "input keyevent KEYCODE_MEDIA_STOP"
  ],
  "tune_commands": [
    "am start -W -a android.intent.action.VIEW -d '||TARGET_URL_OR_IDENTIFIER||' '||TARGET_PACKAGE_NAME||'"
  ],
  "tune_match_text_commands": [
    {
      "match_text": [
        "watch",
        "live",
        "mls",
        "mlb",
        "don't allow"
      ],
      "commands": [
        "input keyevent KEYCODE_DPAD_CENTER"
      ],
      "start_checking_after_seconds": 5
    }
  ],
  "post_tune_commands": [
    "input keyevent KEYCODE_HOME"
  ]
}

Yup:

Using channel configuration: FruitDeepLinks - AppleTV v1.0 (FireTV and AndroidTV) (bnhf) (8cf23241-09e3-4b79-90fe-576086707462) 

Further down in the ADBTuner logs:

Starting tune match text monitoring. Match commands: [{'match_text': ['watch', 'live', 'mls', 'mlb', "don't allow"], 'commands': [{'type': 'ADB', 'command': 'input keyevent KEYCODE_DPAD_CENTER'}], 'start_checking_after_seconds': 5}] 
Tuning completed after 12.4 seconds. Display was None, application (com.apple.atve.amazon.appletv) was running. 
On screen text: '“tv formula 1 - baku city circuit baku  =d -  a et ee  ee af ey ee ete wt soy' 
Text match result: Text to match: ['watch', 'live', 'mls', 'mlb', "don't allow"]. Matches found: None. 
On screen text: '“tv formula 1 - baku city circuit baku  c= -  sn er a sw (aes ee' 
Text match result: Text to match: ['watch', 'live', 'mls', 'mlb', "don't allow"]. Matches found: None. 
On screen text: 'sa ae == a ae we os awe =' 
Text match result: Text to match: ['watch', 'live', 'mls', 'mlb', "don't allow"]. Matches found: None. 
On screen text: '“tv formula 1 - baku city circuit baku  =d -  a et ee  ee af ey ee ete wt soy' 

And that just continues to repeat.

This might be something to bring up with @turtletank then in the ADBTuner thread. It should be matching either "Live" or "Watch" and then sending a DPAD_CENTER. Maybe there are some tweaks that could be made to Tesseract OCR to more accurately read the text in those buttons.

Your list of channels is old and out of date for youtube tv for adbtuner. Please update it. I really like the way you did dtvstream, Unfortunately I am no longer with them as they raised my bill.

What Action are you using where you're seeing an existing list of YouTubeTV channels?

Unfortunately, YTTV does not have an API like DTV does where we can grab your subscribed channel list (at least that we've found). And even then, it'd be unlikely to include the Gracenote Station ID, which is a very nice perk of the DTV lists we've been able to capture.

1 Like

I am using the create a youtube tv m3u or json action all the way at the end of the list

A link extractor addon for firefox picked up on the urls so there must be a way to use that

That Action requires you to supply a CSV, M3U or JSON file as a starting point, and then it'll create an output file in one of several formats. It'd be great to be able to pull one's YTTV channel list from the guide or wherever, so if you can figure out the basics, I can automate it fully. From there, we can either populate those channels into ADBTuner via its API, or create an ah4c M3U.

this is what I have. If you need anything else let me know:

bingo! see below

except the url to watch a channel is https://tv.youtube.com/watch/"videoId"

and the videoids are in the file I just uploaded.

without the Quotes

news at 6 is over att 6:30. Will test then.

same url see below:

Go ahead and try setting that up as a single channel in ADBTuner, and see if it'll actually play the channel through a couple of time slots. You can use the preview mode in ADBTuner for testing.

How did you grab the JSON -- via a curl command?

That is because I run a vpn and the web player does not like it. I assure you world news tonight is on on abc. I plugged the url into adbtuner and played the output in vlc see below:

except it is the same url as from earlier when the news at 6 was on. Different show same channel

Leave it playing for the next hour or two, just to be sure. Let me know how you grabbed the JSON, and I'll put something together in OliveTin -- once you've confirmed playback through multiple shows.

1 Like