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

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



- soulnothing - 2011-02-21

Nah didn't hand compile, I was wondering which would be easier route compiling 0.23 or installing mythbuntu 10.04.

I got it working though I could have sworn I tried setting mythicalsetup to version 0.23 and skipping python bindings. But it's working now.

Thanks


- outleradam - 2011-02-24

Ok... I can now verify that this is a definate problem with python bindings.
Code:
Performing MythTV Python Bindings database test
/usr/bin/python2.6
Python2.6 installed
Establishing database connection
Traceback (most recent call last):
  File "/usr/local/bin/MythDataGrabber", line 167, in <module>
    from MythTV import MythDB
ImportError: No module named MythTV
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named MythDB.MythTV
/usr/local/bin/mythicalLibrarian: line 1783: test: too many arguments
Establishing database connection
Traceback (most recent call last):
  File "/usr/local/bin/MythDataGrabber", line 167, in <module>
    from MythTV import MythDB
ImportError: No module named MythTV
there was a problem connecting to the database, check MythDatabase package
MythTV Database Test ***FAILED***
Press any key to perform XBMC Notification test...

Also, the fix is to use 0.23 direct mysql until this issue is resolved. It would appear that the python bindings are not installed.


- outleradam - 2011-02-24

This is the result of attempting to use mythtv python bindings on mythtv 0.23.. Also, the result of not installing libmyth-python under ubuntu
Code:
root@XBMCLive:~/.mythicalLibrarian/mythicalSetup# mythbackend --version
Please include all output in bug reports.
MythTV Version   : 24158
MythTV Branch    : branches/release-0-23-fixes
Network Protocol : 56
Library API      : 0.23.20100314-1
QT Version       : 4.6.2
Options compiled in:
The command to install mythtv python bindings is:
Code:
sudo apt-get install libmyth-python
This is 0.23 with mythtv python bindings installed properly. However, mythicalLibrarian supports 0.24 ONLY with python bindings. 0.21, 0.22 and 0.23 are strictly direct mysql support.
Code:
Performing MythTV Python Bindings database test
/usr/bin/python2.6
Python2.6 installed
Establishing database connection
Connected to: Diagnostics failed.
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named MythDB.MythTV
/usr/local/bin/mythicalLibrarian: line 1783: test: too many arguments
Establishing database connection
Connected to: Diagnostics failed.
there was a problem connecting to the database, check MythDatabase package
MythTV Database Test ***FAILED***
Press any key to perform XBMC Notification test...

Now, to install MythTV 0.24 on the system:
Code:
[i]add[/i]-[i]apt[/i]-[i]repository[/i] ppa:mythbuntu/0.24
apt-get update
apt-get upgrade
this will be continued later.


- outleradam - 2011-02-25

alright, this is 0.24 without libmyth-python and python-lxml... and a database mismatch of 0.25 schema interfacing on 0.24... Sad.....
Code:
Press any key to perform MythTV Database test...

Performing MythTV Python Bindings database test
/usr/bin/python2.6
Python2.6 installed
Establishing database connection
Traceback (most recent call last):
  File "/usr/local/bin/MythDataGrabber", line 167, in <module>
    from MythTV import MythDB
ImportError: No module named MythTV
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named MythDB.MythTV
/usr/local/bin/mythicalLibrarian: line 1783: test: too many arguments
Establishing database connection
Traceback (most recent call last):
  File "/usr/local/bin/MythDataGrabber", line 167, in <module>
    from MythTV import MythDB
ImportError: No module named MythTV
there was a problem connecting to the database, check MythDatabase package
MythTV Database Test ***FAILED***
Press any key to perform XBMC Notification test...
It may be a while until I get time to get my media center up in operations... the family uses it during the week.... It's just not DVRing now. I'm very sorry if anyone is having any problems with mythicalLibrarian. Make sure you install those two packages on ubuntu!

Let me know if that fixes it or not.


python bindings mac - kvandesteeg - 2011-02-27

Hey - looks like this has really matured since the 3xx days that I hast checked in!

I see you cross posting on mythtv talk for the python bindings for mac. It's not clear if the current main mac distro comes with those.

Using the .24 bindings at the latest 925 failed at the DB check
using the .23 bindings, nothing is output to the log file.


Code:
Press any key to perform MythTV Database test...
Performing MythTV Python Bindings database test
/usr/bin/python2.6
Python2.6 installed
Establishing database connection
Traceback (most recent call last):
  File "/usr/local/bin/MythDataGrabber", line 167, in <module>
    from MythTV import MythDB
ImportError: No module named MythTV
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named MythDB.MythTV
/usr/local/bin/mythicalLibrarian: line 1785: test: too many arguments
Establishing database connection
Traceback (most recent call last):
  File "/usr/local/bin/MythDataGrabber", line 167, in <module>
    from MythTV import MythDB
ImportError: No module named MythTV
there was a problem connecting to the database, check MythDatabase package



- outleradam - 2011-02-28

All the diagnostic problems were corrected. Please let me know if it works or does not work. Everything SHOULD be working at this point. It is working on my system.

Let me know if there are any things I can do to make the setup easier.


- GregoryK - 2011-02-28

Adam

svn 931 installed properly on my system, no Database diagnostic errors as before. Nice work, thanks for the fix!

/Greg


- kvandesteeg - 2011-02-28

.24 with python bindings doesn't work on OSX, moving down to .23 works


- outleradam - 2011-02-28

GregoryK Great! SVN 931 to Stable.


- outleradam - 2011-02-28

kvandesteeg Wrote:.24 with python bindings doesn't work on OSX, moving down to .23 works

I have heard that there is a manual installation procedure. I am not really good with mac. . Could you look into installation of python bindings? Apparently, direct mysql access will not be possible with MythTV 0.25. MythTV for Mac is designed to be installed and deleted as an app. The python bindings are apparently there, bit require permanent installation using the python setup command from the terminal.

I have a virtual mac, but it is difficult to work with. It's resolution is small. Its horrible for anything but testing.

If Bindings cannot be made to work, I may have to drop OSX support on 0.25


- divingmule - 2011-03-03

Hi, I decided to give this a go. After some confusion getting things setup I think everything is working. I ran my initial --scan (while logged in with the mythtv user?) didn't notice any errors and wow almost two gigs of TV-shows added to my XBMC library. AwesomeSmile

A few shows were named incorrectly. For example, 2 of 9 episodes of 'The Office(us)' was named 'The Office(uk)'. What is the best method to correct this?

Thanks for all your work.


- outleradam - 2011-03-03

Can you post the section of the file ~/.mythicalLibrarian/output.log which pertains to this problem? You can post it here in [ code ] tags. Just post the sections pertaining to The Office(uk), not the entire log.

There are a few options, but I'd like to see what caused this before recommending anything.


- divingmule - 2011-03-03

And by 2gigs I mean terabytes Smile

Here is The Office (uk)
Code:
@@@@@@@@@@@NEW SEARCH INITIATED AT Wed Mar  2 08:35:42 CST 2011@@@@@@@@@@@@@@
Revision 931 Tue Mar 1 21:26:02 CST 2011 on Linux
PERFORMING MAINTENANCE ROUTINE
SEARCHING: www.TheTvDb.com SHOW NAME: The Office EPISODE: Niagara
DATE:  FILE NAME: /media/Myth/1041_20110113200000.mpg
FOUND:The Office (UK) ID#:78107 WITH CONFIDENCE:-2
Creating MythicalLibrarian Database Folder
AIRDATE FAILED. TITLE MATCH ON ABSOLUTE EPISODE NUMBER:
AIRDATE/SANDARD LOGIC FAILED. FUZZY LOGIC ABSOLUTE:
###################DEBUG MODE ENABLED####################
MY USER NAME:mythtv-
LISTING INTERNAL VARIABLES USED BY mythicalLibrarian.
INTERNET TIMEOUT:50- TVDB API KEY:6DF511BB2A64E0E9- mythicalLibrarian WORKING DIR:/home/mythtv/.mythicalLibrarian-
MOVE DIR:/media/Myth/Episodes-
FAILSAFE MODE:Enabled- FAILSAFE DIR:/home/mythtv/FailSafe- ALTERNATE MOVE DIR:/media/Myth/Episodes-
USE ORIGINAL DIR:Enabled NOTIFICATIONS:Enabled
INPUT SHOW NAME:The Office- LOCAL SHOW NAME TRANSLATION:- ShowName:The Office
DATABASE UPDATED:- TVDB LAST UPDATED:- CURRENT:-
RESOLVED SERIES ID:78107- RESOVED SHOW NAME:The Office (UK)-
INPUT EPISODE NAME:Niagara- Absolute EPISODE NUMBER:7- RESOLVED EPISODE NAME:DVD Extra - Video Diary of the Making of Series Two-
SEASON:S00- EPISODE:E07- SYMLINK MODE:MOVE- FILESIZE: 0kB-
CONFIDENCE:-4 LOGIC PATH:  Attempted Match On Zap2itID: Failed; Attemted match on Standard Logic: Failed; Attemted Title match on Fuzzy Logic: Sucessful; Attemped match on OriginalAirDate: Failed; Attemted SubTitle match on Standard logic: Failed; Attemted SubTitle match on Fuzzy logic: Sucessful;
CREATE AND DELETE FLAGS: ORIGINALDIR:1- FREE:85320268kB- WORKINGDIR:1 FREE:24147932kB-
MOVEDIRWRITABLE:1- FREE:85320268kB- ALTERNATEMOVEDIR:1- FREE:85320268kB-
PRIMARYSHOWDIRWRITABLE:1-  FREE:85320268kB-ALTERNATESHOWDIRWRITABLE:1- FREE:85320268kB-
PRIMARYMOVIEDIRWRITABLE:1- FREE:85320268kB- ALTERNATEMOVIEDIR:1- FREE:85320268kB-
DATABASE TYPE:eitonly-
RECSTART:2011-01-13 20:00:00- MOVIE YEAR:- ORIGINAL SERIES DATE:-
PROGRAMID:EP007261330132.02- CHANNEL ID:1041- CATEGORY:comedy- GOFORDOOVER:0-
EXTRAPOLATED DATA DETERMINED THIS RECORDING AS A:Series With Episode Data- STARS:0 RATING:0
ZAP2IT SERIES ID:726133013- MATCHED TVDB SERIES ID:-
PLOT: The office mates travel to Niagara Falls to celebrate Jim and Pam's wedding; Michael, Dwight and Andy want to hook up with wedding guests; Jim lets a secret slip at the rehearsal dinner.
####################END OF DEBUG LOG#####################
CREATING FOLDER: /media/Myth/Episodes/The Office (UK)
MOVING FILE: '/media/Myth/1041_20110113200000.mpg' to '/media/Myth/Episodes/The Office (UK)/Season 0/The Office (UK) S00E07 (DVD Extra - Video Diary of the Making of Series Two).mpg'
@@@@@@@@@@@@@OPERATION COMPLETE Wed Mar 2 08:35:44 CST 2011 @@@@@@@@@@@@@@@@
@@@@@@@@@@@NEW SEARCH INITIATED AT Wed Mar  2 08:35:50 CST 2011@@@@@@@@@@@@@@
Revision 931 Tue Mar 1 21:26:02 CST 2011 on Linux
PERFORMING MAINTENANCE ROUTINE
SEARCHING: www.TheTvDb.com SHOW NAME: The Office EPISODE: Niagara
DATE:  FILE NAME: /media/Myth/1041_20110113203000.mpg
FOUND:The Office (UK) ID#:78107 WITH CONFIDENCE:-2
AIRDATE FAILED. TITLE MATCH ON ABSOLUTE EPISODE NUMBER:
AIRDATE/SANDARD LOGIC FAILED. FUZZY LOGIC ABSOLUTE:
###################DEBUG MODE ENABLED####################
MY USER NAME:mythtv-
LISTING INTERNAL VARIABLES USED BY mythicalLibrarian.
INTERNET TIMEOUT:50- TVDB API KEY:6DF511BB2A64E0E9- mythicalLibrarian WORKING DIR:/home/mythtv/.mythicalLibrarian-
MOVE DIR:/media/Myth/Episodes-
FAILSAFE MODE:Enabled- FAILSAFE DIR:/home/mythtv/FailSafe- ALTERNATE MOVE DIR:/media/Myth/Episodes-
USE ORIGINAL DIR:Enabled NOTIFICATIONS:Enabled
INPUT SHOW NAME:The Office- LOCAL SHOW NAME TRANSLATION:- ShowName:The Office
DATABASE UPDATED:- TVDB LAST UPDATED:1299076543- CURRENT:-
RESOLVED SERIES ID:78107- RESOVED SHOW NAME:The Office (UK)-
INPUT EPISODE NAME:Niagara- Absolute EPISODE NUMBER:7- RESOLVED EPISODE NAME:DVD Extra - Video Diary of the Making of Series Two-
SEASON:S00- EPISODE:E07- SYMLINK MODE:MOVE- FILESIZE: 0kB-
CONFIDENCE:-4 LOGIC PATH:  Attempted Match On Zap2itID: Failed; Attemted match on Standard Logic: Failed; Attemted Title match on Fuzzy Logic: Sucessful; Attemped match on OriginalAirDate: Failed; Attemted SubTitle match on Standard logic: Failed; Attemted SubTitle match on Fuzzy logic: Sucessful;
CREATE AND DELETE FLAGS: ORIGINALDIR:1- FREE:85320248kB- WORKINGDIR:1 FREE:24147236kB-
MOVEDIRWRITABLE:1- FREE:85320248kB- ALTERNATEMOVEDIR:1- FREE:85320248kB-
PRIMARYSHOWDIRWRITABLE:1-  FREE:85320248kB-ALTERNATESHOWDIRWRITABLE:1- FREE:85320248kB-
PRIMARYMOVIEDIRWRITABLE:1- FREE:85320248kB- ALTERNATEMOVIEDIR:1- FREE:85320248kB-
DATABASE TYPE:eitonly-
RECSTART:2011-01-13 20:30:00- MOVIE YEAR:- ORIGINAL SERIES DATE:-
PROGRAMID:EP007261330133.12- CHANNEL ID:1041- CATEGORY:comedy- GOFORDOOVER:0-
EXTRAPOLATED DATA DETERMINED THIS RECORDING AS A:Series With Episode Data- STARS:0 RATING:0
ZAP2IT SERIES ID:726133013- MATCHED TVDB SERIES ID:-
PLOT: The office mates travel to Niagara Falls to celebrate Jim and Pam's wedding; Michael, Dwight and Andy want to hook up with wedding guests; Jim lets a secret slip at the rehearsal dinner.
####################END OF DEBUG LOG#####################
MOVING FILE: '/media/Myth/1041_20110113203000.mpg' to '/media/Myth/Episodes/The Office (UK)/Season 0/The Office (UK) S00E07 (DVD Extra - Video Diary of the Making of Series Two)-1.mpg'
@@@@@@@@@@@@@OPERATION COMPLETE Wed Mar 2 08:35:52 CST 2011 @@@@@@@@@@@@@@@@

