funkwhale/docs/administrator/manage-script/tags.md

96 wiersze
2.1 KiB
Markdown
Czysty Zwykły widok Historia

2022-07-01 09:02:29 +00:00
# Add artist and album tags from track metadata
Funkwhale extracts track tags from the file's metadata. Funkwhale applies these tags to the track's album and artist by running a check every few days. You can run the process at any time using the `funkwhale-manage` command line interface.
2022-07-01 09:02:29 +00:00
The command performs the following actions:
1. Finds all local artists or albums with no tags.
2. Gets all the tags associated with the album/artist's tracks.
3. Applies the track's tags to the album/artist.
## Add tags to albums
To add tags to untagged albums:
2022-07-23 13:32:35 +00:00
::::{tab-set}
:::{tab-item} Debian
:sync: debian
2022-07-01 09:02:29 +00:00
1. SSH into your Funkwhale server.
2. Navigate to the Funkwhale directory.
```{code-block} sh
cd /srv/funkwhale
```
2022-07-01 09:02:29 +00:00
3. Run the `funkwhale-manage` command line interface to generate tags for untagged albums.
2022-07-01 09:02:29 +00:00
```{code-block} sh
venv/bin/funkwhale-manage fw albums add-tags-from-tracks
```
2022-07-01 09:02:29 +00:00
2022-07-23 13:32:35 +00:00
:::
2022-07-01 09:02:29 +00:00
2022-07-23 13:32:35 +00:00
:::{tab-item} Docker
:sync: docker
2022-07-01 09:02:29 +00:00
1. SSH into your Funkwhale server.
2. Navigate to the Funkwhale directory.
```{code-block} sh
cd /srv/funkwhale
```
2022-07-01 09:02:29 +00:00
3. Run the `funkwhale-manage` command line interface to generate tags for untagged albums.
2022-07-01 09:02:29 +00:00
```{code-block} sh
sudo docker compose run --rm api funkwhale-manage fw albums add-tags-from-tracks
```
2022-07-01 09:02:29 +00:00
2022-07-23 13:32:35 +00:00
:::
::::
2022-07-01 09:02:29 +00:00
## Add tags to artists
To add tags to untagged artists:
2022-07-23 13:32:35 +00:00
::::{tab-set}
:::{tab-item} Debian
:sync: debian
2022-07-01 09:02:29 +00:00
1. SSH into your Funkwhale server.
2. Navigate to the Funkwhale directory.
```{code-block} sh
cd /srv/funkwhale
```
2022-07-01 09:02:29 +00:00
3. Run the `funkwhale-manage` command line interface to generate tags for untagged artists.
2022-07-01 09:02:29 +00:00
```{code-block} sh
venv/bin/funkwhale-manage fw artists add-tags-from-tracks
```
2022-07-01 09:02:29 +00:00
2022-07-23 13:32:35 +00:00
:::
2022-07-01 09:02:29 +00:00
2022-07-23 13:32:35 +00:00
:::{tab-item} Docker
:sync: docker
2022-07-01 09:02:29 +00:00
1. SSH into your Funkwhale server.
2. Navigate to the Funkwhale directory.
```{code-block} sh
cd /srv/funkwhale
```
2022-07-01 09:02:29 +00:00
3. Run the `funkwhale-manage` command line interface to generate tags for untagged artists.
2022-07-01 09:02:29 +00:00
```{code-block} sh
sudo docker compose run --rm api funkwhale-manage fw artists add-tags-from-tracks
```
2022-07-01 09:02:29 +00:00
2022-07-23 13:32:35 +00:00
:::
::::