Merge pull request #1283 from chme/smartpl-comment-field

[smartpl] Add "comment" field to smartpl expression language
This commit is contained in:
Christian Meffert 2021-07-09 10:02:51 +02:00 committed by GitHub
commit 81dafab4ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 0 deletions

View File

@ -2547,6 +2547,7 @@ curl --include \
| album_artist_id | string | Album artist id |
| composer | string | Track composer |
| genre | string | Genre |
| comment | string | Comment |
| year | integer | Release year |
| track_number | integer | Track number |
| disc_number | integer | Disc number |

View File

@ -30,6 +30,7 @@ Where valid field-names (with their types) are:
* `title` (string)
* `genre` (string)
* `composer` (string)
* `comment` (string)
* `path` (string)
* `type` (string)
* `grouping` (string)

View File

@ -88,6 +88,7 @@ STRTAG : 'artist'
| 'songartistid'
| 'songalbumid'
| 'codectype'
| 'comment'
;
INTTAG : 'play_count'

View File

@ -292,6 +292,7 @@ track_to_json(struct db_media_file_info *dbmfi)
safe_json_add_string(item, "album_artist_id", dbmfi->songartistid);
safe_json_add_string(item, "composer", dbmfi->composer);
safe_json_add_string(item, "genre", dbmfi->genre);
safe_json_add_string(item, "comment", dbmfi->comment);
safe_json_add_int_from_string(item, "year", dbmfi->year);
safe_json_add_int_from_string(item, "track_number", dbmfi->track);
safe_json_add_int_from_string(item, "disc_number", dbmfi->disc);