I've decided to take the plunge and try to learn some C# so that I can help write some plugins and maybe even one day help with MediaPortal core. In my first attempt at writing a plugin, I thought I'd start with something that would be useful to me, an XMMImporter plugin that does everything I need.
GOAL:
Recreate most (if not all) of the functionality of the XMM Database Importer plugin that exists for Meedio (http://www.meedio.com/forum/about17774.html&highlight=xmm).
FEATURES:
Short Term:
1) Baseline target is to import necessary information from XMM into the Video library of MP for general purpose movie viewing.
Longer Term
2) Import all information into a general purpose database. Ability to import multiple files into different databases so that multiple general purpose databases can exist. I have this functionality in Meedio currently. I have a movie database and a homemovie database, each with their own views, etc. I'm missing this currently in MP, but hopefully I can address that with my plugin.
3) Ability to create standard views of data based on any of the information in the generic database. This would be very powerful if I could do that. Ability for different sorting methods and display methods (such as sorting all items by index for quick viewing alphabetically)
3) General purpose MediaModule which can access the databases and display the data based on the views setup.
4) Write back information into the XMM database (watchedstatus, personalrating, etc).
MOTIVATION
I am aware of the MyDVDs plugin that attempts to import data from XMM, but I didn't have much luck with it (crashes, not flexible, etc). It requires you to export to a CSV to import. I'd rather just have an option which can directly read/write to the XMM database. Also, I have a collection of homemovies that do not fit the generic movie mold and having custom views is important for that. Maybe some of this is planned for the MP core, but I didn't see a whole lot except for one thread about databases.
So, I don't know C# or any other programming language for that matter except for MATLAB
. So it is going to be a learning curve for sure. I've got the plugin skeleton running and compiling so that it displays in the MP plugin list (but as a process plugin for some reason). I can also access the XMM MS Access database and retrieve all of the information into class array.
I thought that would be the hard part, but I'm actually stuck right now on accessing the SQLlite MP databases. I'm getting some errors that I will put in the next post so that I can keep this post for future updates.
The bottom line is I'm probably over my head right now and I'll definately need some help when it comes time to creating the XML screen/template files, etc. So I'll be asking for help. I'd appreciate it if some of you gurus would stop by this thread every once in a while in case I run into some issues.
GOAL:
Recreate most (if not all) of the functionality of the XMM Database Importer plugin that exists for Meedio (http://www.meedio.com/forum/about17774.html&highlight=xmm).
FEATURES:
Short Term:
1) Baseline target is to import necessary information from XMM into the Video library of MP for general purpose movie viewing.
Longer Term
2) Import all information into a general purpose database. Ability to import multiple files into different databases so that multiple general purpose databases can exist. I have this functionality in Meedio currently. I have a movie database and a homemovie database, each with their own views, etc. I'm missing this currently in MP, but hopefully I can address that with my plugin.
3) Ability to create standard views of data based on any of the information in the generic database. This would be very powerful if I could do that. Ability for different sorting methods and display methods (such as sorting all items by index for quick viewing alphabetically)
3) General purpose MediaModule which can access the databases and display the data based on the views setup.
4) Write back information into the XMM database (watchedstatus, personalrating, etc).
MOTIVATION
I am aware of the MyDVDs plugin that attempts to import data from XMM, but I didn't have much luck with it (crashes, not flexible, etc). It requires you to export to a CSV to import. I'd rather just have an option which can directly read/write to the XMM database. Also, I have a collection of homemovies that do not fit the generic movie mold and having custom views is important for that. Maybe some of this is planned for the MP core, but I didn't see a whole lot except for one thread about databases.
So, I don't know C# or any other programming language for that matter except for MATLAB
I thought that would be the hard part, but I'm actually stuck right now on accessing the SQLlite MP databases. I'm getting some errors that I will put in the next post so that I can keep this post for future updates.
The bottom line is I'm probably over my head right now and I'll definately need some help when it comes time to creating the XML screen/template files, etc. So I'll be asking for help. I'd appreciate it if some of you gurus would stop by this thread every once in a while in case I run into some issues.