<commit_before># beets-rymgenre

`beets-rymgenre` is a [beets][beets] plugin to fetch genre information from
[rateyourmusic.com][rym] and assigning it to your albums and items.

## Installation

The plugin requires [lxml][lxml] and [requests][requests], which you can install
using [pip][pip] by typing:

```
$ pip install lxml requests
```

After having [lxml][lxml] and [requests][requests] installed, edit your config
file and add the path to a clone of this repository to your
[pluginpath][beets-pluginpath] line. Also enable the plugin by adding the
`rymgenre` value to your `plugins` line.

## Configuration

[rateyourmusic.com][rym] attributes genres per album. Each album has a set of
primary genres and a set of secondary genres. There is also a [tree][rym-tree]
of genres. You can configure the plugin to set (1) only the primary genres of an
album, (2) both the primary and secondary genres or (3) the union of ancestor
genres for each primary and secondary genre. The default configuration is the
latter, but you can override it by using the `level` configuration value. The
`level` configuration value can have one of three possible values: `primary`,
`secondary` or `parent`:

```
rymgenre:
    level: parent
```

It is also possible to configure the separator to use for multiple genres. The
default value is `', '`, but it is customizable through the `separator`
configuration value:

```
rymgenre:
    separator: ' / '
```
<commit_msg>The pluginpath should point to the beetsplug folder<commit_after># beets-rymgenre

`beets-rymgenre` is a [beets][beets] plugin to fetch genre information from
[rateyourmusic.com][rym] and assigning it to your albums and items.

## Installation

The plugin requires [lxml][lxml] and [requests][requests], which you can install
using [pip][pip] by typing:

```
$ pip install lxml requests
```

After having [lxml][lxml] and [requests][requests] installed, edit your config
file and add the path to the `beetsplug` folder of a clone of this repository to
your [pluginpath][beets-pluginpath] line. Also enable the plugin by adding the
`rymgenre` value to your `plugins` line.

## Configuration

[rateyourmusic.com][rym] attributes genres per album. Each album has a set of
primary genres and a set of secondary genres. There is also a [tree][rym-tree]
of genres. You can configure the plugin to set (1) only the primary genres of an
album, (2) both the primary and secondary genres or (3) the union of ancestor
genres for each primary and secondary genre. The default configuration is the
latter, but you can override it by using the `level` configuration value. The
`level` configuration value can have one of three possible values: `primary`,
`secondary` or `parent`:

```
rymgenre:
    level: parent
```

It is also possible to configure the separator to use for multiple genres. The
default value is `', '`, but it is customizable through the `separator`
configuration value:

```
rymgenre:
    separator: ' / '
```

{'fraction_non_alphanumeric': 0.08692722371967655, 'fraction_numerical': 0.0020215633423180594, 'mean_word_length': 4.798828125, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 10}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3412767', 'n_tokens_mistral': 873, 'n_tokens_neox': 826, 'n_words': 415}