[mythtv-users] feature request - mail interface

George Nassas gnassas at mac.com
Tue Jun 28 21:55:56 UTC 2016

On Jun 22, 2016, at 7:57 PM, Mark Perkins <perkins1724 at hotmail.com> wrote:
>> -----Original Message-----
>> From: mythtv-users [mailto:mythtv-users-bounces at mythtv.org] On Behalf
>> Of George Nassas
>> forwards those to the magic email address and my script picks
>> them up, scans for youtube links, downloads, and sticks them into myth as
>> recordings. 
> I don’t suppose you would be happy to share the script? It sounds like it might be about 60-75% of a little project I have had well down on the priority list for a year or so.

Hi, sorry for the delay. I’m travelling with occasional access to the box but managed to pull up the script and save it at http://pastebin.com/qFzkP8jn <http://pastebin.com/qFzkP8jn>

I’m not sure which part you’re interested in but the steps are: log into gmail, scan for new messages, pull out urls that look like they’re from youtube or vimeo, compare the video IDs with what’s in the myth database, pull down unknown ones using youtube-dl, and import them into the myth database. You can use + addressing (person+titleText at gmail.com) to indicate a show title while the youtube/vimeo video title becomes the myth subtitle.

Gmail has an unique take on imap so if you’re using another service you’ll have to tweak the way it deletes emails. Anything unclear, just ask.

- George

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20160628/afeb8f57/attachment.html>

More information about the mythtv-users mailing list