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

No worries there -- *.running files are only present if you had background tasks going when you restart the container.

I've added a couple a couple of nice scripts courtesy of @mjitkop to olivetin-for-channels.

The first will output a complete list of channels in a CSV file format, including which of your sources has that channel. Pull it into a spreadsheet program for best viewing, sorting, etc.

The second will output a complete list of your recorded movies, also in CSV format. The output from both scripts can be found in directory you have bound to /config on your docker host (for me it's /data/olivetin).

Also as requested by @chDVRuser and @themediaguy respectively, I've added "SeriesID" and "Genres" to the JSON data sent to Channels DVR for manual recordings. SeriesID is automatically set as "manual/channel" where channel is the channel you specified for recording. Genres is a new field when adding a manual recording. Multiple Genres can be used -- comma separated.

bnhf/olivetin:latest and bnhf/olivetin:test are now the same, with updates pushed moments ago.

3 Likes

Very nice! I've now updated back to olivetin:latest and it seems to be working well... I tested the new scripts and set up the two "running" scripts and will keep an eye on things in the days ahead. This is so great. Thanks again @bnhf!

1 Like

The two new scripts work great. Thanks @bnhf & @mjitkop.

I'm not seeing a new field for genres in creating a new manual recording.

1 Like

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.