2013-02-15, 19:59
I have made my own script that does the following:
1. Opens a share on a remote server
2. Lists all folder within the share and checks if any folder has a "desktop.ini" file inside if so it sets the foldername color red
3. Makes any folder which has a movie inside to display a few extra options "mark, unmark, watched, archive" -> essentialy calls an ASP-script that adds foldername to an SQL-DB and makes a foldericon visible in explorer.exe using desktop.ini files
My Question is if there is any simple way to import/get movieinformation from XBMC, scraper, db or somewhere else?
I got a few ideas, but will any of them work?
1. Use JSON-RPC and ask XBMC for the information using Foldername as parameter (seems to only accept ID?´and I do not have that?)
2. Use XBMC to scrape all folders using plugin://myplugin.video.addon as source?
3. Add the same SMB-path used in the script to XBMC sources and scrape that. Maybe use the information that way? For instanse set script to traverse smb://mediaserver/movies/ and add the same as source in XBMC?
4. Any other ideas how I can easily make this script show information for movies?
Script is here:
http://pastebin.com/jGCpziSA
1. Opens a share on a remote server
2. Lists all folder within the share and checks if any folder has a "desktop.ini" file inside if so it sets the foldername color red
3. Makes any folder which has a movie inside to display a few extra options "mark, unmark, watched, archive" -> essentialy calls an ASP-script that adds foldername to an SQL-DB and makes a foldericon visible in explorer.exe using desktop.ini files
My Question is if there is any simple way to import/get movieinformation from XBMC, scraper, db or somewhere else?
I got a few ideas, but will any of them work?
1. Use JSON-RPC and ask XBMC for the information using Foldername as parameter (seems to only accept ID?´and I do not have that?)
2. Use XBMC to scrape all folders using plugin://myplugin.video.addon as source?
3. Add the same SMB-path used in the script to XBMC sources and scrape that. Maybe use the information that way? For instanse set script to traverse smb://mediaserver/movies/ and add the same as source in XBMC?
4. Any other ideas how I can easily make this script show information for movies?
Script is here:
http://pastebin.com/jGCpziSA