mythicalLibrarian - a tool to build Movie and TV Show library from MythTV recordings
#46
You may want to try to upgrade to the newest version. There's constant development on mythicalLibrarian and the latest version will always add more features and have better recognition. Occasionally things break, but the easy updater makes it eaiser to update to the latest stable version. I constantly run the latest svn on my media center. I verify operations by running the latest svn and stable on my Ubuntu desktop. The update process takes less then a minute and all of your settings get upgraded as well. Please upgrade if you are having any problems. I am not able to identify anything wrong right now.

Also, problem reports should be filed in the mythicalLibrarian thread dedicated to problem reports http://forum.xbmc.org/showthread.php?tid=65644&page=35 Please take the time to send the output.log entry for the offending file. I may be able to come up with a update or work-around if it has not been addressed yet. The mythicalLibrarian database system has been upgraded to the point where if there is a problem with show identifiaction, it's because the tvdb.com has the wrong information.
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]
#47
Firstly, let me say this is a fantastic tool and has saved me hours of time trying to sort out my myth library.

I've got a couple of features that I thinnk would be great additions:

1. When searching thetvdb.com, can you search for word variants? ie, I have several episodes where the subtitle contains the word 'and', but the corresponding thetvdb.com entry uses '&' in the subtitle this means the episode isn't found and is put into showings, ie:

Myth TV subtitle: Frogs and Worms and Butterflies
theTVDB.com subtitle: Frogs & Worms & Butterflies

2. Is it possible to balance the files across the two primary and alternative folders? I've managed to fill my NAS whilst my secondary drive is empty. As a quick fix for me, can I simply swap the two folders over in the configuration so that my primary folder becomes the alternative folder and vice versa? (I want to clear the NAS down as it's used by other PCs at home)

Thanks

Simon
#48
There are several ways to correct differences in guide data versus TVDB data.
1. If the guide is correct and theTvDb is incorrect, then you can correct the data in theTvDb, or ask for a title change on theTvDb.com forums
2. If the TvDb is correct and the Guide Data is incorrect, then you can contact your guide data provider (schedulesDirect or zap2it), or you can contact your cable company to get the change made.
3. As a workaround, mythicalLibrarian supports "showtranslations" If there is a problem with a show title difference between theTvDb and your guide data, create a file called ~/.mythicalLibrarian/showtranslations
Code:
##############################################################
#My Guide Show Title = www.TheTvDb.com Show Title            #
#Battlestar Gallactica = Battlestar Gallactica (2003)        #
#The Office = The Office (US)                                #
#Millionaire = Who Wants To Be A Millionaire                 #
#Aqua teen Hungerforce = Aqua Teen Hunger Force              #
##############################################################
remove the #'s


For the balancing issue, mythTV supports evening out the shows. mythicalLibrarian supports usage of original directory. In mythicalSetup choose "Would you like to use your original recordings folder or would you like to choose your own folder to place recordings? -- Use Original" Let mythTV place the files into the folder which it chooses. mythicalLibrarian in "use original directory" mode will place a Episodes/ Showings/ and Movies/ folder wherever mythtv places it's files.

Let me know if there are any problems.
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]
#49
outleradam Wrote:For the balancing issue, mythTV supports evening out the shows. mythicalLibrarian supports usage of original directory. In mythicalSetup choose "Would you like to use your original recordings folder or would you like to choose your own folder to place recordings? -- Use Original" Let mythTV place the files into the folder which it chooses. mythicalLibrarian in "use original directory" mode will place a Episodes/ Showings/ and Movies/ folder wherever mythtv places it's files.

Thanks for the quick response! I should investigate the options first, this is exactly what I want! As I've moved all the data out of the myth folders, is it better for me to do a --undo and start from scratch?

As for the titles being wrong, I'll look into which source is wrong and take it from there.

Cheers

Simon
#50
Information 
I am wondering if there is interest in a GUI for mythicalLibrarian.

The GUI would allow easy setup of the features of mythicalLibrarian. Currently the options are setable in text form. They are well documented, but there are still problems which may be able to be resolved with a GUI.

Here are the options which possibly could be resolved:


User settings:
Code:
#######################USER SETTINGS##########################
###Stand-alone mode values###
#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'
SYMLINK=MOVE
#MoveDir is the folder which mythicalLibrarian will move the file.  No trailing / is accepted eg. "~/videos"
MoveDir="/home/mythtv/Episodes"  #<------THIS VALUE MUST BE SET-------
#AlternateMoveDir will act as a seccondary MoveDir if the primary MoveDir fails.  No trailing / is accepted eg. "~/videos"
AlternateMoveDir=/home/mythtv/Episodes
#If UseOriginalDir is Enabled, original dir will override MoveDir.  Useful for multiple recording dirs.
#UseOriginalDir will separate generic shows from episodes and movies. Enabled|Disabled
UseOriginalDir=Enabled
#When Enabled, mythicalLibrarian will move the file to a folder of the same name as the show. This is not affected by UseOriginalDir. Enabled|Disabled
UseShowNameAsDir=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='84000' (1 day)
UpdateDatabase=1
#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"  #<------THIS VALUE MUST BE SET-------
#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=0F3A338F0FCB29A2
#Language setting
Language=en