Here "Cops" is named "The Cops"
Code:
@@@@@@@@@@@NEW SEARCH INITIATED AT Wed Mar  2 08:44:00 CST 2011@@@@@@@@@@@@@@
Revision 931 Tue Mar 1 21:26:02 CST 2011 on Linux
PERFORMING MAINTENANCE ROUTINE
SEARCHING: www.TheTvDb.com SHOW NAME: Cops EPISODE: 2319
DATE:2011  FILE NAME: /media/Myth/1171_20110129190000.mpg
MATCH FOUND BASED ON Zap2itID:
FOUND:The Cops ID#:72536 WITH CONFIDENCE:1
Creating MythicalLibrarian Database Folder
AIRDATE FAILED. TITLE MATCH ON ABSOLUTE EPISODE NUMBER:
AIRDATE/SANDARD LOGIC FAILED. FUZZY LOGIC ABSOLUTE:
###################DEBUG MODE ENABLED####################
MY USER NAME:mythtv-
LISTING INTERNAL VARIABLES USED BY mythicalLibrarian.
INTERNET TIMEOUT:50- TVDB API KEY:6DF511BB2A64E0E9- mythicalLibrarian WORKING DIR:/home/mythtv/.mythicalLibrarian-
MOVE DIR:/media/Myth/Episodes-
FAILSAFE MODE:Enabled- FAILSAFE DIR:/home/mythtv/FailSafe- ALTERNATE MOVE DIR:/media/Myth/Episodes-
USE ORIGINAL DIR:Enabled NOTIFICATIONS:Enabled
INPUT SHOW NAME:Cops- LOCAL SHOW NAME TRANSLATION:- ShowName:Cops
DATABASE UPDATED:- TVDB LAST UPDATED:- CURRENT:-
RESOLVED SERIES ID:72536- RESOVED SHOW NAME:The Cops-
INPUT EPISODE NAME:2319- Absolute EPISODE NUMBER:1- RESOLVED EPISODE NAME:Episode 1-
SEASON:S01- EPISODE:E01- SYMLINK MODE:MOVE- FILESIZE: 0kB-
CONFIDENCE:-1 LOGIC PATH:  Attempted Match On Zap2itID: Sucessful; Attemped match on OriginalAirDate: Failed; Attemted SubTitle match on Standard logic: Failed; Attemted SubTitle match on Fuzzy logic: Sucessful;
CREATE AND DELETE FLAGS: ORIGINALDIR:1- FREE:85318824kB- WORKINGDIR:1 FREE:24127152kB-
MOVEDIRWRITABLE:1- FREE:85318824kB- ALTERNATEMOVEDIR:1- FREE:85318824kB-
PRIMARYSHOWDIRWRITABLE:1-  FREE:85318824kB-ALTERNATESHOWDIRWRITABLE:1- FREE:85318824kB-
PRIMARYMOVIEDIRWRITABLE:1- FREE:85318824kB- ALTERNATEMOVIEDIR:1- FREE:85318824kB-
DATABASE TYPE:eitonly-
RECSTART:2011-01-29 19:00:00- MOVIE YEAR:2011- ORIGINAL SERIES DATE:-
PROGRAMID:EP000170700906- CHANNEL ID:1171- CATEGORY:episodic- GOFORDOOVER:0-
EXTRAPOLATED DATA DETERMINED THIS RECORDING AS A:Series With Episode Data- STARS:0 RATING:0
ZAP2IT SERIES ID:17070- MATCHED TVDB SERIES ID:-
PLOT: A suspect on a bike tries to flee while being questioned by officers; a woman with a warrant out for her arrest claims she was assaulted; a man claims a neighbor chased him with a knife.
####################END OF DEBUG LOG#####################
CREATING FOLDER: /media/Myth/Episodes/The Cops
MOVING FILE: '/media/Myth/1171_20110129190000.mpg' to '/media/Myth/Episodes/The Cops/Season 1/The Cops S01E01 (Episode 1).mpg'
@@@@@@@@@@@@@OPERATION COMPLETE Wed Mar 2 08:44:03 CST 2011 @@@@@@@@@@@@@@@@



- outleradam - 2011-03-03

Ok... I see what's going on. I don't have a proper database interperater for EITONLY data. Please post up an example of an episode, a movie, and a generic showing like the news or 3pm spongebob squarepants so I can get your data added properly.


- divingmule - 2011-03-03

I'm using mc2xml for all but a couple of music video channels that I use EIT for.

Do you want examples from the --scan or my xml?