Application icon

Last.fm Suite

 

Last.fm represents its annotations to tracks, albums and artists in tags. These tags are of a much broader scope than the tags kept in the metadata typically stored in audio tracks. This suite divides the tags into the following categories:

Genres
Tags which can be found in your Genres List. (Preferences-Lists-Genres).
Moods
Tags which can be found in your Moods List. (Preferences-Lists-Moods).
Artists
Tags which are found in your Artist List. (Preferences-Lists-Artist). Items in the Artist list after removing a leading 'The' will also be matched. Note that a non foolproof attempt is also made to match the last name of items in the Artist List.
Years
Tags which take the form of 19## or 20## are assumed to be years.
Decades
Tags which take the form of ##s, ##'s, 19##s, 19##'s, 20##s or 20##'s are assumed to be decades. Note that # can be any digit but they must be the same.
Others
Any tag which has been explicitly marked of interest which does not fall into one of the above categories.
Dregs
Anything left over after filling the above categories.

The sample actions provide the means of importing (appending or overwriting) any of the tags which fall into one of the above categories.

A large number of actions are provided. Many of the actions are helpers which are called by others. The names of these actions all start with Last.fm Suite Helper:

Many other actions start with a prefix of Last.fm Suite Helper. These are small actions each of which does one type of import. The intent is that you can call them from your own actions.

The LastFM DB database

Most of these actions create and/or use a database named LastFM DB. While you need not manually edit the database you can do so if you wish. The database files are placed in a folder you specify when the suite is configured.

The database is quite simple and consists of three columns:

Name
The case insensitive name of a tag extracted from Last.fm.

Ignore
When checked the tag in the associated Name column will be explicitly ignored. Note that all Last.fm tags which are not in the Genre List or the Mood List are implicitly ignored. When a tag is explicitly ignored it will not be presented to you when training the database. You can flip the value by double clicking on the cell or by setting it to 1 if you inline edit.

Replacement Name
This column is only used if the Ignore column is not checked. When the tag in the Name column is found it will be renamed to the non empty value in the Replacement Name column before any tag associations or eliminations are made.

The LastFM Temp DB database

This database is created and opened when training the The LastFM DB database database. The database is overwritten whenever required. If you wish to preserve the contents of the database you will have to save it manually. The database consists of the following columns:

Name
The case insensitive name of a tag extracted from Last.fm.

Function
The function to be applied to the tag when updating the Last FM DB database. You edit the cell by selecting the row and clicking on the cell. This will display a menu with the function choices. You can change multiple cells at once by selecting the appropriate rows and by double clicking in the Function column. The function menu contains the following choices:
none
When the function is displayed as empty the associated tag is not modified in the Last FM DB database. Selecting none will set the cell to empty.

Ignore
The associated name will be marked as ignored in the Last FM DB database. These items will be ignored regardless as to their presence in the Genre or Mood List. Further, the items will no longer be displayed if encountered again when training the database.

Accept
The associated name will be placed in the Last FM DB database. This will cause the tag to be valid when importing metadata even if the tag is not in the Genre or Mood List.

Genre
The associated name will be added to the Genre List. Note that your configured case transformation will be applied to the name.

Mood
The associated name will be added to the Mood List. Note that your configured case transformation will be applied to the name.
Replacement Name
When the Function column is Accept, the information in this column will be populated in the Last FM DB database.

Actions

•  Last.fm Train the Database

Last.fm Album and Track tags will be downloaded for all selected files. The set of merged results will reduced by removing any tags already currently known. known implies that the tag is a genre; mood; in the LastFM DB database and not ignored; an artist; a year or a decade.

The resultant list of unknown tags will be displayed in the LastFM Temp DB database. You can make any changes to the tags in the displayed database and commit them to the LastFM DB database by selecting Run Action>Apply Changes to LastFM DB from the context menu.

•  Apply Changes to LastFM DB