###Database settings###
#MythTV MYSQL access allows addition of movies, comskip data, and improves accuracy of episode recognition.
#Database access Enabled|Disabled
Database=Enabled
#Database Type Default=MythTV
DatabaseType=MythTV
#Guide data type: SchedulesDirect currently covers DataDirect, MC2XML and others.  NoLookup will bypass tvdb scanning
#Options: SchedulesDirect|NoLookup
GuideDataType=SchedulesDirect
#MySQL User name: Default="mythtv"
MySQLuser="mythtv"
#MySQL Password: Default="mythtv"
MySQLpass="mythtv" #<------THIS VALUE MUST BE SET-------
#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="/home/mythtv/Movies" #<------THIS VALUE MUST BE SET-------
#AlternateMoveDir will act as a Seccondary move dir if the primary moive dir fails
AlternateMovieDir="/home/mythtv/Movies"
#ShowStopper = Enabled prevents generic shows and unrecognized episodes from being processed
ShowStopper="Enabled"
#Primary Show Dir. mythicalLibrarian will attempt to move to this dir first. No trailing / is accepted eg. "~/videos"
PrimaryShowDir="/home/mythtv/Showings" #<------THIS VALUE MUST BE SET-------
#AlternateMoveDir will act as a Seccondary move dir if the primary moive dir fails
AlternateShowDir="/home/mythtv/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###
#Enables debug mode.  This is a verbose mode of logging which should be used for troubleshooting.  Enabled|Disabled
DEBUGMODE=Enabled
#DailyReport provides a local log of shows added to your library per day. Enabled|Disabled
DailyReport=Enabled
#Notify tells mythicalLibrarian to send a notification to GNOME Desktop upon completion. Enabled|Disabled
Notify=Enabled
#If notifications are enabled, NotifyUserName should be the same as the user logged into the GNOME Session. (your username)
NotifyUserName="MYUSERNAME" #<------THIS VALUE MUST BE SET-------
#Send a notification to XBMC to Update library upon Successful move job Enabled|Disabled
XBMCUpdate=Enabled
#Send a notification to XBMC to cleanup the library upon Successful move job Enabled|Disabled
XBMCClean=Enabled
#Send Notifications to XBMC UI when library is updated Enabled|Disabled
XBMCNotify=Enabled
#Ip Address and port for XBMC Notifications Eg.XBMCIPs=( "192.168.1.110:8080" "192.168.1.111:8080" "XBOX:8080" )
XBMCIPs=( "192.168.1.110:8080" "XBOX:8080" ) #<------THIS VALUE MUST BE SET-------
#maxItems controls the number of items in the RSS. RSS Can be activated by creating a folder in /var/www/mythical-rss.  
maxItems=8

categoric ignore:
Code:
If you wish to ignore all shows with a speciffic category, use
categoricIgnore
categoricIgnore can be applied by creating a file called:
  ~.mythicalLibrarian/categoricIgnore
##############################################################
#Category to ignore                                          #
#Sports                                                      #
#Sports Talk                                                 #
#College Sports                                              #
#Comedy                                                      #
##############################################################

Title Ignore
Code:
======titleIgnore======
If wish to ignore all shows with a speciffic title, use titleIgnore
titleIgnore can be applied by creating a file called:
~.mythicalLibrarian/titleIgnore
##############################################################
#Show to ignore                                              #
#Battlestar Gallactica                                       #
#The Office                                                  #
#Millionaire                                                 #
#Aqua teen Hungerforce                                       #
##############################################################

ShowTranslations:
Code:
======showTranslations=====
If you are having problems with incorrect guide data such
as improper titling, use showTranslations.
ShowTranslations can be applied by creating a file called:
~/.mythicalLibrarian/showTranslations
##############################################################
#My Guide Show Title = www.TheTvDb.com Show Title            #
#Battlestar Gallactica = Battlestar Gallactica (2003)        #
#The Office = The Office (US)                                #
#Millionaire = Who Wants To Be A Millionaire                 #
#Aqua teen Hungerforce = Aqua Teen Hunger Force              #
##############################################################


So, let me know what you think. Is this something which should be put into a GUI which would allow the user to see the options, or does mythicalSetup work good enough for mythicalLibrarian?
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]
#51
I would do:
Code:
sudo mythicalLibrarian --undo
mythicalLibrarian --doMaintenance #to clear out the database and logs
move the files back to the original location
Code:
mythicalLibrarian --scan mpg /path/to/mythtv_recordings
I am looking into creating a GUI. Please weigh in your oppinion here: http://forum.xbmc.org/showthread.php?tid=79536

