Posts: 6
Joined: Jan 2014
Reputation:
1
2014-01-19, 02:30
(This post was last modified: 2014-01-19, 03:19 by Northern54.)
I saw the same thing with SVN 950, so I rolled my own patch for my ubuntu system
1) copy below to /tmp/mythicalLibrarian.patch
2) cd /usr/local/bin
3) sudo patch < /tmp/mythicalLibrarian.patch
4) output should be patching file mythicalLibrarian
diff -Naur orig/mythicalLibrarian fix/mythicalLibrarian
--- orig/mythicalLibrarian 2014-01-18 18:13:43.000000000 -0500
+++ fix/mythicalLibrarian 2014-01-18 19:10:38.000000000 -0500
@@ -401,9 +401,10 @@
for XBMCIP in ${XBMCIPs[@]}
do
echo "SENDING REQUESTED COMMANDS TO:$XBMCIP"
- test "$XBMCNotify" = "Enabled" && curl -L -s -m3 --connect-timeout 5 "http://"$XBMCIP"/xbmcCmds/xbmcHttp?command=ExecBuiltIn(Notification(mythical%20Librarian%2Cadding%20show%20$tvdbshowname%20to%20library))" > /dev/null 2>&1
- test "$XBMCUpdate" = "Enabled" && curl -L -s -m3 --connect-timeout 5 "http://"$XBMCIP"/xbmcCmds/xbmcHttp?command=ExecBuiltIn(UpdateLibrary(video))" > /dev/null 2>&1
- test "$XBMCClean" = "Enabled" && curl -L -s -m3 --connect-timeout 5 "http://"$XBMCIP"/xbmcCmds/xbmcHttp?command=ExecBuiltIn(CleanLibrary(video))" > /dev/null 2>&1
+ test "$XBMCNotify" = "Enabled" && curl -L -s -m3 --connect-timeout 5 -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"GUI.ShowNotification","params":{"title":"mythical Librarian adding","message":"'$tvdbshowname'"},"id":1}' http://$XBMCIP/jsonrpc > /dev/null 2>&1
+ test "$XBMCNotify" = "Enabled" && curl -L -s -m3 --connect-timeout 5 -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"VideoLibrary.Scan","id":1}' http://$XBMCIP/jsonrpc > /dev/null 2>&1
+ test "$XBMCNotify" = "Enabled" && curl -L -s -m3 --connect-timeout 5 -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"VideoLibrary.Clean","id":1}' http://$XBMCIP/jsonrpc > /dev/null 2>&1
+
done
fi
return 0
@@ -1805,10 +1806,10 @@
for XBMCIP in ${XBMCIPs[@]}
do
echo "SENDING REQUESTED COMMANDS TO:$XBMCIP"
- XBMCcomm=`curl -L -s --connect-timeout 3 "http://"$XBMCIP"/xbmcCmds/xbmcHttp?command=ExecBuiltIn(Notification(mythical%20Librarian%20Test%2CTesting%20Communication%20with%20mythicallibrarian))"|tr -d "</html>i^" `
+ XBMCcomm=`curl -L -s -m3 --connect-timeout 5 -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"GUI.ShowNotification","params":{"title":"mythical Librarian Test","message":"'$PythonBindingsCheck'"},"id":1}' http://$XBMCIP/jsonrpc|tr -d "\"</html>i^" `
test "$XBMCcomm" != "" && echo "TESTING:$XBMCcomm" || echo "COMMUNICATIONS NOT ESTABLISHED: $XBMCIP"
done
- test "`echo $XBMCcomm`" = "OK" && XBMCcomm="***PASSED***" || XBMCcomm="***FAILED***"
+ test "`echo $XBMCcomm`" = "{d:1,jsonrpc:2.0,resu:OK}" && XBMCcomm="***PASSED***" || XBMCcomm="***FAILED***"
echo "XBMC Communications $XBMCcomm"
read -n1 -p "Press any key to test file system permissions..."
echo ""
Posts: 6
Joined: Jan 2014
Reputation:
1
Tks for the feedback, I just tried it myself by copying the code down from the site, and trying the patch and had the same issue. I took a deeper look and found a couple of issues with doing copy and paste, it had changed all the tabs to spaces and added an extra special character on 2 lines. So I created a new patch that changed the tabs to spaces, and updated the patch command to include -l ignore whitespace. For the extra special characters, I had to edit the patch before applying and remove an extraneous <200b> on lines 8 and 40. Line 8, should have only 1 <200b> and line 40 none.
Give it a try again.
patch -l --verbose --dry-run < /tmp/mythicalLibrarian.patch
The dry run option won't change anything
Posts: 95
Joined: Mar 2010
Reputation:
0
Third time's a charm, that worked for me. I'll test it tonight but don't expect problems.
Adam (author & maintainer) shows as not having been on the site for almost a year, so I am not optimistic for a new release. I suppose I could try sending an email from his account page.
/GregoryK
Posts: 6
Joined: Jan 2014
Reputation:
1
Ooops. I fixed the issue and updated the patch. Needs to be applied against the original version
Posts: 8
Joined: Feb 2014
Reputation:
0
Hi all
Firstly, thanks for a great add on that helps integrate Mythtv and XBMC.
Have you thought about adding support for notifying Sickbeard about new recordings?
As I've got sickbeard setup to download TV progs, but I've also got mythtv recording stuff. It would be great if could avoid the overlap of recording and downloading the same progs.
Cheers
Gav
Posts: 1,722
Joined: Sep 2009
Reputation:
20
Hey guys, If anyone would like to be added to the SVN to make changes, just let me know. I'm very active on Google+ and you can email me as well. (adam outler at gmail dot com)
I've switched to ChromeCast and ditched my cable television provider. If there are patches required, let me know, I will add you to the SVN so you can apply them.
Posts: 19
Joined: Mar 2015
Reputation:
1
Hi guys, so just bought a Raspberry Pi and started playing around with OpenElec/Kodi as a frontend, I'm also using Mythtv as a backend to record everything.
I didn't like the way recordings were appearing on Kodi so thought I'd give mythicalLibrarian a try, I've managed to install without any issues, and I've configured the script and made the neccessary changes so any future recordings will automatically be covered by mythicalLibrarian. But I've hit upon a snag, not sure if its something that I'm doing wrong or if its setup incorrectly.
I've run a scan across a number of recordings, these recordings are then moved to 3 separate folder (Episodes/Movies/Showings)
The Episodes folder looks good, only tv shows appear here and they all appear in Kodi.
The movies folder is empty, there were a few movies in the scan but they didn't appear in this folder, how does the script determine if a recording is a movie?
The Showings folder contains movies and tv shows, it looks like tv shows without an episode number or season are appearing here.
If the Showings folder only contained tv shows I could just use the nfo file, but as this contains movies as well the movies aren't appearing in "Movies" section of Kodi.
I guess ultimately I'm trying to get tv shows in the "Tv Shows" section and movies in the "Movies" section.