XBMC Library and Third party tools access
#1
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!
Reply
#2
m69bv3 Wrote: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 Smile
cheers,azido :;):
Reply
#3
Thanks for your quick answer!

I will keep you updated!
Reply
#4
m69bv3 Wrote:Thanks for your quick answer!

I will keep you updated!

that would be nice & you're welcome..
cheers,azido :;):
Reply
#5
This sounds interesting. Can you share some of what you have planned for this frontend?
Reply
#6
Rand Al Thor Wrote: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

Any others ideas are welcome!
Reply
#7
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.
Reply
#8
Rand Al Thor Wrote: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!
Reply
#9
m69bv3 Wrote: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

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?
cheers,azido :;):
Reply
#10
azido Wrote: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.
Reply
#11
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.
Reply
#12
Rand Al Thor Wrote: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.
Reply
#13
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.
Reply
#14
m69bv3 Wrote: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 Smile
cheers,azido :;):
Reply
#15
Rand Al Thor Wrote: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.


azido Wrote: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 Smile

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.
Reply

Logout Mark Read Team Forum Stats Members Help
XBMC Library and Third party tools access0