XBMC Community Forum
mythicalLibrarian - a tool to build Movie and TV Show library from MythTV recordings - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: Supplementary Tools for XBMC (/forumdisplay.php?fid=116)
+--- Thread: mythicalLibrarian - a tool to build Movie and TV Show library from MythTV recordings (/showthread.php?tid=65644)



- outleradam - 2010-05-18 07:06

Oh yeah. Add yourself to the mythtv group instead of using sudo. Sudo will cause problems with permissions in your home dir. Files will be owned by root.


- outleradam - 2010-05-18 07:10

Note to self for tomorrow: must change so that when original airdate is matched, fuzzy does not make an attempt.


- kvandesteeg - 2010-05-18 13:57

Couldn't get any further from getting it to run from MythTV.

Synched with SVN, and ran into an issue with the update script
had to remove
Code:
"$LinuxDep" = "1" &&
from line 123 of mythicalSetup, so it would update in OSX


- outleradam - 2010-05-19 04:30

Try changing the user job in mythtv setup to:
Code:
bash  /usr/local/bin/mythicalLibrarian "%DIR%/%FILE%"
it may not be loading /bin/bash on the she-bang at the top. It could be trying to run mythicalLibrarian in SH mode (scripting host). Try that out. Let me know if it works. I'll change it perminantly.


- kvandesteeg - 2010-05-21 03:16

outleradam Wrote:
Code:
bash  /usr/local/bin/mythicalLibrarian "%DIR%/%FILE%"

no luck with that.


- outleradam - 2010-05-21 03:23

I'm working on it now. I've almost installed mysql. I'm having problems.


- outleradam - 2010-05-21 04:07

try this:
Code:
echo PATH="$PATH:/usr/local/mysql:/usr/local/mysql/bin"|sudo tee ~/../mythtv/.profile
then reboot.


- outleradam - 2010-05-21 06:04

What is the username running mythtv? Can I see your debug log? ~.mythicalLibrarian/output.log


- kvandesteeg - 2010-05-21 13:51

it runs under the username 'htpc'

the only thing in the ~/.myticalLibrarian/output.log is from the manual runs, it doesn't even look like the User Job is being kicked off

Code:
###################DEBUG MODE ENABLED####################
MY USER NAME:root-
LISTING INTERNAL VARIABLES USED BY mythicalLibrarian.
INTERNET TIMEOUT:50- TVDB API KEY:6DF511BB2A64E0E9- mythicalLibrarian WORKING DIR:/Users/htpc/.mythicalLibrarian-
MOVE DIR:/Volumes/pvr/tv- USING SHOWNAME AS FOLDER:Enabled-
FAILSAFE MODE:Enabled- FAILSAFE DIR:/home/mythtv/FailSafe- ALTERNATE MOVE DIR:-
USE ORIGINAL DIR:Disabled NOTIFICATIONS:Disabled DEBUG MODE:Enabled-
INPUT SHOW NAME:Castle- LOCAL SHOW NAME TRANSLATION:- ShowName:Castle
DATABASE UPDATED:- TVDB LAST UPDATED:1274209120- CURRENT:1274230064-
RESOLVED SERIES ID:83462- RESOVED SHOW NAME:Castle (2009)-
INPUT EPISODE NAME:A Deadly Game- ABSOLOUTE EPISODE NUMBER:34- RESOLVED EPISODE NAME:A Deadly Game-
SEASON:S02- EPISODE:E24- SYMLINK MODE:MOVE- FILESIZE: 0kB-
CREATE AND DELETE FLAGS: ORIGINALDIR:1- FREE:526183200kB- WORKINGDIR:1 FREE:224417800kB-
MOVEDIRWRITABLE:1- FREE:526183200kB- ALTERNATEMOVEDIR:0- FREE:kB-
PRIMARYSHOWDIRWRITABLE:1-  FREE:526183200kB-ALTERNATESHOWDIRWRITABLE:1- FREE:526183200kB-
PRIMARYMOVIEDIRWRITABLE:1- FREE:224417800kB- ALTERNATEMOVIEDIR:0- FREE:224417800kB-
DATABASE TYPE:schedulesdirect1-
RECSTART:2010-05-17 21:00:00- MOVIE YEAR:- ORIGINAL SERIES DATE:2010-05-17-
PROGRAMID:EP010855880034- CHANNEL ID:1301- CATEGORY:Crime- GOFORDOOVER:1-
EXTRAPOLATED DATA DETERMINED THIS RECORDING AS A:Series With Episode Data- STARS:0 RATING:0
ZAP2IT SERIES ID:1085588- MATCHED TVDB SERIES ID:83462-
PLOT: Castle and Beckett investigate what seems to be an intelligence operative's assassination; Beckett's relationship with Demming strains her relationship with Castle.
####################END OF DEBUG LOG#####################

i have mythtv running as a User Daemon as i wasn't able to run it w/o sudo


- outleradam - 2010-05-22 03:35

Ok, now I've got mythtv up and running in mac OS X... I have a much better understanding of what's going on.

Your user htpc has a separate home dir. His log file will be in that folder not your ~/.mythicalLibrarian. It will probly be ~/../htpc/.mythicalLibrarian

There's many ways around it. Here is the simplest:
You can change the ownership of the folder and all sub-folders.
Code:
sudo chown -R htpc "/path/to/recordings"
where "/path/to/recordings" is your recording dir or where the files are moved if you chose folders in mythicalSetup.

see here for more information http://osxdaily.com/2007/10/29/how-to-add-a-user-from-the-os-x-command-line-works-with-leopard/