LinHES Forums http://forum.linhes.org/ |
|
Miro2Myth - a video mover script for Miro users http://forum.linhes.org/viewtopic.php?f=6&t=19178 |
Page 1 of 1 |
Author: | UniCav [ Thu Nov 06, 2008 10:06 am ] |
Post subject: | Miro2Myth - a video mover script for Miro users |
Miro is great for getting video from RSS feeds, but it's messy. It creates subdirectories for every video downloaded so you either have to put up with the mess in your video browser, or you have to put miro's downloads in another directory and then manually move them to your video directory. This script fixes that, it finds all the new avi's in Miro, cleans up the filenames and finds a matching directory in /myth/video for the show or creates one in case you added a new channel. http://unicav.natchezoffice.com/scripts/miro2myth.pl I've tested it with a myriad of filename and directory formats and seems to be ready for use. I'm still a total noob with perl so I hope it's not too messy but it should be well commented for easy editing. Using this from Cron along with BigB's mythvideo-scanner script http://knoppmyth.net/phpBB2/viewtopic.php?p=117281 You can pretty much set and forget miro and your new shows will just pop into the browser on schedule. |
Author: | nharris [ Thu Nov 06, 2008 10:21 am ] |
Post subject: | |
Nice. So, you leave Miro running in the background to periodically check for and download new videos? (DISCLAIMER: I have used Miro only once before... I did not see a background server or a command line version you could periodically call from cron.) |
Author: | UniCav [ Thu Nov 06, 2008 10:28 am ] |
Post subject: | |
I set up my startup file to run miro in an xshell so I can alt+tab to it when I want to add channels or grab some extra episodes. the rest of the time I just let it run. It seems to clean up after itself as videos are moved or you can manually switch over and clean up. |
Author: | nharris [ Thu Nov 06, 2008 10:48 am ] |
Post subject: | |
Is there a way to trigger a MythVideo scan for new/deleted files without using the frontend? This is what I'm missing in my setup. |
Author: | UniCav [ Thu Nov 06, 2008 1:12 pm ] |
Post subject: | |
BigB's mythvideo-scanner script mentioned in my first post does this quite well and is getting better all the time. At the most you need to restart the frontend to get a fresh cache of cover images but at this point it seems to add/update database entries properly. Normally just exiting the video browser and going back in will show any added/updated files. |
Author: | UniCav [ Tue Nov 11, 2008 7:38 pm ] |
Post subject: | Minor Update |
Fixed a tiny bug in the finddir subroutine, I forgot to add the case insensitive switch which would cause it to create a new directory for existing videos if the capitalization wasn't exact. Updated file is on the website |
Author: | UniCav [ Wed Nov 12, 2008 6:44 pm ] |
Post subject: | Future Plans |
I'm working toward using this script along with the mythvideo-scanner.pl script in cron to maintain the downloads daily. Toward that end today I created a couple of wrapper scripts to start/stop/restart miro and mythfrontend. Using the EXPORT Display command allows us to do this from cron or from ssh remotely and still have the program come up in our X session. I'm just about ready to combine these into a cron script to stop miro, move the files, start miro, and then restart mythfrontend so it will pick up the new images from the --getposter switch. It also allows miro to do some cleanup and freshen it's connections which seem to hang up if you leave it unattended for too long, and occasionally restarting the mythfrontend seems to help it as well. If anyone is following this and wants the wrapper scripts let me know. |
Author: | UniCav [ Thu Apr 09, 2009 8:18 am ] |
Post subject: | |
No one has replied in awhile but I wanted to post an update because a few threads have been added on miro. I've been using my script for months now with great success. It finds new videos in miro's directories, cleans up the file names, moves them to /myth/video/ into the show's named directory and runs BigB's mythvideo-scanner on it to add the metadata into the myth database. I just converted the script to use gxmessage instead of shell output so it can be run from a menu button. Rather than run it from Cron, I just select "Check Miro for New Videos" on my menu and it will tell me if no new videos were found or if there are new videos it tells me what was found, then prompts me that it's going to restart mythfrontend to update the image cache. Next set of improvements I'm planning it to incorporate the stop/start/restart functions into the script instead of using the wrapper scripts I developed earlier. Then all that's necessary to use it is miro2myth and mythvideo-scanner. If anyone is interested in trying it just let me know and I'll post the scripts |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |