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

I'm using Python's smtplib module and these SMTP settings:

SMTP_PORT = 587
SMTP_SERVER_ADDRESS = {
'gmail' : 'smtp.gmail.com',
'outlook': 'smtp-mail.outlook.com',
'yahoo' : 'smtp.mail.yahoo.com'
}

In my tests and everyday usage, I only use Yahoo.
I have never tested Gmail but the code is there to support it.

I tested Outlook but found that messages were delayed by a lot. One time, I received messages 12 hours later! :laughing: Maybe something I did wrong, not sure, and never tried to debug it.

Can this Xumo script be considered for inclusion please?

Shouldn't be a problem. Is the script working OK for you as written? You may not have seen, but in a previous post I mentioned a potential companion project called static-file-server. This could work well for this script and TWiT.tv guide data, as it allows one to serve up a file or directory in URL form. That way either could be added to Custom Channels as URLs.

So far I've used it mostly for custom logos, but it'll work for anything really.

I haven’t tried it yet, seemed complicated and required dependencies which is why I thought it would be a good match for OliveTin.

I'm really liking OliveTin giving me better visibility on which channels have Comskip turned off. There's just no reason to use the computing power to process recordings that don't have commercials. PBS and premium movie channels are the best examples of course.

I love Comskip, but when I'm watching a movie recorded from a premium channel and a "phantom" commercial is skipped -- it really breaks the spell.

Currently Channels DVR scans for local content additions every 5 minutes. When I am at the computer and adding it though, I want to start watching right away, so I will navigate in the CDVR webUI to the settings to force an update myself. Getting to this spot is a bit cumbersome with the new Settings re-design though. I have to go the sources sectiion, scroll down quite bit, then click into this small menu in order to force a manual scan.

There is a curl command for this though. Is it possible to get this added as a quick shortcut button, in OliveTin? Aside from (pre-release) update, I use this button on the server most often.

No problem. Testing the curl command now. Does it just return "true"?

1 Like

Yes it does.

curl -XPUT 'http://192.168.0.11:8089/dvr/scanner/scan'
true

Might as well put the prune local content API in also.

curl -XPUT 'http://192.168.1.221:8089/dvr/scanner/imports/prune'

I tried adding an image to a manual recording but it's not doing right. It just using the title. Can I not use this link to put it onto a manual recording?

https://www.wwe.com/f/styles/talent_champion_xl/public/all/2023/09/20230922_Fastlane_Match_LACena_Bloodline_FC_Day_Date--80a0c761227e9314c3a3c8648e40734f.jpg

Maybe it depends how you're doing it. I just added a quick test recording using your image link, and it appears to have worked as expected:

screenshot-htpc6-2023.10.06-15_23_57

Is that how you're trying to add it?

That is correct. Just copy and paste. In that field.

Make sure you're fully replacing the default link -- I'd suggest clicking into the field and then do a Ctrl-A (to select all) before pasting in your link.

There is something funny about the link as you posted it above, as I couldn't click on it (through this forum) to see the image -- I had to copy it and paste it into a browser tab to look at it. Maybe you inadvertently grabbed some html with it?

Gotcha. I have tried all different ways even the default link isn’t working. The first test should be my original image link and the second one should be the default one but it’s not showing up for some reason. On the latest release and so is channels.

He didn't include the url in his post, just (https://)

[https://www.wwe.com/f/styles/talent_champion_xl/public/all/2023/09/20230922_Fastlane_Match_LACena_Bloodline_FC_Day_Date--80a0c761227e9314c3a3c8648e40734f.jpg](https://)

Should have been

[https://www.wwe.com/f/styles/talent_champion_xl/public/all/2023/09/20230922_Fastlane_Match_LACena_Bloodline_FC_Day_Date--80a0c761227e9314c3a3c8648e40734f.jpg](https://www.wwe.com/f/styles/talent_champion_xl/public/all/2023/09/20230922_Fastlane_Match_LACena_Bloodline_FC_Day_Date--80a0c761227e9314c3a3c8648e40734f.jpg)

https://www.wwe.com/f/styles/talent_champion_xl/public/all/2023/09/20230922_Fastlane_Match_LACena_Bloodline_FC_Day_Date--80a0c761227e9314c3a3c8648e40734f.jpg

Could you post the OliveTin stdout from a couple of your test recordings where the image link is failing?

Should look something like this:

{"ID":"1696627200-ch6196","Name":"test","Time":1696627200,"Duration":600,"Channels":["6196"],"Channel":"","DeviceID":"","RuleID":"","Serial":0,"FileID":"","Skipped":false,"Failed":false,"Dead":false,"Error":"","Airing":{"Source":"manual","Channel":"6196","Time":1696627200,"Duration":600,"Title":"test","Summary":"none","Image":"https://www.wwe.com/f/styles/talent_champion_xl/public/all/2023/09/20230922_Fastlane_Match_LACena_Bloodline_FC_Day_Date--80a0c761227e9314c3a3c8648e40734f.jpg","Genres":["none"],"SeriesID":"manual/6196"},"UpdatedAt":1696626945755}

EDIT: I'm thinking this issue could actually be something related to genres. What are you putting in that field?

Updated version of OliveTin-for-Channels pushed this morning as bnhf/olivetin:latest.

Notable changes/additions:

  • Turning Comskip Off/On by channel is now one OliveTin button with an off/on dropdown.

  • Scanning and Pruning of local content has been added. Also a single OliveTin button, with scan/prune options. As requested by @Fofer and @cyoungers.

  • Logic for adding multiple Genres in Manual recordings has been fixed. Use commas to separate additional genre assignments.

Awesome, this is looking better and better. I just updated, all settings were retained, and the two scripts I had running were still running with the latest version, newly deployed. Thanks so much!

If others are interested, this would be a good, easy addition to OliveTin for Channels.
Marking a recorded program as not having been recorded (Tells the DVR to forget it was recorded).

There are many reasons for wanting to do this posted all over the forum.

1 Like

For Pluto and some other custom m3u channel sources you need to url encode the ProgramID because it contains forward slashes.

so the ProgramID becomes pluto%2F5fb9b0975eb0df001b147c3b%2FS4E17
curl -XDELETE 'http://x:8089/dvr/programs/pluto%2F5fb9b0975eb0df001b147c3b%2FS4E17'
because
curl -XDELETE 'http://x:8089/dvr/programs/pluto/5fb9b0975eb0df001b147c3b/S4E17'
won't work and returns a 404 Not Found.

Probably best to url encode the ProgramID for everything.