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)



- GregoryK - 2010-11-23 18:43

outleradam Wrote:Please update to SVN.

Hm, I thought I was running stable, but must have borked something with that last update to stable, because now, if I 'sudo mythicalLibrarian --update' it doesn't run anything.

What's the best way to reinstall?

Thanks,

/gkk


- ubuntite - 2010-11-23 19:00

outleradam Wrote:ubuntite, got the issue right here on line 2380 SVN:
Code:
if [ -s "$MoveDir/$ShowFileName.$OriginalExt" ]; then

Should be:
Code:
if [ ! -e "$MoveDir/$ShowFileName.$OriginalExt" ]; then
This is a touchy area of the code, I will make the appropriate changes to the SVN tonight on this.

Great. By the way, I am running mythicalLibrarian as a user job within mythtv, and I am allowing two simultaneous jobs to run at the same time (I have two tuners, so it works well that way). This does create the situation where mythicalLibrarian could be called a second time before the first run has completed. Could this also be an issue?


- outleradam - 2010-11-23 20:45

^^Well, if the initial identification of the time and show title are perfomed at the same time then it could cause problems. I have a solution in mind which would separate the working dirs into instance dirs. Then, on a sucessful zap2itid match, it would create a reference list. This reference list would be checked and the working dir could be referenced from this list.

I'm holding off on that until the next stable release. I need to get the current code stablized before I destablize it again.

Upcomming features:

1. multiple instances of mythicalLibrarian at the same time (currently there are some possible mis-matches)
2. When running --doover mode, since the operator is at the console, fuzzy logic will be replaced with a operator selection (currently defaults to fuzzy logic)
3. revision of offline mode for files with existing databases in case TVDB is down or no internet connection. (currently inoperable)

Please report any problems you find in the SVN. I'm going to undo and redo my entire library tonight and review episode-by-episode. It's my goal to move a revision to stable tonight.


- outleradam - 2010-11-23 20:48

GregoryK Wrote:What's the best way to reinstall?
Code:
cd ~/.mythicalLibrarian/mythicalSetup
./mythicalSetup.sh
Please select SVN. Then do
Code:
mythicalLibrarian --update
and select SVN again.
Let me know if there are any problems.


- GregoryK - 2010-11-23 20:59

Adam: that worked to reinstall, thanks. /Greg


- outleradam - 2010-11-24 02:22

Ubuntite: please upgrade to SVN. Problem with deleting MythTV files and folders is finished. This will now work on MythTV 0.23. 0.24 is a work in progress.

For 0.24, deleting the files will be a mythicalLibrarian user job. The user job will be something along the lines of:
Code:
test "$RequiresDoover" != "1" && MythDataDelter "$InputPath"



- ubuntite - 2010-11-26 03:59

outleradam Wrote:Ubuntite: please upgrade to SVN. Problem with deleting MythTV files and folders is finished. This will now work on MythTV 0.23. 0.24 is a work in progress.

For 0.24, deleting the files will be a mythicalLibrarian user job. The user job will be something along the lines of:
Code:
test "$RequiresDoover" != "1" && MythDataDelter "$InputPath"

Thanks, Adam! Looks to be working just fine!


- outleradam - 2010-11-26 06:05

Ubuntite, if you just upgraded today, please upgrade again within 18 hours or your episodes will be processed incorrectly. I did some serious revisions on the parser today. The changes from here to next stable release are purely odds and ends oriented..


- outleradam - 2010-11-27 18:44

I committed MythDataDeleter to the SVN.

MythDataDeleter enables a proper deletion of a recording as a mythicalLibrarian UserJob under MythTV/0.24.

MythDataDeleter is a full standalone python program. You can find the manual here http://www.mythtv.org/wiki/MythDataDeleter

To utilize under mythicalLibrarian with 0.24:
Code:
sudo curl "http://mythicallibrarian.googlecode.com/svn/trunk/pythonBindings/MythDataDeleter" > /usr/local/bin/MythDataDeleter
chmod +x /usr/local/bin/MythDataDeleter
echo "test \"$RequiresDoover\" != \"1\" && /usr/local/bin/MythDataDeleter \"$InputFile\" --writeFile --output=\"$MoveDir/$ShowFileName.info.txt\" |tee -a \"$mythicalLibrarian\output.log\""|sudo tee -a "/etc/mythicalLibrarian/JobSucessful "
mythicalLibrarian --update
The 0.23 depreciation workaround will be:
/etc/mythicalLibrarian/JobSucessful
Code:
if [ "$RequiresDoover" != "1" ]; then
    echo "REMOVING - $FileBaseName - THUMBNAILS - DATABASE ENTRIES"|tee -a "$mythicalLibrarian"/output.log
    mysql -u$MySQLuser -p$MySQLpass -e "use '$MySQLMythDb' ; delete from recorded where basename like '$FileBaseName'; "
    rm -f "$originaldirname/$FileBaseName".*    
fi
Please let me know if there are any problems.

As of now, SYMLINK=Disabled is depreciated and will be removed soon after next stable revision.


- outleradam - 2010-11-27 21:26

SVN Revision 904 committed to stable.

I would consider this a major revision since the last stable. The database was greatly changed so run mythicalLibrarian --doMaintenance or wait 18 hours since the last recognition for the database to redownload before running the new version. If you do not, then shows matched on Airdate will be recognized improperly.

Changes since last stable

Usage of python bindings for MythTV/0.24
Improved logic
10 point Confidence Rating of match is used to determine if the match was of high quality.
Low quality resolution of season and episode are put in the --doover que for later matching
Conflict resolution for shows with multiple releases on the same airdate
Logic path shows why decisions were made
Readable output during "delays" in processing to show what is being processed

There are alot more changes coming up so stay tuned.