This action can only be run from the LastFM Temp DB database. It will apply any changes you've made to the LastFM DB database. The action is not displayed on Actions menus. Warning: If you explicitly ignore all tags that you are not interested in, the LastFM DB database may grow at an alarming rate. It may be preferable to allow these tags to be implicitly ignored and to only accept those tags you wish to preserve.

•  Last.fm Suite Configuration

This is the configuration action for the suite. The action is automatically called when required information is missing. If you want to change the configuration, you can manually run this action. This first time you run this action or it is automatically run for you, more information on the importing of metadata will become clearer.

•  Last.fm Sample

This is a sample action which will download Album and Track tags for all selected files. Priority is given to Album tags. The following metadata may be imported:

If you want to make changes to this action it is strongly recommended that you duplicate the action in the Action Manager and make the changes in the copy. This is avoid losing changes if you download updates for the suite.

The action basically sets a number of configuration named variables and calls the Last.fm Suite Helper: Extract Metadata action. It is easy to change what is imported by making changes to the configuration named variables initialized in the action. For more information on the values to use, read the first Comment statement in the Last.fm Suite Helper: Extract Metadata action.

•  Last.fm Display Available Metadata in Log Viewer

This action downloads Album and Track tags then displays a list of categories and associated tags in the Log Viewer.

•  Helper Actions

Actions in the suite with names which start with Last.fm Suite Helper: are called by the above actions. They should not be directly called. The actions are not displayed on Actions menus.




Content List:

Folder: Last.fm Suite

Actions:

    Last.fm Sample

    Last.fm Suite Helper: Extract Metadata

    Last.fm Suite Helper: Set DB Access Visibility

    Last.fm Suite Helper: Process Downloaded Last.fm Tags

    Last.fm Suite Helper: Open or Create the LastFM DB

    Last.fm Suite Configuration

    Last.fm Suite Helper: Last.fm Apply Case Transformations

    Last.fm Display Available Metadata in Log Viewer

    Last.fm Train the Database

    Last.fm Suite Helper: Display a Tags List

    Apply Changes to LastFM DB

    Last.fm Suite Helper: Append Genres

    Last.fm Suite Helper: Append Moods

    Last.fm Suite Helper: Append Others

    Last.fm Suite Helper: Overwrite Decade

    Last.fm Suite Helper: Overwrite Decade if Missing

    Last.fm Suite Helper: Overwrite Genre (1)

    Last.fm Suite Helper: Overwrite Genre (1) if Missing

    Last.fm Suite Helper: Overwrite Genres

    Last.fm Suite Helper: Overwrite Moods

    Last.fm Suite Helper: Overwrite Original Release Time

    Last.fm Suite Helper: Overwrite Original Release Time if Missing

    Last.fm Suite Helper: Overwrite Others

    Last.fm Suite Helper: Overwrite Year

    Last.fm Suite Helper: Overwrite Year if Missing


Export Sets:

    last.fm DB

    last.fm Temp


Action Runtime Settings :

    Apply Changes to LastFM DB

Requirements:

Yate v6.13

History:


Date Version Information
2020-09-13 v1.0 First release.
2020-09-13 v1.1 Restricted database access.
2021-03-23 v1.2 Bug fixes.
2021-03-23 v1.2 Bug fixes.
2021-03-26 v1.4 The database was not auto created.
2021-03-28 v1.5 Added the ability to set Original Release Time.
2021-03-28 v1.6 Genre's were using the wrong join sequence.
2021-04-15 v1.7 An action listed for remote loading in Last.fm Suite Helper: Extract Metadata had an extra space in the name.
2021-05-18 v1.8 Added the ability to sort Genres, Moods and others in 'Last.fm Sample'.
2022-06-01 v1.9 Fixed a bug which could cause certain functions to fail.
2023-01-02 v2.0 Updated for Yate v6.13. Major version bump is to ensure updates are okay with older Yate versions.

Download


Back to Yate Resources