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)



- mellowpellow - 2011-04-09

GregoryK/divingmule:

Yeah that sounds like exactly what I was seeing, everything was ending up in Showings as the mythicalLibrarian script couldn't fetch the series/episode information. As you said looks like something changed at the thetvdb.com.

A couple of caveats about my changes below:
  1. The line numbers will probably only be correct if you are using the same version as me - I'm using the latest version (r937)
  2. Make a backup if you are going to change your script

If you're not used to editing shell scripts wait until it's fixed properly by by outleradam.

To fix it I edited my /usr/local/bin/mythicalLibrarian script and changed:

line 849, from:
Code:
    curl -s -m"$Timeout" "http://www.thetvdb.com/api/Updates.php?type=none">"$mythicalLibrarian/$NewShowName/current.time"
to
Code:
    curl -s -L -m"$Timeout" "http://www.thetvdb.com/api/Updates.php?type=none">"$mythicalLibrarian/$NewShowName/current.time"

line 879, from:
Code:
        curl -s -m"$Timeout" " http://www.thetvdb.com/api/Updates.php?type=all&time=$LastUpdated" >> "$mythicalLibrarian/$NewShowName/UpdatesList.txt"
to
Code:
        curl -s -L -m"$Timeout" " http://www.thetvdb.com/api/Updates.php?type=all&time=$LastUpdated" >> "$mythicalLibrarian/$NewShowName/UpdatesList.txt"

line 903, from:
Code:
        curl -s -m"$Timeout" "http://www.thetvdb.com/api/$APIkey/series/$SeriesID/all/$Language.xml"| grep -vE "(</id>|</Combined_episodenumber>|</Combined_season>|</DVD_chapter>|</DVD_discid>|</DVD_episodenumber>|</DVD_season>|</Director>|</EpImgFlag>|</GuestStars>|</IMDB_ID>|</Language>|</Overview>|</ProductionCode>|</RatingCount>|</filename>|</seasonid>|</Writer>|</Rating>|</lastupdated>|</seriesid>|</absolute_number>)">"$mythicalLibrarian/$NewShowName/$NewShowName.xmlTest" && echo "$CurrentTime" > "$mythicalLibrarian/$NewShowName/lastupdated.time"
to
Code:
        curl -s -L -m"$Timeout" "http://www.thetvdb.com/api/$APIkey/series/$SeriesID/all/$Language.xml"| grep -vE "(</id>|</Combined_episodenumber>|</Combined_season>|</DVD_chapter>|</DVD_discid>|</DVD_episodenumber>|</DVD_season>|</Director>|</EpImgFlag>|</GuestStars>|</IMDB_ID>|</Language>|</Overview>|</ProductionCode>|</RatingCount>|</filename>|</seasonid>|</Writer>|</Rating>|</lastupdated>|</seriesid>|</absolute_number>)">"$mythicalLibrarian/$NewShowName/$NewShowName.xmlTest" && echo "$CurrentTime" > "$mythicalLibrarian/$NewShowName/lastupdated.time"

line 1182, from:
Code:
    curl -s -m"$Timeout" www.thetvdb.com/api/GetSeries.php?seriesname=$tvdbshowname>"$mythicalLibrarian/working.xml"
to
Code:
    curl -s -L -m"$Timeout" www.thetvdb.com/api/GetSeries.php?seriesname=$tvdbshowname>"$mythicalLibrarian/working.xml"

Basically anywhere that curl is used to access http://www.thetvdb.com/api you need to add -L to the command line arguments.


mythicalSetup.sh - ctmjr - 2011-04-10

Hello,
Am trying to set up mythicallibrarian and cannot get past this point, thanks

All tests complete RESULTS
MythTV Database Test:
Installed Packages: ***PASSED***
Notifications Test: ***PASSED***
XBMC Communications: ***PASSED***
File System Checks: ***PASSED***
mythicalTesting: COULD NOT COMPLETE
Overall mythicalReadiness: ***FAILURE***
-----End of diagnostics-----
mythicalLibrarian has encountered an error. This may be due to
lack of network connection. If the problem persists, contact
outleradam here: http://forum.xbmc.org/showthread.php?tid=65644

These issues must be corrected in order for mythicalLibrarian to
perform correctly
Please try again. If problem persists, please post here: http://forum.xbmc.org/showthread.php?tid=65644
permissions were set for user: chuck.
RSS Feed will be located at http://192.168.2.2/mythical-rss/rss.xml .
mythicalLibrarian is located in /usr/local/bin
mythicalLibrarian's log is located in ~/.mythicalLibrarian/output.log
Renamed video files will be placed in new folders within original.
ie. /path_to_original_file/Episodes, /Movies and /Showings.
./mythicalSetup.sh: line 840: 1: command not found
For more information, type 'mythicalLibrarian --help'


mythicalSetup.sh - ctmjr - 2011-04-10

am trying to get mythicalLibrarian up and running and have hit a snag. here is the output log
http://paste.debian.net/113597/

this one I tried as root but still no go.


mythicalSetup.sh - ctmjr - 2011-04-10

Also I see this error every time I run the setup no matter what user I use.
"/usr/local/bin/mythicalLibrarian: line 994: /mythtv/.mythicalLibrarian/zap2it.txt: No such file or directory"

I tried to create the file but still no go.
thanks.


- Tim.Winters - 2011-04-10

I too receive the same error. Just started using mythicalLibrarian this weekend.


- GregoryK - 2011-04-11

ctmjr/Tim.Winters:

