2011-04-09, 20:13
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:
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:
to
line 879, from:
to
line 903, from:
to
line 1182, from:
to
Basically anywhere that curl is used to access http://www.thetvdb.com/api you need to add -L to the command line arguments.
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:
- The line numbers will probably only be correct if you are using the same version as me - I'm using the latest version (r937)
- 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"
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"
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"
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"
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.