Class: ApeFileSettings
November 25, 2024 · View on GitHub
node-taglib-sharp / Exports / ApeFileSettings
Class: ApeFileSettings
This class contains settings related to APE file operations. Open files will need to be re-read in order for changes to take effect.
Table of contents
Constructors
Properties
Accessors
Constructors
constructor
• new ApeFileSettings()
Properties
SUPPORTED_TAG_TYPES
▪ Static Readonly SUPPORTED_TAG_TYPES: TagTypes
List of tag types that are supported by the APE file.
Accessors
defaultTagTypes
• Static get defaultTagTypes(): TagTypes
Gets the default types of tags for an APE file. When opening a file, if these tag types do not exist on the file, they will be created.
Returns
• Static set defaultTagTypes(value): void
Sets the default types of tags for an APE file. When opening a file, if these tag types do not exist on the file, they will be created. See SUPPORTED_TAG_TYPES for a list of tag types that are supported by node-taglib-sharp for APE files.
Parameters
| Name | Type |
|---|---|
value | TagTypes |
Returns
void
preferApeTagAtFileEnd
• Static get preferApeTagAtFileEnd(): boolean
Gets whether new APE tags should be stored at the end of the file. If true new
APE tags will be stored at the end of the file. If false new APE tags will be stored at
the beginning of the file (not recommended). Note, this only affects new APE tags.
Existing APE tags will not be moved unless removed and re-added.
Default
true
Returns
boolean
• Static set preferApeTagAtFileEnd(value): void
Gets whether new APE tags should be stored at the end of the file. If true new
APE tags will be stored at the end of the file. If false new APE tags will be stored at
the beginning of the file (not recommended). Note, this only affects new APE tags.
Existing APE tags will not be moved unless removed and re-added.
Default
true
Parameters
| Name | Type |
|---|---|
value | boolean |
Returns
void
preferId3v2TagAtFileEnd
• Static get preferId3v2TagAtFileEnd(): boolean
Gets whether new ID3v2 tags should be stored at the end of the file. If true new
ID3v2 tags will be stored at the end of the file. If false new ID3v2 tags will be stored
at the beginning of the file. Note, this only affects new ID3v2 tags. Existing ID3v2 tags
will not be moved unless removed and re-added.
Remarks
In order to store an ID3v2 tag at the end of a file, it must have a tag footer. Tag footers are only supported in ID3v2.4. If the ID3v2 version is changed, it will cause an error to be thrown when the tag is rendered.
Default
false
Returns
boolean
• Static set preferId3v2TagAtFileEnd(value): void
Sets whether new ID3v2 tags should be stored at the end of the file. If true new
ID3v2 tags will be stored at the end of the file. If false new ID3v2 tags will be stored
at the beginning of the file. Note, this only affects new ID3v2 tags. Existing ID3v2 tags
will not be moved unless removed and re-added.
Remarks
In order to store an ID3v2 tag at the end of a file, it must have a tag footer. Tag footers are only supported in ID3v2.4. If the ID3v2 version is changed, it will cause an error to be thrown when the tag is rendered.
Default
false
Parameters
| Name | Type |
|---|---|
value | boolean |
Returns
void