PDA

View Full Version : XBMC Library and Third party tools access


m69bv3
2008-12-21, 21:36
Hi everybody!

I plan to make a php front end for the library, in order to check the movie/tvshow I've seen in other way than XBMC.

This front end should acess to the XBMC library read and write, is it a problem to write in the library when XBMC is running? Should the modification taken by XBMC on the fly or after restart?

Thank's for your answers!

azido
2008-12-21, 21:50
Hi everybody!

I plan to make a php front end for the library, in order to check the movie/tvshow I've seen in other way than XBMC.

This front end should acess to the XBMC library read and write, is it a problem to write in the library when XBMC is running? Should the modification taken by XBMC on the fly or after restart?

Thank's for your answers!

you can access i.e. the movie database even when xbmc is running. i've checked this right now using sqlitespy changing a genre entry for a movie. the change got displayed the next time i've triggered movie information without the need of a xbmc reboot.

please keep me updated on your forthcoming, since i would really like to get such a frontend that might be a bit more comfortable than sqlitespy :)

m69bv3
2008-12-21, 21:58
Thanks for your quick answer!

I will keep you updated!

azido
2008-12-21, 23:50
Thanks for your quick answer!

I will keep you updated!

that would be nice & you're welcome..

Rand Al Thor
2008-12-22, 00:41
This sounds interesting. Can you share some of what you have planned for this frontend?

m69bv3
2008-12-22, 00:48
This sounds interesting. Can you share some of what you have planned for this frontend?

For movies & TvShow:

List
Search
Description (Picture, plot, etc)
Mark as seen/unseen
Export the list for friends


the aim is to use with a PC web browser or my PCH (http://www.popcornhour.com/onlinestore/)

Any others ideas are welcome!

Rand Al Thor
2008-12-22, 01:05
Will it also be a web remote? That could be pretty cool. You would have full control over the library with access to all the movie details. This would be great to have running on a web pad or small screen. You could do all of your browsing/searching until you find what you want then play it on the "big screen." This would be a nice setup in conjunction with my nokia770 and hd projector. Cheers.

m69bv3
2008-12-22, 01:11
Will it also be a web remote? That could be pretty cool. You would have full control over the library with access to all the movie details. This would be great to have running on a web pad or small screen. You could do all of your browsing/searching until you find what you want then play it on the "big screen." This would be a nice setup in conjunction with my nokia770 and hd projector. Cheers.

Yep it should be possible using XBMC http API!

azido
2008-12-22, 02:37
For movies & TvShow:

List
Search
Description (Picture, plot, etc)
Mark as seen/unseen
Export the list for friends


the aim is to use with a PC web browser or my PCH (http://www.popcornhour.com/onlinestore/)

Any others ideas are welcome!

are you willing to edit content within the frontend, or do you simply want to do sql calls and get a proper output?

m69bv3
2008-12-22, 10:45
are you willing to edit content within the frontend, or do you simply want to do sql calls and get a proper output?

I do not plan editing further than mark seen/unseen. But I can plan to edit information such as description or any other stuff.
Editing plot, duration, year, etc.. should be easy but adding actors or any multi-related information should be more difficult without reversing the Database Schema.

Rand Al Thor
2008-12-22, 19:32
billyad has a pretty cool feature in his Media Companion program. It spits out an alphabetical list of of all your movies in html. When open in a browser each movie is also a link to it's page on IMDB. Pretty basic, but cool nonetheless. You should check it out if you haven't already.

m69bv3
2008-12-22, 19:58
billyad has a pretty cool feature in his Media Companion program. It spits out an alphabetical list of of all your movies in html. When open in a browser each movie is also a link to it's page on IMDB. Pretty basic, but cool nonetheless. You should check it out if you haven't already.

Thank's for the tip, but I'm french I use another website than IMDB and I want a web based tool.

Rand Al Thor
2008-12-22, 21:53
Ahh, yeah I wasn't suggesting that this could replace or be substituted for what you were working on. I thought perhaps you could use to see how billyad did that and modify it to auto-populate the information you will be using in your web app. I am assuming he has a script of somesort that scrapes all the names and urls from the .nfo's that are then output to html. You could use a similar script that runs either on a timer or at the user request that grabs both names and links (to Imdb or what ever scraper you use in your country, just whatever is in the database), plus it could grab posters, plot synopsis, release date etc etc and populates a "web library". Having the information generated like this might be faster on the ui side than querying the database on the fly. Just a thought.

azido
2008-12-22, 23:00
I do not plan editing further than mark seen/unseen. But I can plan to edit information such as description or any other stuff.
Editing plot, duration, year, etc.. should be easy but adding actors or any multi-related information should be more difficult without reversing the Database Schema.

editing any field in this db shouldn't be difficult. the harder part is to "rebuild" dependencies like i.e. you edit a genre for a specific movie which has to be relinked against the genre list afterwards. that's why i asked :)

m69bv3
2008-12-22, 23:44
Ahh, yeah I wasn't suggesting that this could replace or be substituted for what you were working on. I thought perhaps you could use to see how billyad did that and modify it to auto-populate the information you will be using in your web app. I am assuming he has a script of somesort that scrapes all the names and urls from the .nfo's that are then output to html. You could use a similar script that runs either on a timer or at the user request that grabs both names and links (to Imdb or what ever scraper you use in your country, just whatever is in the database), plus it could grab posters, plot synopsis, release date etc etc and populates a "web library". Having the information generated like this might be faster on the ui side than querying the database on the fly. Just a thought.

You're right, I've ever built my own php "scraper" for movie and tvshows, but XBMC scrapers system is really effective, I'm not sure there is a more convenient way to do the stuff. The work is more on scrapers themselves (more input format, real nice search & match algorithm). For the second point, the database is really speed when queering even with more than 500 movie and 2000 Tvshows Episodes, make a parallel database is useless from my point of view. Maybe XBMC should use a real DBMS rather than SQL Lite.


editing any field in this db shouldn't be difficult. the harder part is to "rebuild" dependencies like i.e. you edit a genre for a specific movie which has to be relinked against the genre list afterwards. that's why i asked :)

I agree, take care about dependencies is the hard part of the work, maybe if one day the database schema is published it should be easier than just reverse engineering the actual database.


From my point of view It could be nice to cut out Database, Scrappers, UI in XBMC, just tough at XBMC like an UI with a shared database.

azido
2008-12-25, 11:24
From my point of view It could be nice to cut out Database, Scrappers, UI in XBMC, just tough at XBMC like an UI with a shared database.

i'd say the perfect solution would be to be able to edit entries inside xbmc without the need of an external program at all. this way the "update database" button would become more powerful ;)

frotsen
2008-12-25, 13:20
I dont know if you can use this, but i started on a web view of xbmc libary. You can see the result here

http://rodhette.org/vdb/

This is just plain flex / php and it can easely be updated with more fancy options. Right click to see the source


Frotsen

Rand Al Thor
2008-12-25, 20:08
Wow! That is pretty awesome! Have you thought of adding some controls to it so it could also work as a remote? All this needs is a few controls and a search feature and I think you have it nailed ;)