Let me know if there's any problems.
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]
#52
This would be a Java program which would run on the mythTV computer or on any other linux computer via ssh -x.
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]
#53
no interest? Jease, the mythicalLibrarian support thread is 90% settings issues. No interest here at all?
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]
#54
I have a few ,possibly dumb, questions.

My setup

Mythbackend in closet (running mythbuntu)
NAS box for movies in closet
3 Mythfrontends (2 network booting from backend)
1 ATV with Pin's linux/xbmc image.

I would like to be able to have access to my myth recordings from the ATV through xbmc (mythfrontend does not support the crystal hd card)

1) Will this script interfere with my other mythfrontends IE: after installing this everything will function normally on the other tv's?

2) Am I correct in assuming that I install the script on the mythbackend.

3) How do I access the recordings from the XBMC located on the ATV do I just set up a samba share on the mythbackend and add it as a source on the XBMC?

4) If this script is running on the remote backend how does it update the database on my ATV/XBMC machine?

Thanks for clearing some things up for me.



Craig
#55
1. Run this script only on the machine which is recording the file. Do not allow other backends to process this job as they will symlink across the network, possibly leading to congestion and dead links when the machine is disconnected.

2. Yes.

3. Yes. Your source will be SMB://192.168.1.100/Episodes or however you set up your samba shares.

4. mythicalLibrarian supports XBMC's httpAPI. It sends a message to the XBMC web server which in turn displays a message on the XBMC screen. It also sends a message to XBMC which tells XBMC to rescan it's sources.

It should work perfectly for your setup. Currently, the only known problem is one user has reported problems with Ubuntu Server Edition. I have installed Ubuntu Server Edition on a virtual machine and am currently working on reproducing the problem. This issue does not effect mythbuntu.
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]
#56
thanks for the reply I will give it a try.

Craig
#57
Okay thought I set it up correct but when I run it from the command line I get

Code:
craig@myth-hd2:~$ /usr/local/bin/mythicalLibrarian "%DIR%/%FILE%"
mythicalLibrarian --:invalid pattern

usage: mythicalLibrarian 'path/to/file' ['title'] ['subtitle']
usage: mythicalLibrarian --mode [parameter] [parameter]
items in brackets are [context sensitve]
ensure you have set the user settings set properly and run
--mythicalDiagnostics before using mythicalLibrarian
in --scan mode or as a UserJob.
More information is available in mythicalLibrarian --special

My recordings dir is /home/mythtv/recordings

during setup I asked it to use the mythtv dir but I noticed the episode dir is @ /home/craig/Episodes

I did set it up to run job as user craig as myth backend is running under that user I think.

I did try running the command as sudo but got the same error.

any help appreciated.

Code:
All tests complete            RESULTS
  Installed Packages:        ***PASSED***
  Notifications Test:        ***FAILED***
  XBMC Communications:       ***PASSED***
  File System Checks:        ***PASSED***
  mythicalTesting:           ***PASSED***
  Overall mythicalReadiness: ***PASSED***
-----End of diagnostics-----
Notifications to the DBUS have failed. mythicalLibrarian relies upon
librarian-notify-send and package lib-notify to display messages on
GNOME desktop interface. These messages will not be displayed.

Thanks

Craig

Never mind I thought it batch ran but I see it runs after each recording so I am trying the scan mode to populate it initially and that is running fine so just ignore above post. Just leaving it so any other people can see it and not repeat my misunderstanding.

Thanks

Craig
#58
Good to see everything went smoothly after that little speed bump. The problem was that you were calling the user job outside of the mythtv environment. mythicalLibrarian read "%DIR%/%FILE%" as a variable because it was not translated into a filename by mythtv.

I made some changes to prevent confusion.
Code:
mythtv@XBMC-live:~/.mythicalLibrarian/mythicalSetup$ /usr/local/bin/mythicalLibrarian "%DIR%/%FILE%"
ERROR: MythTV User Job is only valid when run as a user job by MythTV
When outside MythTV call the file directly, EG.
mythicalLibrarian /path_to/file.ext
   --or when looking up a non database Episode--
mythicalLibrarian /path_to/file.ext "Title of Show" "Subtitle of show"
Hope that helps someone in the future.
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]
#59
I am having an actual problem now Big Grin

I cannot seem to delete shows I have recorded, If I try to delete them on the mythfrontend or using mythweb they just reappear. Any thoughts?
I did tick the box to follow symlinks.
Thanks
Craig
#60
Did you try restarting? mythicalLibrarian works with set mythtv standards. As long as the follow symlinks when deleting checkbox is checked in mythtv-setup, it should work.
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