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

Hmm, just a guess but was your "UPDATE_SCRIPTS" env var set to "true" when you updated? Asking because my OliveTin now has the new genre field:

OK, I see it now. It was a browser caching issue.

Wow, this is my first time using this script, and can immediately see it will be incredibly useful.
Thanks so much for this @mjitkop!

I think people are going to like this one too, and I'd set it up to run "cron-style", which should minimize concerns about missed channel lineup change updates.

@mjitkop What are you using here to generate the e-mails? I have something similar in my APC UPS suite of containers, and as I recall I'm using postfix, libsasl2-modules and mailutils -- with Gmail's app-specific SMTP server. Are you doing something similar?

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?