ESPN+ with Custom Channels via ADBTuner

agreed-- esp messing with number of lanes gets hairy. i tried my best to put in checks/rebuilds after changes, but theres no harm in just deleting the whole DB and letting it regenerate. then of course going to CDVR admin page and redownloading the M3U/XML after.

Is there a console command I can throw to rebuild the DB?

Couple options (all in the README on Github)

http://SERVERIP:8094/admin/refresh

or

docker compose exec espn4cc4c bash -lc "/app/bin/refresh_in_container.sh"

or even better if you made an ton of changes, just delete the SQL DB under \data , then Refresh

@KineticMan - Would it be possible to add padding to live events or ensure that live events are not scheduling directly after each other on the same "channel" ? I was testing and was watching UNC vs TCU and went into OT however the scheduling placed the BYU vs Stanford game immediately after the game on the same channel, which caused the game to change if i close the feed and reopen the channel

Yes.. Right now, I just use the start/end times that ESPN API feeds it. I agree some sort of padding would be nice. I don't believe it'd be too terrible to program in. Let me think through best way to do that.

Driving me mad here. I'm so close.

I have only 1 channel that appears on source ESPN4adbt with guide data, but 150 channel-less slots on the actual ESPN4adbt source, and 150 valid channels, with no guide data, on the ADBTuner source. This is after a refresh AND trying a nuke/reinstall of the ESPN source, including the ADBTuner ESPN channels on the reinstall

full disclosure - i havent tried bnhf's stack yet, so not sure if it's his or mine giving you fits. do you have filters set maybe?

No filters set. Also tried a stop/db nuke/start.

Best guess is that the source insertion for ADBTuner only might be in play.

I've only tested with Ignore channel-number from M3U set and my own starting channel number, so try that if you haven't. You can also try using a starting channel of 20010, if that's available for you, as that's what's baked into the XML. These changes can be made right in the ESPN4adbt Custom Channels Source.

You can also try using the CDVR Delete and Recreate Database option under Guide Data - Maintenance, in case there's an issue with that. And, as a last resort, you can see if matching your channels to guide data under Manage Lineup works -- though hopefully it won't come to that.

Yep - i think the 20010 nailed it. That worked on my pre-one-click setup too, but assumed it was deprecated in one click.

I'll confirm when sports are on later.

1 Like

I'm thinking of adding a ENV Variable to allow padding to "non-studio events" (aka live sports). I don't want it to get overcomplicated to add padding by sport type although technically possible. What do you think - just allow it to be set by minutes?

2 Likes

Yep - we may be good here. Was able to start a live viewing on now-good data. Thanks!

Would you like me to add a preferred starting channum as an env variable? Guessing your project is fragile to that number (20010) but something I could add for ESPN4CC4C easily.

Having issue filtering SEC Network or SEC Network + from epg (other linears seem to be filtering appropriately)

Had a similar issue here. I ended up with all of the following in my env variable:

SECN,SECN+,SEC NETWORK,SEC Network,SEC Network +

Cannot say which one was correct but I no longer see SEC channels in my guide.

Had a recording mismatch last night. Wrong channel picked. Anything I can provide for clues?

I just looked at \setupfilters helper and this is what the program is seeing.. Has it worked in the past? wondering if the + is throwing filter off-- let me know and i'll debug.

FILTER_EXCLUDE_NETWORKS=SEC Network,SEC Network +

thats the one little bug i hate... when we refresh 3x day, there's a possibility that the channel number for an event could change when the deck gets reshuffled. I put in "stickyness" to try to prevent that, but it is still possible 6hrs out for an event to get moved to a different channel.

I wrestled with this question quite a bit - and open for everyone's ideas... Is there really a need to refresh 3x day? Do you guys think ESPN really changes their schedule that often? I'm thinking just once a day at like 3am might do the trick and would prevent any changes to the scheduler. The scrape looks 72hrs out and schedules the programs out that far.

I would think 1/day would be enough, in most cases, but i don't have visibility as to when ESPN assigns channels to upcoming items, and what switches to "live"

Wild guess - probably overemphasizing "upcoming" assignment in lieu of "live" - I would think you need 3x/day, but only if you're only looking at "live" events. I think there was a filter item against upcoming - I'm going to exclude for now, and see if it helps.

im guessing live/upcoming changes when we actually scrape the api-- like, if Sportscenter was from 6-7p, and we refreshed at 5:30p, it'd show it as "upcoming" but if we scraped at 6:23p, it would be flagged as "live" at that time.