View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 8 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Thu Nov 06, 2008 10:06 am 
Offline
Joined: Tue Oct 28, 2008 12:18 pm
Posts: 60
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.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 06, 2008 10:21 am 
Offline
Joined: Thu Sep 07, 2006 11:20 am
Posts: 389
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.)


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 06, 2008 10:28 am 
Offline
Joined: Tue Oct 28, 2008 12:18 pm
Posts: 60
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.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 06, 2008 10:48 am 
Offline
Joined: Thu Sep 07, 2006 11:20 am
Posts: 389
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.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 06, 2008 1:12 pm 
Offline
Joined: Tue Oct 28, 2008 12:18 pm
Posts: 60
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.


Top
 Profile  
 
 Post subject: Minor Update
PostPosted: Tue Nov 11, 2008 7:38 pm 
Offline
Joined: Tue Oct 28, 2008 12:18 pm
Posts: 60
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


Top
 Profile  
 
 Post subject: Future Plans
PostPosted: Wed Nov 12, 2008 6:44 pm 
Offline
Joined: Tue Oct 28, 2008 12:18 pm
Posts: 60
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.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 09, 2009 8:18 am 
Offline
Joined: Tue Oct 28, 2008 12:18 pm
Posts: 60
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


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: Bing [Bot] and 32 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu