by Steegy » Sat Dec 15, 2012 10:39 am
You can add more fields (see leftmost column in
SongData fields) in the
Fields array.
But not all of them can be added though, only fields of type String, Long, Date, Boolean, ... (TEXT, REAL, INTEGER, BOOLEAN, DATE).
The database Value Type (TEXT, REAL, ...) can be seen in that table. If you click a field, a new page will open with more information about it, e.g. the field type (String, Long, ...) and possible values.
In the
EmptyValues array then you also have to specify the default value you want, like the existing entries in the script.
Field Album can not be used (value type ISDBAlbum). Use
AlbumName (value type String) instead.
Same for Artist. Instead of Artist use
ArtistName.
Field Songwriter does not exist. Instead, maybe you mean Author, Lyricist, MusicComposer, ...?
Code: Select all
Fields = Array("Author", "Band", "Conductor", "InvolvedPeople", "Grouping", "Bookmark", "Genre", "Comment", "Lyrics", "Rating", "RatingString", "Tempo", "Quality", "Occasion", "Mood", "Publisher", "ISRC", "Encoder", "Copyright", "Lyricist", "OriginalLyricist")
EmptyValues = Array("","","","","","0","","","","-1","","","","","","","","","","","")
You can add more fields (see leftmost column in [url=http://www.mediamonkey.com/wiki/index.php/SDBSongData]SongData fields[/url]) in the [u]Fields[/u] array.
[b]But not all of them can be added though, only fields of type String, Long, Date, Boolean, ... (TEXT, REAL, INTEGER, BOOLEAN, DATE).[/b]
The database Value Type (TEXT, REAL, ...) can be seen in that table. If you click a field, a new page will open with more information about it, e.g. the field type (String, Long, ...) and possible values.
In the [u]EmptyValues[/u] array then you also have to specify the default value you want, like the existing entries in the script.
Field Album can not be used (value type ISDBAlbum). Use [b]AlbumName[/b] (value type String) instead.
Same for Artist. Instead of Artist use [b]ArtistName[/b].
Field Songwriter does not exist. Instead, maybe you mean Author, Lyricist, MusicComposer, ...?
[code]Fields = Array("Author", "Band", "Conductor", "InvolvedPeople", "Grouping", "Bookmark", "Genre", "Comment", "Lyrics", "Rating", "RatingString", "Tempo", "Quality", "Occasion", "Mood", "Publisher", "ISRC", "Encoder", "Copyright", "Lyricist", "OriginalLyricist")
EmptyValues = Array("","","","","","0","","","","-1","","","","","","","","","","","")[/code]