mythicalLibrarian - a tool to build Movie and TV Show library from MythTV recordings

  Thread Rating:
  • 3 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
sdsnyr94 Offline
Fan
Posts: 421
Joined: Aug 2009
Reputation: 1
Location: Greensboro, NC
Post: #911
OK, I upgraded to 0.25 and reran mythicalSetup. I now have this error:

Python Database Connection: Database schema mismatch: we speak 1264 but database speaks 1299
find quote
outleradam Offline
Member+
Posts: 1,722
Joined: Sep 2009
Reputation: 20
Location: Louisiana
Post: #912
(2012-04-13 21:06)sdsnyr94 Wrote:  OK, I upgraded to 0.25 and reran mythicalSetup. I now have this error:

Python Database Connection: Database schema mismatch: we speak 1264 but database speaks 1299

Your python bindings are out-of-date. upgrade libmyth-python or something like that... It's best to stick with official packages because of problems like this. Basically, you havn't fully upgraded MythTV yet.

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
[Image: newsig-1.png]
[url=http://forum.xda-developers.com/showthread.php?tid=1081892][/url]
find quote
sdsnyr94 Offline
Fan
Posts: 421
Joined: Aug 2009
Reputation: 1
Location: Greensboro, NC
Post: #913
(2012-04-13 22:00)outleradam Wrote:  
(2012-04-13 21:06)sdsnyr94 Wrote:  OK, I upgraded to 0.25 and reran mythicalSetup. I now have this error:

Python Database Connection: Database schema mismatch: we speak 1264 but database speaks 1299

Your python bindings are out-of-date. upgrade libmyth-python or something like that... It's best to stick with official packages because of problems like this. Basically, you havn't fully upgraded MythTV yet.

Thanks... that did the trick. Probably caused because I did not want to do a dist-upgrade, so I missed the linmyth-python entry.

Thanks for the really quick response!
find quote
TechnoSwiss Offline
Junior Member
Posts: 7
Joined: Mar 2009
Reputation: 0
Post: #914
MythDataGrabber is having a problem doing a DB lookup with a recent Episode of CSI: NY.

http://thetvdb.com/?tab=episode&seriesid...id=4297315

I originally tried 'mythicalLibrarian 2061_20120427210000.mpg CSI\ NY Slainte', when I do 'mythicalLibrarian --doover' to bring the error back up I get...

Moving 2061_20120427210000.mpg to original location
Revision 946 Tue May 8 10:43:59 PDT 2012
Attemting to pull database information on 2061_20120427210000.mpg
Traceback (most recent call last):
File "/usr/local/bin/MythDataGrabber", line 272, in <module>
writeData()
File "/usr/local/bin/MythDataGrabber", line 226, in writeData
f.write('%s = "%s"\n' % x)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe1' in position 14: ordinal not in range(128)
RECSTART:2012-04-27 21:00:00 DATE:
PROGRAMID: ShowCategory:
PLOT:
PERFORMING MAINTENANCE ROUTINE...
REMOVING ORPHAN FOLDER:/recordings/Episodes/CSI NY/Season 7
SEARCHING: http://www.TheTvDb.com SHOW NAME: CSI NY EPISODE: Slainte
TESTING FOR ZAP2ITID MATCH:EP00679714 CSI: NY
agrep: 1 word matches within 1 error
FOUND:CSI: NY ID#:73696 WITH CONFIDENCE:-2
Parsing Downloaded information: CSI: NY.xml
AIRDATE FAILED. TITLE MATCH ON ABSOLUTE EPISODE NUMBER:
AIRDATE/SANDARD LOGIC FAILED. FUZZY LOGIC ABSOLUTE:
agrep: 2 words match within 2 errors
TOTAL MATCHES:2509 TOTAL VERIFIED FUZZY ERRORS:2908
EPISODE:Vigilante EPISODE NUMBER:156 S07E15 WITH CONFIDENCE: -2
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;
JOB: mythicalLibrarian '2061_20120427210000.mpg' 'CSI NY' 'Slainte'
TARGET SET:/recordings/Episodes/CSI NY/Season 7/CSI NY S07E15 (Vigilante).mpg
CREATING SYMLINK IN MOVE MODE
MOVED: 2061_20120427210000.mpg
TO: /recordings/Episodes/CSI NY/Season 7/CSI NY S07E15 (Vigilante).mpg
RSS ENTRY SUCCESSFULLY CREATED: /var/www/mythical-rss/rss.xml
SUCCESSFUL COMPLETEION TYPE: MoveModeSuccessful
done.
find quote
djroketboy Offline
Senior Member
Posts: 109
Joined: Nov 2009
Reputation: 1
Post: #915
What's the easiest way to fully remove/uninstall mythicalLibrarian?
find quote
outleradam Offline
Member+
Posts: 1,722
Joined: Sep 2009
Reputation: 20
Location: Louisiana
Post: #916
(2012-05-09 22:59)djroketboy Wrote:  What's the easiest way to fully remove/uninstall mythicalLibrarian?

Code:
sudo su
rm `which mythicalLibrarian`
rm `which librarian-notify-send`
rm `which MythDataGrabber`
rm -rf ~/.mythicalLibrarian
rm /etc/mythicalLibrarian

(2012-05-09 05:13)TechnoSwiss Wrote:  MythDataGrabber is having a problem doing a DB lookup with a recent Episode of CSI: NY.

http://thetvdb.com/?tab=episode&seriesid...id=4297315

I originally tried 'mythicalLibrarian 2061_20120427210000.mpg CSI\ NY Slainte', when I do 'mythicalLibrarian --doover' to bring the error back up I get...

Moving 2061_20120427210000.mpg to original location
Revision 946 Tue May 8 10:43:59 PDT 2012
Attemting to pull database information on 2061_20120427210000.mpg
Traceback (most recent call last):
File "/usr/local/bin/MythDataGrabber", line 272, in <module>
writeData()
File "/usr/local/bin/MythDataGrabber", line 226, in writeData
f.write('%s = "%s"\n' % x)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe1' in position 14: ordinal not in range(128)
RECSTART:2012-04-27 21:00:00 DATE:
PROGRAMID: ShowCategory:
PLOT:
PERFORMING MAINTENANCE ROUTINE...
REMOVING ORPHAN FOLDER:/recordings/Episodes/CSI NY/Season 7
SEARCHING: http://www.TheTvDb.com SHOW NAME: CSI NY EPISODE: Slainte
TESTING FOR ZAP2ITID MATCH:EP00679714 CSI: NY
agrep: 1 word matches within 1 error
FOUND:CSI: NY ID#:73696 WITH CONFIDENCE:-2
Parsing Downloaded information: CSI: NY.xml
AIRDATE FAILED. TITLE MATCH ON ABSOLUTE EPISODE NUMBER:
AIRDATE/SANDARD LOGIC FAILED. FUZZY LOGIC ABSOLUTE:
agrep: 2 words match within 2 errors
TOTAL MATCHES:2509 TOTAL VERIFIED FUZZY ERRORS:2908
EPISODE:Vigilante EPISODE NUMBER:156 S07E15 WITH CONFIDENCE: -2
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;
JOB: mythicalLibrarian '2061_20120427210000.mpg' 'CSI NY' 'Slainte'
TARGET SET:/recordings/Episodes/CSI NY/Season 7/CSI NY S07E15 (Vigilante).mpg
CREATING SYMLINK IN MOVE MODE
MOVED: 2061_20120427210000.mpg
TO: /recordings/Episodes/CSI NY/Season 7/CSI NY S07E15 (Vigilante).mpg
RSS ENTRY SUCCESSFULLY CREATED: /var/www/mythical-rss/rss.xml
SUCCESSFUL COMPLETEION TYPE: MoveModeSuccessful
done.

I contacted Mike. He is much better with the python than I am.

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
[Image: newsig-1.png]
[url=http://forum.xda-developers.com/showthread.php?tid=1081892][/url]
(This post was last modified: 2012-05-22 22:46 by outleradam.)
find quote
barney_1 Offline
Junior Member
Posts: 37
Joined: Mar 2008
Reputation: 2
Post: #917
(2012-05-09 05:13)TechnoSwiss Wrote:  MythDataGrabber is having a problem doing a DB lookup with a recent Episode of CSI: NY.

http://thetvdb.com/?tab=episode&seriesid...id=4297315

I originally tried 'mythicalLibrarian 2061_20120427210000.mpg CSI\ NY Slainte', when I do 'mythicalLibrarian --doover' to bring the error back up I get...

Moving 2061_20120427210000.mpg to original location
Revision 946 Tue May 8 10:43:59 PDT 2012
Attemting to pull database information on 2061_20120427210000.mpg
Traceback (most recent call last):
File "/usr/local/bin/MythDataGrabber", line 272, in <module>
writeData()
File "/usr/local/bin/MythDataGrabber", line 226, in writeData
f.write('%s = "%s"\n' % x)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe1' in position 14: ordinal not in range(128)
RECSTART:2012-04-27 21:00:00 DATE:
PROGRAMID: ShowCategory:
PLOT:
PERFORMING MAINTENANCE ROUTINE...
REMOVING ORPHAN FOLDER:/recordings/Episodes/CSI NY/Season 7
SEARCHING: http://www.TheTvDb.com SHOW NAME: CSI NY EPISODE: Slainte
TESTING FOR ZAP2ITID MATCH:EP00679714 CSI: NY
agrep: 1 word matches within 1 error
FOUND:CSI: NY ID#:73696 WITH CONFIDENCE:-2
Parsing Downloaded information: CSI: NY.xml
AIRDATE FAILED. TITLE MATCH ON ABSOLUTE EPISODE NUMBER:
AIRDATE/SANDARD LOGIC FAILED. FUZZY LOGIC ABSOLUTE:
agrep: 2 words match within 2 errors
TOTAL MATCHES:2509 TOTAL VERIFIED FUZZY ERRORS:2908
EPISODE:Vigilante EPISODE NUMBER:156 S07E15 WITH CONFIDENCE: -2
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;
JOB: mythicalLibrarian '2061_20120427210000.mpg' 'CSI NY' 'Slainte'
TARGET SET:/recordings/Episodes/CSI NY/Season 7/CSI NY S07E15 (Vigilante).mpg
CREATING SYMLINK IN MOVE MODE
MOVED: 2061_20120427210000.mpg
TO: /recordings/Episodes/CSI NY/Season 7/CSI NY S07E15 (Vigilante).mpg
RSS ENTRY SUCCESSFULLY CREATED: /var/www/mythical-rss/rss.xml
SUCCESSFUL COMPLETEION TYPE: MoveModeSuccessful
done.

I pushed a fix to the repository. It should sanitize all Unicode now. I tested to make sure it won't crash anymore, but I can't test to make sure it plays nicely with MythicalLibrarian because I don't have anything in my database with Unicode characters. Can you give it a try and let me know if there are any issues?
find quote
leighchallinor Offline
Junior Member
Posts: 1
Joined: Jun 2012
Reputation: 0
Post: #918
Hi
I've changed my directorys in mythicalLibrarian.sh but the script seems to default to the directory it is running from ~/.mythicalLibrarian
I do have permissions for the directories I have specified which are on a NFS that mythtv uses to write it'srecordings to

Is this a bug or am I getting something completely wrong?
find quote
ubuntite Offline
Member
Posts: 65
Joined: Apr 2008
Reputation: 0
Post: #919
Hi,

I've been away for a while. My old version of mythicalLibrarian has been running just fine for a long time, but just yesterday I needed to install from scratch. Now I am having some problems.

Here are my questions:

1. What is the difference between mythicalLibrarian.sh and mythicalLibrarian (in /usr/local/bin)?

I tried installing manually on linux using the instructions on the wiki, but it only mentioned downloading mythicalLibrarian to /usr/local/bin. It didn't mention mythicalLibrarian.sh.

2. It seems the wiki neglects to mention downloading librarian-notify-send and MythDataGrabber to /usr/local/bin. Is that just an oversight?

3. Should I be using /home/mythtv/mythicalLibrarian or /home/mythtv/.mythicalLibrarian?

The wiki is confusing because it references both directories in different places.


So, it would be helpful for me to know what a final installation looks like. Let me know if this is correct. I will be running mythicalLibrarian as a user job from myth as user mythtv. Is this what a full installation should look like?

/usr/local/bin/mythicalLibrarian
/usr/local/bin/librarian-notify-send
/usr/local/bin/MythDataGrabber
/home/mythtv/mythicalLibrarian/_all_files_here_get_created_automatically_by_the_script_


If this is correct, what is the best way to set this up? Using mythicalSetup seems messy because of the permissions problems and having to run as multiple users.

Thanks.
find quote
GregoryK Offline
Member
Posts: 91
Joined: Mar 2010
Reputation: 0
Post: #920
(2012-06-26 23:00)ubuntite Wrote:  Hi,

I've been away for a while. My old version of mythicalLibrarian has been running just fine for a long time, but just yesterday I needed to install from scratch. Now I am having some problems.

[snip]

If this is correct, what is the best way to set this up? Using mythicalSetup seems messy because of the permissions problems and having to run as multiple users.

Thanks.

I just upgraded from 10.04 to 12.04 so went through the same process as you, a clean install from scratch after having mythicalLibrarian running fine for some time. Running as mythtv.

Why do you want to install manually? My steps were:

(1) delete the script completely using the commands outleradam listed about 3 or 4 posts up.
(2) 'sudo su mythtv'
(3) 'cd ~'
(4) follow the steps for Automatic Installation on the wiki page
(5) the last of those three commands will run the (pretty slick) installer that will download what you need and set everything up and then test it before exiting, including permissions.

Got me up and running quickly. Hope that helps.

/Greg
find quote
Post Reply