2014-06-07, 20:12
Hope I'm posting this in the correct forum area; if not, advanced apologies.
Understanding that ideally, XBMC enthusiasts will want to allow the scrapers to handle the artist/album metadata, some purists may prefer a more controlled approach.
In my case, I use TagScanner 5.1.x to manage the tags in my audio files and I'm quite happy with the results I get from it. That said, I started exploring the XBMC .NFO files this past week and got to wondering if I could generate an export template using TagScanner ... results posted below.
I figured I'd share the templates here in case other TagScanner enthusiasts would like to output metadata from audio files in an .NFO-ready format. Simply copy/paste the contents in the code block below to notepad and save the files in the TagScanner script directory ... I called mine nfo - album.tse and nfo - artist.tse.
REF URL: http://forum.xbmc.org/showthread.php?tid=164592
Cheers,
nfo - album.tse
nfo - album soundtrack or compilation.tse
nfo - artist.tse
Understanding that ideally, XBMC enthusiasts will want to allow the scrapers to handle the artist/album metadata, some purists may prefer a more controlled approach.
In my case, I use TagScanner 5.1.x to manage the tags in my audio files and I'm quite happy with the results I get from it. That said, I started exploring the XBMC .NFO files this past week and got to wondering if I could generate an export template using TagScanner ... results posted below.
I figured I'd share the templates here in case other TagScanner enthusiasts would like to output metadata from audio files in an .NFO-ready format. Simply copy/paste the contents in the code block below to notepad and save the files in the TagScanner script directory ... I called mine nfo - album.tse and nfo - artist.tse.
REF URL: http://forum.xbmc.org/showthread.php?tid=164592
Cheers,
nfo - album.tse
Code:
# Tagscanner export script
$file_name %filepath%album.nfo
$file_notes nfo - create album.nfo for files on SMB share (XML UTF-8)
$file_encoding utf-8
$file_writebom 0
$file_ishtml 1
$document_open
$select %album%,0
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<album>
<title>%album%</title>
<artist>%artist%</artist>
<genre>%genre%</genre>
<style></style>
<mood></mood>
<theme></theme>
<musicBrainzAlbumID></musicBrainzAlbumID>
<compilation>false</compilation>
<review>%comment%</review>
<type></type>
<releasedate></releasedate>
<label>%publisher%</label>
<type></type>
<thumb>smb:%filepath%folder.jpg</thumb>
<path>smb:%filepath%</path>
<rating>1</rating>
<year>%year%</year>
<albumArtistCredits>
<artist>%artist%</artist>
<musicBrainzArtistID></musicBrainzArtistID>
<joinphrase></joinphrase>
<featuring>%artist%</featuring>
</albumArtistCredits>
$select %track%,0
<track>
<musicBrainzTrackID></musicBrainzTrackID>
<title>%title%</title>
<position>%track%</position>
<duration>%_length%</duration>
</track>
$endselect
</album>
$endselect
$document_close
nfo - album soundtrack or compilation.tse
Code:
# Tagscanner export script
$file_name %filepath%album.nfo
$file_notes nfo - create album.nfo for files on SMB share (XML UTF-8)
$file_encoding utf-8
$file_writebom 0
$file_ishtml 1
$document_open
$select %album%,0
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<album>
<title>%album%</title>
<artist>%albumartist%</artist>
<genre>%genre%</genre>
<style></style>
<mood></mood>
<theme></theme>
<musicBrainzAlbumID></musicBrainzAlbumID>
<compilation>true</compilation>
<review>%comment%</review>
<type></type>
<releasedate></releasedate>
<label>%publisher%</label>
<type></type>
<thumb>smb:%filepath%folder.jpg</thumb>
<path>smb:%filepath%</path>
<rating>1</rating>
<year>%year%</year>
<albumArtistCredits>
<artist>%albumartist%</artist>
<musicBrainzArtistID></musicBrainzArtistID>
<joinphrase></joinphrase>
<featuring>%albumartist%</featuring>
</albumArtistCredits>
$select %track%,0
<track>
<musicBrainzTrackID></musicBrainzTrackID>
<title>%title%</title>
<position>%track%</position>
<duration>%_length%</duration>
</track>
$endselect
</album>
$endselect
$document_close
nfo - artist.tse
Code:
# Tagscanner export script
$file_name %workpath%artist.nfo
$file_notes nfo - create artist.nfo for files on SMB share (XML UTF-8)
$file_encoding utf-8
$file_writebom 0
$file_ishtml 1
$document_open
$select %artist%,0
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<artist>
<name>%artist%</name>
<musicBrainzArtistID></musicBrainzArtistID>
<genre>%genre%</genre>
<style></style>
<mood></mood>
<theme></theme>
<yearsactive></yearsactive>
<instruments></instruments>
<born></born>
<formed></formed>
<biography></biography>
<died></died>
<disbanded></disbanded>
<thumb>smb:%workpath%folder.jpg</thumb>
<path>smb:%workpath%</path>
<fanart>
<thumb></thumb>
</fanart>
$select %year%-%album%,0
<album>
<title>%album%</title>
<year>%year%</year>
</album>
$endselect
</artist>
$endselect
$document_close