2 次代碼提交 1281fcefc7 ... 694b72fb3c

作者 SHA1 備註 提交日期
  Distopico Vegan 694b72fb3c add beets config 1 年之前
  Distopico Vegan 020ca9efec update .bashrc 1 年之前
共有 3 個文件被更改,包括 74 次插入1 次删除
  1. 6 1
      .bashrc
  2. 64 0
      .config/beets/config.yaml
  3. 4 0
      .config/beets/requirements.txt

+ 6 - 1
.bashrc

@@ -26,7 +26,7 @@ echo "$(tput setaf 2)
     |  (_|| (_||_)(_)|(_|      |  Linux-Libre `uname -rm`
   ===========================  |  $(tput setaf 1)
 $(tput sgr0)"
-fortune ciencia vida libertad hackers liberacion | cowsay -f ~/.cowsay/small.cow
+fortune ciencia vida libertad hackers liberacion anarchism | cowsay -f ~/.cowsay/small.cow
 
 ########################
 # Init management
@@ -234,3 +234,8 @@ fi
 ###-end-npm-completion-###
 
 [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion
+
+# pnpm
+export PNPM_HOME="$HOME/.local/share/pnpm"
+export PATH="$PNPM_HOME:$PATH"
+# pnpm end

+ 64 - 0
.config/beets/config.yaml

@@ -0,0 +1,64 @@
+directory: /net/shared/Music/camilo
+library: /net/shared/Music/camilo/library.db
+plugins: fromfilename scrub zero convert edit inline convert lastgenre fetchart mbsync
+# disable: copyartifacts discogs
+import:
+  copy: no
+  move: yes
+  write: yes
+  autotag: yes
+  from_scratch: no
+  quiet_fallback: 'asis'
+  default_action: 'skip'
+art_filename: cover
+ui:
+  color: yes
+paths:
+  default: '$albumartist/$album%aunique{}/$track_or_empty$title'
+  singleton: 'Non-Album/$albumartist/$artist - $title'
+  comp: 'Compilations/$album%aunique{}/$track_or_empty$artist - $title'
+  ext:jpg: $albumpath/folder
+  ext:png: $albumpath/folder
+  
+# Plugins
+lastgenre:
+  auto: yes
+  force: yes
+  count: 3
+fetchart:  # send upstream PR for support singles
+  auto: yes
+  cautious: yes
+  cover_names: cover front art album folder
+  sources:
+    - coverart: release
+    - coverart: releasegroup
+    - filesystem
+    - albumart
+    - wikipedia
+    - itunes
+    - amazon
+copyartifacts:
+  extensions: .cue .log .jpg .png .pdf
+  print_ignored: yes
+scrub:
+  auto: yes
+zero:
+  auto: yes
+  fields: title artist albumartist comments genre
+  title: ['\bningún artista\b', '\bningun artista\b', '\bunknown artist\b']
+  artist: ['\bningún título\b', '\bningun titulo\b', '\bunknown title\b']
+  albumartist: ['\bningún título\b', '\bningun titulo\b', '\bunknown title\b']
+  comments: [EAC, LAME, from.+collection, 'ripped by', 'encoded by']
+  genre: ['\bnone\n', '\bunknown\b', '\nninguno\n', '\bdesconocido\b']
+  update_database: true
+item_fields:
+  track_or_empty: |
+    return u'%02i.%02i - ' % (disc, track) if disctotal > 1 else u'%02i - ' % (track) if track != 00 else ''
+convert:
+  auto: yes
+  format: ogg
+  formats:
+    ogg: ffmpeg -i $source -y -vn -acodec libvorbis -aq 4 $dest
+  dest: /net/shared/Music/backup
+  copy_album_art: yes
+  no_convert: path::\.(ogg|oga)$

+ 4 - 0
.config/beets/requirements.txt

@@ -0,0 +1,4 @@
+beets-copyartifacts
+discogs-client
+pylast
+requests