2011-11-17, 02:17
shrioux Wrote:Have you run mythical setup? and what is the output of a mythicalLibrarian -m (mythical diagnostics)?
I have run the setup. I tried it under my normal user account, and as the "mythtv" user. Using the -m flag does nothing - I get no response
type mythicalLibrarian indicates it is /usr/local/bin/mythicalLibrarian.
When I look at that, I see a shell script which appears to do nothing other than set some variable values and define a function - no code appears to be executed. Here it is:
Code:
#! /bin/bash
#######################USER SETTINGS##########################
###Stand-alone mode values###
#MoveDir is the folder which mythicalLibrarian will move the file. No trailing / is accepted eg. ~/videos
MoveDir=./Episodes
#AlternateMoveDir will act as a seccondary MoveDir if the primary MoveDir fails. No trailing / is accepted eg. ~/videos
AlternateMoveDir=./Episodes
#If TargetPathIsInputPath is Enabled, original dir will override MoveDir. Useful for multiple recording dirs.
#TargetPathIsInputPath will separate episodes from movies and shows. Enabled|Disabled
TargetPathIsInputPath=Enabled
#Internet access Timeout in seconds: Default Timeout=50 (seconds)
Timeout=50
#Update database time in secconds, Longer duration means faster processing time and less strain on TheTvDb. Default='70000' (almost a day)
UpdateDatabase=70000
#mythicalLibrarian working file dir: Default=~/.mythicalLibrarian (home/username/mythicalLibraian)
mythicalLibrarian=~/.mythicalLibrarian
#FailSafe mode will enable symlinks to be formed in FailSafeDir if the move or symlink operation fails. Enabled|Disabled
FailSafeMode=Enabled
#FailSafeDir is used when the file cannot be moved to the MoveDir. FailSafe will not create folders. eg. /home/username
FailSafeDir='/home/mythtv/FailSafe'
#DirTracking will check for and remove the folders created by mythicalLibrarian
DirTracking=Enabled
#the following line contains the API key from www.TheTvDb.Com. Default project code: 6DF511BB2A64E0E9
APIkey=6DF511BB2A64E0E9
#Language setting
Language=en
#SYMLINK has 3 modes. MOVE|LINK|Disabled: Default=MOVE
#Create symlink in original dir from file after 'MOVE' | Do not move, just create a sym'LINK' | move the file, symlinking is 'Disabled', delete mythtv files
and DB entries
SYMLINK=MOVE
###Database Settings###
#Database access Enabled|Disabled
Database=Enabled
#Database Type Default=MythTV
DatabaseType=MythTVPythonBindings
#Guide data type
GuideDataType=SchedulesDirect
#MySQL User name: Default=mythtv
MySQLuser=mythtv
#MySQL Password: Default=mythtv
MySQLpass=xxxxxxx
#MythTV Backend server: Default=localhost
DBHostName=192.1.1.50
#The Database Pin for the MythTV Database (used in python bindings only)
DBPin=0
#MySQL Myth Database: Default=mythconverg
MySQLMythDb=mythconverg
#Primary Movie Dir. mythicalLibrarian will attempt to move to this dir first. No trailing / is accepted eg. '~/videos'
PrimaryMovieDir=./Movies
#AlternateMoveDir will act as a Seccondary move dir if the primary moive dir fails
AlternateMovieDir=./Movies
#ShowStopper = Enabled prevents generic shows and unrecognized episodes from being processed
ShowStopper=Disabled
PrimaryShowDir=./Showings
#AlternateShowDir will act as a Seccondary move dir if the primary Show dir fails
AlternateShowDir=./Showings
#CommercialMarkup will generate comskip files for recordings when they are moved. Enabled|Disabled
CommercialMarkup=Enabled
#CommercialMarkupCleanup will execute a maintenance routine which will remove comskip files if they are not needed
CommercialMarkupCleanup=Enabled
###Reporting/Communications###
#If notifications are enabled, NotifyUserName should be the same as the user logged into the GNOME Session. (your username)
Notify=Disabled
#If notifications are enabled, NotifyUserName should be the same as the user logged into the GNOME Session. (your username)
NotifyUserName='mythtv'
#Ip Address and port for XBMC Notifications Eg.XBMCIPs=( '192.168.1.110:8080' '192.168.1.111:8080' 'XBOX:8080' )
XBMCIPs=( '192.1.1.104:8080' )
#Send a notification to XBMC to Update library upon successful move job Enabled|Disabled
XBMCUpdate=Enabled
#Send Notifications to XBMC UI when library is updated Enabled|Disabled
XBMCNotify=Enabled
#Send a notification to XBMC to cleanup the library upon successful move job Enabled|Disabled
XBMCClean=Disabled
#DailyReport provides a local log of shows added to your library per day. Enabled|Disabled
DailyReport=Enabled
#Enables debug mode. This is a verbose mode of logging which should be used for troubleshooting. Enabled|Disabled
DEBUGMODE=Enabled
#maxItems controls the number of items in the RSS. RSS Can be activated by creating a folder in /var/www/mythical-rss.
maxItems=8
#########################USER SETTINGS##########################
########################## USER JOBS############################
#The RunJob function is a place where you can put your custom script to be run at the end of execution
#Though it may be at the top, this is actually the end of the program.
RunJob () {
case $jobtype in
#Successful Completion of mythicalLibrarian
LinkModeSuccessful|MoveModeSuccessful)
echo "SUCCESSFUL COMPLETEION TYPE: $jobtype"
#Insert Custom User Job here
#
exit 0
;;
#File system error occoured
PermissionError0Length|NoFileNameSupplied|PermissionErrorWhileMoving|FailSafeModeComplete|LinkModeFailed)
echo "FILE SYSTEM ERROR:$jobtype"
#Insert Custom User Job here
#
exit 1
;;
#Information error occoured
TvDbIsIncomplete|GenericShow)
echo "INSUFFICIENT INFORMATION WAS SUPPLIED:$jobtype"
#Insert Custom User Job here
#
exit 0
;;
#Generic error occoured
GenericUnspecifiedError)
echo "UNKNOWN ERROR OCCOURED:$jobtype"
#Insert Custom User Job here
#
exit 3
;;
#Insufficent data error occoured
NameCouldNotBeAssigned)
echo "NAME COULD NOT BE ASSIGNED BASED UPON DATA SUPPLIED"
#Insert Custom User Job here
#
exit 3
;;
#Job was ignored by title or category
titleIgnore|categoricIgnore)
echo "Show Was ignored based on $jobtype"
#Insert Custom User Job Here
#
exit 0
;;
esac
#Custom exit point may be set anywhere in program by typing RunJob on any new line
#Insert Custom User Job here
#
exit 4
}
Any help is appreciated....