mythicalLibrarian - a tool to build Movie and TV Show library from MythTV recordings
#61
A while back, I edited your MythSexx script so that instead of copying the renamed file into a folder, it ran Handbrake and copied the new, renamed, transcoded file into the specified folder. This suited my purpose for the minimal amount of recording I did at the time.

Now, that script no longer functions... I am assuming changes to TVDB are causing issues with fetching the show name..... so I am looking to update to MythicalLibrarian. I would love to be able to accomplish the same setup, but would like to do so with your blessing/help, and a cleaner script then the Hack job I did. Essentially I would like the script to:

-- Go out and fetch the SxxExx Formatted title
-- Call transcoding software of choice (handbrake, mencoder, etc) and output the file "Show Name.SxxExx (episode subtitle).mkv" into script specified output folder.
-- Notify XBMC of new file
-- **Optionally** remove original and link to new mkv (not sure if it would be supported by Myth.


Sound like something that could easily be done?
#62
mythicalLibrarian now supports user jobs. Any commands you want run directly after mythicalLibrarian can be placed into the appropriate section under user jobs. The User Job section of mythicalLibrarian will always be included from now on. It's right after the user settings portion. See here: http://code.google.com/p/mythicallibrari...n556&r=556

I would recommend using mythicalSetup. Then copying your user job into /usr/local/bin/mythicalLibrarian. Also, you can use the global settings feature to override mythicalLibrarian into XBMCUpdate=Disabled so it does not send the command to XBMC to update the library.

/etc/mythicalLibrarian/globalSettings
Code:
XBMCUpdate=Disabled
XBMCClean=Disabled
XBMCNotify=Disabled
This will take care of mythicalLibrarian trying to update XBMC prematurely, while the IP will be stored in mythicalLibrarian.

Next, we need to add your user job. Remember that most useful enviromental variables are listed right under the user job section.
Code:
#Transcode your file the same way you always have, eg.
transcode --file=$MoveDir/$ShowFileName.$originalext --target=$MoveDir/$ShowFileName.mkv
#remove the mythicalLibrarian symlink
rm "$InputPath"
#make a new symlink
ln -s  "$MoveDir/$ShowFileName.mkv" "$InputPath"
#Reenable the communications
XBMCUpdate=Enabled
XBMCClean=Enabled
XBMCNotify=Enabled
#Tell mythicalLibrarian to do XBMC communications
XBMCAutomate
I encourage the modification of mythicalLibrarian as long as it does not keep you from doing updates. I will look at automatic loading of user jobs from files soon enough.
Use mythicalLibrarian to make a library out of your MythTV files. Leave the recording to MythTV and use XBMC as your library.
Installation and Instructions:http://wiki.xbmc.org/index.php?title=MythicalLibrarian
Technical Support:http://forum.xbmc.org/showthread.php?tid=65644
[url=http://forum.xda-developers.com/showthread.php?tid=1081892][/url]
#63
Actually, that's a great idea... Lemme make some changes.

Ok... As of SVN Revision 582, you can load up a custom user job to be executed at the end of mythicalLibrarian by placing it in one of the following files
Code:
/etc/mythicalLibrarian/JobSucessful
/etc/mythicalLibrarian/JobFilesystemError
/etc/mythicalLibrarian/JobInformationError
/etc/mythicalLibrarian/JobGenericError
/etc/mythicalLibrarian/JobInsufficientData
/etc/mythicalLibrarian/JobIgnoreList
/etc/mythicalLibrarian/JobUnspecified
These jobs will be fed into mythicalLibrarian at the end of every mythicalLibrarian --update (mythicalSetup) operation.

This way you can just put your job into a file called /etc/mythicalLibrarian/JobSucessful and it will be merged into mythicalLibrarian every time you run mythicalSetup.
Use mythicalLibrarian to make a library out of your MythTV files. Leave the recording to MythTV and use XBMC as your library.
Installation and Instructions:http://wiki.xbmc.org/index.php?title=MythicalLibrarian
Technical Support:http://forum.xbmc.org/showthread.php?tid=65644
[url=http://forum.xda-developers.com/showthread.php?tid=1081892][/url]
#64
OK, this sounds great... just let me make sure I have this correct.

In /etc/mythicalLibrarian/JobSucessful I enter everything you wrote in your first response, and each time that I run mythicalSetup it will automagically put those settings under the User Jobs section of the script. Brilliant!

I will try this later tonight and let you know how it works out.
#65
I'm having this thread locked/merged. It is difficult to maintain two threads. Please use this thread to ask any questions or request features. Mods, please merge this thread with the link at the bottom if you can.

http://forum.xbmc.org/showthread.php?tid=65644
Use mythicalLibrarian to make a library out of your MythTV files. Leave the recording to MythTV and use XBMC as your library.
Installation and Instructions:http://wiki.xbmc.org/index.php?title=MythicalLibrarian
Technical Support:http://forum.xbmc.org/showthread.php?tid=65644
[url=http://forum.xda-developers.com/showthread.php?tid=1081892][/url]

Logout Mark Read Team Forum Stats Members Help
mythicalLibrarian - a tool to build Movie and TV Show library from MythTV recordings1