<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">On Jun 22, 2016, at 7:57 PM, Mark Perkins <<a href="mailto:perkins1724@hotmail.com" class="">perkins1724@hotmail.com</a>> wrote:<br class=""><div><blockquote type="cite" class=""><br class="Apple-interchange-newline"><div class=""><div class=""><blockquote type="cite" class="">-----Original Message-----<br class="">From: mythtv-users [<a href="mailto:mythtv-users-bounces@mythtv.org" class="">mailto:mythtv-users-bounces@mythtv.org</a>] On Behalf<br class="">Of George Nassas<br class="">forwards those to the magic email address and my script picks<br class="">them up, scans for youtube links, downloads, and sticks them into myth as<br class="">recordings. <br class=""></blockquote><br class="">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.<br class=""></div></div></blockquote><br class=""></div><div>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 <a href="http://pastebin.com/qFzkP8jn" class="">http://pastebin.com/qFzkP8jn</a></div><div><br class=""></div><div>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 (<a href="mailto:person+titleText@gmail.com" class="">person+titleText@gmail.com</a>) to indicate a show title while the youtube/vimeo video title becomes the myth subtitle.</div><div><br class=""></div><div>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.</div><div><br class=""></div><div>- George</div><br class=""></body></html>