If you scroll up to the posts immediately before yours, you'll see that others are having the same problem as you, due most likely to a change in thetvdb.org website that mythicalLibrarian uses to obtain the Episode data. The fix seems to be simple (see mellowpellow's post#796.)

Usually outleradam is very quick to respond on this thread and to fix issues, so my only guess is that he is out of town or otherwise off the net. If you can wait a day or two, my guess is that the fix will be incorporated into the script by him and we'll all be up and running again. If you can't wait for the revision, look at post #796 to see how to edit the existing script to get it working.

Hope that helps.

/Greg


- ctmjr - 2011-04-11

Well that did the trick Thanks so much. (but I do feel like an idiot since I read just about all 80 pages except the very last one).


- Tim.Winters - 2011-04-11

Don't feel bad I read all the post too. It did the trick. yes thank you Greg


- ctmjr - 2011-04-11

Well I almost got it, but keep getting this error.
"INPUT FILE NAME NON EXISTANT -CHECK FILE NAME AND READ PERMISSIONS"
I checked permissions and made sure the Dirs are there
all test in the domaintenance script pass.

Thanks


- outleradam - 2011-04-11

mellowpellow Wrote:GregoryK/divingmule:

Yeah that sounds like exactly what I was seeing, everything was ending up in Showings as the mythicalLibrarian script couldn't fetch the series/episode information. As you said looks like something changed at the thetvdb.com.



A couple of caveats about my changes below:
  1. The line numbers will probably only be correct if you are using the same version as me - I'm using the latest version (r937)
  2. Make a backup if you are going to change your script
If you're not used to editing shell scripts wait until it's fixed properly by by outleradam.

To fix it I edited my /usr/local/bin/mythicalLibrarian script and changed:

line 849, from:
Code:
curl -s -m"$Timeout" "http://www.thetvdb.com/api/Updates.php?type=none">"$mythicalLibrarian/$NewShowName/current.time"
to
Code:
curl -s -L -m"$Timeout" "http://www.thetvdb.com/api/Updates.php?type=none">"$mythicalLibrarian/$NewShowName/current.time"

line 879, from:
Code:
curl -s -m"$Timeout" " http://www.thetvdb.com/api/Updates.php?type=all&time=$LastUpdated" >> "$mythicalLibrarian/$NewShowName/UpdatesList.txt"
to
Code:
curl -s -L -m"$Timeout" " http://www.thetvdb.com/api/Updates.php?type=all&time=$LastUpdated" >> "$mythicalLibrarian/$NewShowName/UpdatesList.txt"

line 903, from:
Code:
curl -s -m"$Timeout" "http://www.thetvdb.com/api/$APIkey/series/$SeriesID/all/$Language.xml"| grep -vE "(</id>|</Combined_episodenumber>|</Combined_season>|</DVD_chapter>|</DVD_discid>|</DVD_episodenumber>|</DVD_season>|</Director>|</EpImgFlag>|</GuestStars>|</IMDB_ID>|</Language>|</Overview>|</ProductionCode>|</RatingCount>|</filename>|</seasonid>|</Writer>|</Rating>|</lastupdated>|</seriesid>|</absolute_number>)">"$mythicalLibrarian/$NewShowName/$NewShowName.xmlTest" && echo "$CurrentTime" > "$mythicalLibrarian/$NewShowName/lastupdated.time"
to
Code:
curl -s -L -m"$Timeout" "http://www.thetvdb.com/api/$APIkey/series/$SeriesID/all/$Language.xml"| grep -vE "(</id>|</Combined_episodenumber>|</Combined_season>|</DVD_chapter>|</DVD_discid>|</DVD_episodenumber>|</DVD_season>|</Director>|</EpImgFlag>|</GuestStars>|</IMDB_ID>|</Language>|</Overview>|</ProductionCode>|</RatingCount>|</filename>|</seasonid>|</Writer>|</Rating>|</lastupdated>|</seriesid>|</absolute_number>)">"$mythicalLibrarian/$NewShowName/$NewShowName.xmlTest" && echo "$CurrentTime" > "$mythicalLibrarian/$NewShowName/lastupdated.time"

line 1182, from:
Code:
curl -s -m"$Timeout" www.thetvdb.com/api/GetSeries.php?seriesname=$tvdbshowname>"$mythicalLibrarian/working.xml"
to
Code:
curl -s -L -m"$Timeout" www.thetvdb.com/api/GetSeries.php?seriesname=$tvdbshowname>"$mythicalLibrarian/working.xml"

Basically anywhere that curl is used to access www.thetvdb.com/api you need to add -L to the command line arguments.
Wow. holy cow... I'll make changes tonight when I get near a computer to get everything up and running and release a new stable. mellowpellow, send me your google developer address so I can add you as a conributor.

Something must have happened to my notifications on this thread.


- ctmjr - 2011-04-11

So maybe I should throw this machine out a window. I figured out what was wrong. I was using 3 recordings and if I would have read the error about AIRDATE, earlier I would have seen that the 3 files I was using. MyhticalLibrarian could not find a good air date (either to new or not there?). Finally, I tried "The Mentalist" "Red Herring" and it worked.


- outleradam - 2011-04-12

Problems should be solved in the SVN

Everyone will need to update.

SVN R938 fixed the links
R938 to stable.


- GregoryK - 2011-04-12

Adam:

Just confirming that r938 fixed the issues for me. Thanks for the fix.

/Greg


- outleradam - 2011-05-01

Any problems?


- outleradam - 2011-05-16

This is a smooooooth saling record. I'm glad there's no complaints.