You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know if it's the intended behaviour, or if this is not done via calling the "illegal-characters" part of beets (though it seems like it when I read the code).
When importing an album with "illegal" characters, it does not resort to looking in the config.yaml file (eg. ':' becomes '_' instead of '.').
# what it should look like
Daft Punk - TRON. Legacy.log
# what it actually looks like
Daft Punk - TRON_ Legacy.log
The text was updated successfully, but these errors were encountered:
jinithin
changed the title
The plugin does not follow beets-renaming
The plugin does not follow beets-config for renaming illegal characters
Apr 19, 2019
This is an exploration of
Holzhaus/beets-extrafiles#7 which appears to
not actually be a bug. Beets source replaces the following as part of
sanitization (see
[/beets/util/__init__.py#L623-L630](https://github.com/beetbox/beets/blob/4a9e7c1d3351d4b5ef67b01f924a3da70b64a74a/beets/util/__init__.py#L623-L630)):
```python
CHAR_REPLACE = [
(re.compile(r'[\\/]'), '_'), # / and \ -- forbidden everywhere.
(re.compile(r'^\.'), '_'), # Leading dot (hidden files on Unix).
(re.compile(r'[\x00-\x1f]'), ''), # Control characters.
(re.compile(r'[<>:"\?\*\|]'), '_'), # Windows "reserved characters".
(re.compile(r'\.$'), '_'), # Trailing dots.
(re.compile(r'\s+$'), ''), # Trailing whitespace.
]
```
Meaning, `_` is the actual correct replacement. Thus, tests have been
added but nothing else should be actionable at this time.
I don't know if it's the intended behaviour, or if this is not done via calling the "illegal-characters" part of beets (though it seems like it when I read the code).
When importing an album with "illegal" characters, it does not resort to looking in the config.yaml file (eg. ':' becomes '_' instead of '.').
The text was updated successfully, but these errors were encountered: