Mod - Recent Movies and Recent Myth TV
#1
I've been using MediaStream for years, but have been super excited about Rapier since it came out.
The only thing I've been missing is some tighter integration with my MythTV backend (I know the Unified PVR project is working on it, and I am using the myth:// source).
Basically I wanted to see my most recently myth TV recordings right on the Home screen, and launch the Myth source directly from the TV Show category; so here is a Rapier mod to do just that.
I also added some functionality to show your recently added Movies from the Video Library under the Movies category.
You can visit my blog for more info on the mod itself, but here are some screenshots and a download.

(sorry for the chick shows in my screenshot, but my girlfriend also uses my Myth TV - I have no use for 'The Hills')

DOWNLOAD - This has been updated as of 10/1/2009 there were some problems with the animations

Image

Image
Reply
#2
The lastest movies and recording info is not showing for up me.

Image
Reply
#3
I get an error at startup

Erreur
Script failed! : recentadded.py


Yet the information is correct
Reply
#4
jdx66 Wrote:I get an error at startup

Erreur
Script failed! : recentadded.py


Yet the information is correct

Are you using the MythTV portion as well? If not the Movie section might be working, but the mythtv section failing. Could you post your XBMC log right after you get the failure message? I need to make the script a little more foolproof about what methods it is running.
Reply
#5
fo0d Wrote:The lastest movies and recording info is showing for up me.

Image

I've tested it on Windows and Xbox so far - what is your particular setup? Off the top of my head I would say make sure that recentlyadded.py and mysql.py are in your XBMC scripts directory (the root folder, no subfolder). It just looks like the script is not being run.
Please post your XBMC log and I'll take a look at it. I'm going to try a few things on my own system to see if I can duplicate that problem.
Reply
#6
robweber Wrote:Are you using the MythTV portion as well? If not the Movie section might be working, but the mythtv section failing. Could you post your XBMC log right after you get the failure message? I need to make the script a little more foolproof about what methods it is running.
I do not use mythtv
Here is the portion of the log with error :

11:35:08 T:1432 M:2763767808 NOTICE: -->Python Interpreter Initialized<--
11:35:09 T:2896 M:2762821632 NOTICE: My Videos: Scanning for video info using worker thread, operation took 00:02
11:35:10 T:1432 M:2762051584 NOTICE: Traceback (most recent call last):
11:35:10 T:1432 M:2762031104 NOTICE: File "C:\Program Files\XBMC\scripts\recentadded.py", line 202, in ?
11:35:10 T:1432 M:2761519104 NOTICE: Main()
11:35:10 T:1432 M:2761506816 NOTICE: File "C:\Program Files\XBMC\scripts\recentadded.py", line 34, in __init__
11:35:10 T:1432 M:2761506816 NOTICE: self._fetch_mythtv_info()
11:35:10 T:1432 M:2761494528 NOTICE: File "C:\Program Files\XBMC\scripts\recentadded.py", line 102, in _fetch_mythtv_info
11:35:10 T:1432 M:2761703424 NOTICE: conn = mysql.Connection(str(mythArray[1]),"mythconverg",dbArray[1][2:len(dbArray[1])],dbArray[2])
11:35:10 T:1432 M:2761703424 NOTICE: IndexError
11:35:10 T:1432 M:2761703424 NOTICE: :
11:35:10 T:1432 M:2761703424 NOTICE: list index out of range
11:35:10 T:1432 M:2761703424 ERROR: Scriptresult: Error
11:35:10 T:1692 M:2758434816 NOTICE: My Music: Scanning for music info using worker thread, operation took 00:03
11:35:26 T:3476 M:2762682368 NOTICE: -->Python Interpreter Initialized<--
11:35:26 T:3476 M:2761084928 NOTICE: Traceback (most recent call last):
11:35:26 T:3476 M:2761068544 NOTICE: File "C:\Program Files\XBMC\scripts\recentadded.py", line 202, in ?
11:35:26 T:3476 M:2761068544 NOTICE: Main()
11:35:26 T:3476 M:2761056256 NOTICE: File "C:\Program Files\XBMC\scripts\recentadded.py", line 34, in __init__
11:35:26 T:3476 M:2761056256 NOTICE: self._fetch_mythtv_info()
11:35:26 T:3476 M:2761043968 NOTICE: File "C:\Program Files\XBMC\scripts\recentadded.py", line 102, in _fetch_mythtv_info
11:35:26 T:3476 M:2761043968 NOTICE: conn = mysql.Connection(str(mythArray[1]),"mythconverg",dbArray[1][2:len(dbArray[1])],dbArray[2])
11:35:26 T:3476 M:2761043968 NOTICE: IndexError
11:35:26 T:3476 M:2761043968 NOTICE: :
11:35:26 T:3476 M:2761043968 NOTICE: list index out of range
11:35:26 T:3476 M:2761043968 ERROR: Scriptresult: Error
11:36:08 T:2208 M:2748342272 NOTICE: Storing total System Uptime
11:36:08 T:2208 M:2748338176 NOTICE: Saving settings
11:36:08 T:2208 M:2748223488 NOTICE: stop all

Thanks
Reply
#7
jdx66,

I took at look at your log, and as I assumed it was trying to run the myth update even though it shouldn't have. I tried to recreate this problem since it is supposed to check if you actually have myth enabled, but on both windows and xbox I couldn't get it to have that some error even after I cleared out all my guisettings.

What I DID do is add some more robust error handling so that even if it tries to run the myth function and has an error, you will not get the script error message - it will just end gracefully instead. This should clear up your problem, just download the zip file again and copy over the recentadded.py script.

Also, just as a question - would it be helpful to show your recent TV shows from the TV library since you don't have myth TV? I'm thinking an option in the settings where you can select a) tv library or b) myth tv (or maybe both, I haven't really thought this all the way through yet).
Reply
#8
robweber,

With the new version is ok, it works great.
Thanks
Reply
#9
I have the same problem of jdx66 - using SVN build: XBMC-Rev23120

and just downloaded this mod from todays date.

Would really like the recently added movies feature (and normal TV as well!)
Reply
#10
I have amended this script to remove all the mythtv stuff but show recently added for TV Shows aswell as Movies. If people want this I will upload. I have also removed the need for MySQL because this is only needed for the Myth TV part. I have also made it so the text and image slide out with the animation rather than disappearing first and upped the number of items to 5.
Reply
#11
qualar Wrote:I have amended this script to remove all the mythtv stuff but show recently added for TV Shows aswell as Movies. If people want this I will upload.
The only thing I cannot get working is the thumbnails for TV Shows.

Thanks qualar!

did you happen to just uncomment out the TV shows line in the python script to get that working? If so you might want to play the SQL a bit, that particular query was from the Dan's Hack mediastream mod and it really slows down the Xbox, I think it can be more efficient like the movies query and still get the job done.


I'm having a problem with the TV show thumbnails as well but I'm working on it. Hopefully by the end of the weekend I'll have both Myth and the Library as an option. I'm planning on using a grouplist control so you can switch back and forth between them while still only using one extra box on the screen.
Reply
#12
qualar Wrote:I have amended this script to remove all the mythtv stuff but show recently added for TV Shows aswell as Movies. If people want this I will upload. I have also removed the need for MySQL because this is only needed for the Myth TV part. I have also made it so the text and image slide out with the animation rather than disappearing first and upped the number of items to 5.

Sounds great! Nod
Reply
#13
Just working on adapting it for Rapier V2. I have everything working in 1.6 now.

When I said i removed mysql what i meant was that i removed the dependancy on the additional mysql.py. There are still sql commands in there but they don't need the script.
Reply
#14
Just uploaded a grab to youtube

It is very dark so you cannot see the transparent box around the slide out menu. But it should give you all an idea.

If anyone wants this could someone advice where I can upload the files.
Reply
#15
really interested in this since I feel this is another nice to have feature for my XBMC enjoyment.

In regards to upload I could host it for ya just no upload solution as of yet which makes it kinda stick for you to maintain sorry.

There's tons of free file hosts out there which you could use I guess
Reply

Logout Mark Read Team Forum Stats Members Help
Mod - Recent Movies and Recent Myth TV0