2009-04-12, 20:19
Hi,
i've being spending some time in the last few days writing xbmc script for configuring the media flags that aeon and alike can present, my main purpose here is to be able doing it all from within xbmc using the remote so was trying to utilising xbmc as much as i can.
the script will depend on the nfo's that xbmc produce during the "export to library" function, those are the nfo's that the media tags are going to be written to.
it will first look for the movies paths and names in the database video34db, for tags discovery the script is using MediaInfo metadata extractor as well as scanning for possible tags in the filename, after doing so it will output the extra data to the appropriate nfo file.
in order to to be able to see all those extra tags in aeon here is what u should do:
A - if u don't already have nfo's based library, first u need to export all the nfo's and pix files that xbmc configured during the content scan or while updating the library, u do that by using xbmc's function "export to library" then choose to export all tbn and alike as well as nfo to separate files.
B - run the script,it will scan the DB for the right nfo paths and will output all the extra info to the <studio> tag.
C - browse to your movie library, delete everything in there by setting the content to none.
D - now reload the library again by setting the content as it was prior to the library deletion and rescan it, this time xbmc will use the exported nfo and pix files so it will take place immediately
if it all went well u should see the extra tags with aeon
the script was tested only on linux and would not run under windows.
if u encounter any problems please use the debug log.
hope u'll make any use of it.
changelog:
- after some time playing with it, it turns out that Mediainfo would be way better for tags discovery, so hachoir was replaced by MediaInfo, it took a while to port it to xbmc's python 2.4 but all seems fine now.
- the writing procedure to the xml files was replaced as well, StringIO will be used instead of elementTree, there are way to many xml files which reports utf-8 but actually not so and therefore making elementTree to failed writing to those files.
a word for win users:
the script would not run on win box'es, there few binaries that needs to be hunt down and i don't really have any win machine to test it on, so i've figured that i would leave it as a linux script(there are few other win apps that can accomplished the task any way).
if there is some win python coder who willing to port it over, i'll be glad to help.
download 0.2.1: http://dl.getdropbox.com/u/283941/Media%...-0.2.1.rar
i've being spending some time in the last few days writing xbmc script for configuring the media flags that aeon and alike can present, my main purpose here is to be able doing it all from within xbmc using the remote so was trying to utilising xbmc as much as i can.
the script will depend on the nfo's that xbmc produce during the "export to library" function, those are the nfo's that the media tags are going to be written to.
it will first look for the movies paths and names in the database video34db, for tags discovery the script is using MediaInfo metadata extractor as well as scanning for possible tags in the filename, after doing so it will output the extra data to the appropriate nfo file.
in order to to be able to see all those extra tags in aeon here is what u should do:
A - if u don't already have nfo's based library, first u need to export all the nfo's and pix files that xbmc configured during the content scan or while updating the library, u do that by using xbmc's function "export to library" then choose to export all tbn and alike as well as nfo to separate files.
B - run the script,it will scan the DB for the right nfo paths and will output all the extra info to the <studio> tag.
C - browse to your movie library, delete everything in there by setting the content to none.
D - now reload the library again by setting the content as it was prior to the library deletion and rescan it, this time xbmc will use the exported nfo and pix files so it will take place immediately
if it all went well u should see the extra tags with aeon
the script was tested only on linux and would not run under windows.
if u encounter any problems please use the debug log.
hope u'll make any use of it.
changelog:
- after some time playing with it, it turns out that Mediainfo would be way better for tags discovery, so hachoir was replaced by MediaInfo, it took a while to port it to xbmc's python 2.4 but all seems fine now.
- the writing procedure to the xml files was replaced as well, StringIO will be used instead of elementTree, there are way to many xml files which reports utf-8 but actually not so and therefore making elementTree to failed writing to those files.
a word for win users:
the script would not run on win box'es, there few binaries that needs to be hunt down and i don't really have any win machine to test it on, so i've figured that i would leave it as a linux script(there are few other win apps that can accomplished the task any way).
if there is some win python coder who willing to port it over, i'll be glad to help.
download 0.2.1: http://dl.getdropbox.com/u/283941/Media%...-0.2.1.rar