config:beets
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
config:beets [2024/03/25 18:02] – Wulf Rajek | config:beets [2024/12/24 01:08] (current) – [Path template information] Wulf Rajek | ||
---|---|---|---|
Line 7: | Line 7: | ||
< | < | ||
#mint21 | #mint21 | ||
- | sudo apt-get install libchromaprint1 | + | sudo apt-get install libchromaprint1 mp3val |
- | sudo apt-get install | + | |
- | sudo apt-get install | + | |
sudo apt-get remove python-pip | sudo apt-get remove python-pip | ||
sudo apt-get install python3-setuptools | sudo apt-get install python3-setuptools | ||
Line 22: | Line 20: | ||
pip install beets-web-import | pip install beets-web-import | ||
pip install python3-discogs-client | pip install python3-discogs-client | ||
+ | # see notes below to patch copyartifacts | ||
pip install beets-copyartifacts | pip install beets-copyartifacts | ||
- | 2to3-2.7 -w ~/ | ||
- | |||
- | #adjust as following: | ||
- | #line 104: | ||
- | file_ext = os.path.splitext(filename)[1].decode(' | ||
- | #line 143: | ||
- | print(' | ||
- | #line 147: | ||
- | print(' | ||
- | #line 156: | ||
- | print(' | ||
- | |||
- | #add line 127 | ||
- | dest_file = beets.util.bytestring_path(dest_file) | ||
- | |||
- | |||
- | vi ~/ | ||
- | change line 75 from | ||
- | def unidecode_punc_only(text): | ||
- | to | ||
- | def unicode_punc_only(text): | ||
- | |||
- | |||
#Buggy as of 19/ | #Buggy as of 19/ | ||
pip install beets-copyartifacts3 | pip install beets-copyartifacts3 | ||
pip install beets-extrafiles | pip install beets-extrafiles | ||
+ | |||
+ | #Mint22: | ||
+ | sudo apt-get install python3-acoustid libchromaprint1 mp3val flac | ||
+ | pipx install beets | ||
+ | pipx inject beets flask=2.2.5 discogs_client requests pylast pyacoustid pycairo pygobject python3-discogs-client discogs-client beets-copyartifacts beets-extrafiles | ||
+ | pipx inject beets beets-yearfixer beets-web-import | ||
+ | pipx inject beets git+https:// | ||
+ | |||
</ | </ | ||
Line 63: | Line 47: | ||
</ | </ | ||
- | ====== | + | ====== |
+ | < | ||
+ | 2to3-2.7 -w ~/ | ||
- | https://github.com/edgars-supe/beets-importreplace | + | #Mint22: |
+ | sudo apt-get install 2to3 | ||
+ | 2to3 -w ~/.local// | ||
+ | </ | ||
+ | then adjust as following: | ||
< | < | ||
- | pip install git+https://github.com/ | + | #line 104: |
+ | file_ext = os.path.splitext(filename)[1].decode(' | ||
+ | #line 143: | ||
+ | print(' | ||
+ | #line 147: | ||
+ | print(' | ||
+ | #line 156: | ||
+ | print(' | ||
+ | |||
+ | #add line 127 | ||
+ | dest_file = beets.util.bytestring_path(dest_file) | ||
</ | </ | ||
- | + | Change the init: | |
- | add config and add importreplace to plugins config string: | + | |
< | < | ||
- | #replace unicode apostrophes from mb with ascii version in tags | + | vi ~/ |
- | importreplace: | + | </ |
- | | + | < |
- | - item_fields: | + | #change line 75 from |
- | | + | def unidecode_punc_only(text): |
- | | + | #to |
- | ' | + | def unicode_punc_only(text): |
- | ' | + | |
- | ' | + | |
</ | </ | ||
====== Unicode in Tag Patch ====== | ====== Unicode in Tag Patch ====== | ||
+ | |||
+ | NOTE: use import-replace plugin instead! | ||
MusicBrainz uses unicode characters for apostrophes, | MusicBrainz uses unicode characters for apostrophes, | ||
Line 547: | Line 546: | ||
beet import -A -C -W -I -s / | beet import -A -C -W -I -s / | ||
</ | </ | ||
+ | Update id3 tags after changing db | ||
+ | < | ||
+ | beet write | ||
+ | </ | ||
====== Addons ====== | ====== Addons ====== | ||
Line 702: | Line 704: | ||
====== importreplace ====== | ====== importreplace ====== | ||
- | A plugin for beets to perform regex replacements during import. | + | A plugin for beets to perform regex replacements during import, particularly useful to replace unicode apostrophes, |
https:// | https:// | ||
+ | |||
+ | Installation: | ||
+ | < | ||
+ | pip install git+https:// | ||
+ | </ | ||
+ | |||
+ | add config and add importreplace to plugins config string: | ||
+ | < | ||
+ | #replace unicode apostrophes from mb with ascii version in tags | ||
+ | importreplace: | ||
+ | replacements: | ||
+ | - item_fields: | ||
+ | album_fields: | ||
+ | replace: | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | </ | ||
+ | |||
+ | As this plugin works for import only, use the following to retag/ | ||
+ | < | ||
+ | #for albums: | ||
+ | beet import -L ": | ||
+ | |||
+ | #for singletons: | ||
+ | beet import -L -s ": | ||
+ | </ |
config/beets.1711389748.txt.gz · Last modified: by Wulf Rajek