User Tools

Site Tools


reference:mairlistdb_library_csv_import_export

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
reference:mairlistdb_library_csv_import_export [2016/01/17 10:59] – [Exporting Items] twreference:mairlistdb_library_csv_import_export [2020/02/13 16:43] (current) – [Columns] Amplification/Levels tw
Line 7: Line 7:
 ==== File Format ==== ==== File Format ====
  
-  * Plain text format, comma-separated values (CSV) +  * Plain text format, comma-separated values (CSV). 
-  * Separator is comma, strings can be quoted with double-quotes+  * Separator is comma or tab (ASCII 9). 
 +  * Strings can be quoted with double-quotes.
   * Text encoding can be ANSI or UTF-8; for UTF-8, the file must have a valid BOM.   * Text encoding can be ANSI or UTF-8; for UTF-8, the file must have a valid BOM.
  
Line 28: Line 29:
 | EndType | | | EndType | |
 | Duration | seconds.milliseconds | | Duration | seconds.milliseconds |
 +| EffectiveDuration | seconds.milliseconds (export only) |
 | CueIn | seconds.milliseconds | | CueIn | seconds.milliseconds |
 | FadeIn | seconds.milliseconds | | FadeIn | seconds.milliseconds |
Line 44: Line 46:
 | CueOut | seconds.milliseconds | | CueOut | seconds.milliseconds |
 | Anchor | seconds.milliseconds | | Anchor | seconds.milliseconds |
 +| Amplification | dB (from v6.3) |
 +| LevelPeak | dBFS (from v6.3) |
 +| LevelTruePeak | dBTP (from v6.3) |
 +| LevelLoudness | LUFS (from v6.3) |
  
 === Attribute columns === === Attribute columns ===
Line 65: Line 71:
 The latter can be used to import the items into another mAirListDB, where the items have a different ID. The latter can be used to import the items into another mAirListDB, where the items have a different ID.
 ===== Importing Items ===== ===== Importing Items =====
 +
 +CSV files can be used to update existing items in the Library, as well as adding new items.
 +
 +In either case, you can have as many or few columns in the CSV file as you like. Columns not found in the file will be ignored. For example, you can use a CSV file with only the //ID// and //Comment// columns to update only the comment of a particular set of items (identified by their ID), and leave all other fields untouched.
  
 ==== Updating Existing Items ==== ==== Updating Existing Items ====
  
 +To update existing items in the Library, mAirListDB will try to identify the item by one of the following columns:
 +
 +  - ID
 +  - ExternalID
 +  - Filename
 +
 +So if the ''ID'' column is present and contains a value, the ID will be used to identify the item; otherwise, if the ''ExternalID'' is present and contains a value, mAirList will try to identify the item by its External ID; otherwise the filename will be used. If that fails as well, it will look for an item that matches both artist and title.
 +
 +If mAirListDB is unable to identify the item in any of these ways, the item will be treated as new (see below).
 +
 +The item will be updated using the data found in the remaining columns of the file. All other fields will remain untouched. If a column contains the special value ''-'', the field will remain untouched as well.
 ==== Adding New Items ==== ==== Adding New Items ====
 +
 +CSV files can also be used to add new items to the Library. In this case, **the ''ID'' column must be empty**, and in case a value for ''ExternalID'' or ''Filename'' is given, there must be no other item in the Library with that External ID or filename already (otherwise mAirListDB would treat that line as an item update, not new item).
 +
 +When adding new **files**, the filename must be located inside any of the registered Storages.
 +
 +When no filename is given, or the ''Filename'' column is not present at all, the items will be treated as //Dummy// items.
 +===== TL;DR - An Example =====
 +
  
 <code> <code>
reference/mairlistdb_library_csv_import_export.1453028392.txt.gz · Last modified: 2019/07/09 16:19 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki