I just recently started using mythicalLibrarian and really enjoy what it can do. I appreciate that it was written as a shell script too.
Anyway, a couple things I noticed during my testing that I thought I'd post back if anyone happens to have the same issues I ran across.
First, I should note that I have this installed on FreeBSD (within a jail in FreeNAS where I have the MythTV backend)
There is a syntax spelling error on several calls to the RunJob function as it caused a logic error with the ShowStopper option. Look for any lowercase calls like "runjob" or "runJob" and make sure they call "RunJob".
If you want to make calls to your Kodi frontends, make sure you apply the patch. I did have to manually update mine, but the correct syntax for the new JSON calls are easily made:
https://code.google.com/archive/p/mythic...ian/issues
Speaking of Kodi frontends, if you have a username & password set for the web service, it is not clearly documented on how to pass that with the list of IPs in the "XBMCIPs" variable. The syntax should be something like:
XBMCIPs=( user:
[email protected]:8080 )
These next items may be unique just for FreeBSD, or more specifically the 9.3 version of FreeNAS I'm running.
The following dependencies needed to be installed:
- bash (pkg install bash). Also needed to create symlink since mythicalLibrarian references /bin/bash as its parser. (ln -s /usr/local/bin/bash /bin/bash)
- agrep (pkg install agrep). Version 2.04 is installed. I did have to remove the "-B" option in the mythicalLibrarian script. I kept getting an error when the script called agrep and realized after testing the output that the line numbers were not being returned. Once that option was removed, things started working.
- sudo (pkg install sudo) Sudo was not installed by default for me.
- mythdatagrabber.py This was not installed by default for me, so I copied the code and created the script name file in /usr/local/bin and made sure it was executable
https://www.mythtv.org/wiki/MythDataGrabber
- date command to format the $ShowStartTime in the RSS creation is not supported by the same options with the FreeBSD date command. For now I just removed the date formatting.
My mythtv user did not have a home directory which is needed by mythicalLibrarian to set up its temp files and "database" to recall what files were processed.
mkdir -p /home/mythtv/.mythicalLibrarian (this creates the default directory for its processing, and yes it is a "." hidden directory)
chown -R mythtv:mythtv /home/mythtv (this sets ownership of its directory to user mythtv)
Python2.6 is a hardcoded test within the script. I have python2.7 installed, so I just searched and changed the code to look for 2.7 instead. Seems to have no ill effects using 2.7.
Last change I made was to the RSS feeds by adding the season & episode variables to the title since it seems that Kodi only displays the title when pulling in the feeds. Purely cosmetic so I know what new episodes have been recorded. I did find it odd that maxItems is defined twice for the RSS feeds.
Thank you Adam for a great tool!