Switch from deezloader to deemix
parent
2aee78e157
commit
499770ef34
|
@ -2,7 +2,7 @@
|
||||||
- hosts: all
|
- hosts: all
|
||||||
become: yes
|
become: yes
|
||||||
tasks:
|
tasks:
|
||||||
- name: Install and configure Funkwhale, deezloader and beets
|
- name: Install and configure Funkwhale, deemix and beets
|
||||||
include_role:
|
include_role:
|
||||||
name: music
|
name: music
|
||||||
tasks_from: main
|
tasks_from: main
|
||||||
|
|
|
@ -1,7 +1,15 @@
|
||||||
- name: Update deezloader configuration file
|
- name: Update deemix configuration file
|
||||||
template:
|
template:
|
||||||
src: deezloader_settings.ini.j2
|
src: deemix_config.json.j2
|
||||||
dest: "{{ deezloader_folder_path }}/setting.ini"
|
dest: "{{ deemix_folder_path }}/config/config.json"
|
||||||
|
owner: "{{ base_user_name }}"
|
||||||
|
group: "{{ base_user_name }}"
|
||||||
|
mode: 0644
|
||||||
|
|
||||||
|
- name: Update ARL token file
|
||||||
|
template:
|
||||||
|
src: arl.j2
|
||||||
|
dest: "{{ deemix_folder_path }}/config/.arl"
|
||||||
owner: "{{ base_user_name }}"
|
owner: "{{ base_user_name }}"
|
||||||
group: "{{ base_user_name }}"
|
group: "{{ base_user_name }}"
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
@ -11,11 +19,11 @@
|
||||||
become: yes
|
become: yes
|
||||||
become_user: "{{ base_user_name }}"
|
become_user: "{{ base_user_name }}"
|
||||||
shell:
|
shell:
|
||||||
cmd: "deez-dw.py --recursive_download True --recursive_quality True --output {{ deezloader_songs_path }} --not_gui False --link {{ item }}"
|
cmd: "deemix --portable -p {{ deemix_songs_path }} {{ item }}"
|
||||||
chdir: "{{ deezloader_folder_path }}"
|
chdir: "{{ deemix_folder_path }}"
|
||||||
with_items: "{{ lookup('file', 'files/albums.txt').splitlines() }}"
|
with_items: "{{ lookup('file', 'files/albums.txt').splitlines() }}"
|
||||||
register: output_deezloader
|
register: output_deemix
|
||||||
|
|
||||||
- name: Show download state
|
- name: Show download state
|
||||||
debug:
|
debug:
|
||||||
msg: "{{ output_deezloader }}"
|
msg: "{{ output_deemix }}"
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
shell:
|
shell:
|
||||||
# Quiet mode = do not ask anything to the user
|
# Quiet mode = do not ask anything to the user
|
||||||
# Default are in configuration file
|
# Default are in configuration file
|
||||||
cmd: "beet -c {{ beets_config_folder }}/config.yaml import -q {{ deezloader_songs_path }}"
|
cmd: "beet -c {{ beets_config_folder }}/config.yaml import -q {{ deemix_songs_path }}"
|
||||||
|
|
||||||
- name: Import music into Funkwhale
|
- name: Import music into Funkwhale
|
||||||
shell:
|
shell:
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
---
|
---
|
||||||
- name: Install deezloader and beets
|
- name: Install deemix and beets
|
||||||
pip:
|
pip:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
state: present
|
state: present
|
||||||
loop:
|
loop:
|
||||||
- deezloader
|
- deemix
|
||||||
- beets
|
- beets
|
||||||
- pexpect
|
- pexpect
|
||||||
- pylast
|
- pylast
|
||||||
|
|
||||||
- name: Create deezloader and beets directories
|
- name: Create deemix and beets directories
|
||||||
file:
|
file:
|
||||||
path: "{{ item }}"
|
path: "{{ item }}"
|
||||||
state: directory
|
state: directory
|
||||||
|
@ -18,8 +18,9 @@
|
||||||
mode: 0755
|
mode: 0755
|
||||||
recurse: yes
|
recurse: yes
|
||||||
loop:
|
loop:
|
||||||
- "{{ deezloader_folder_path }}"
|
- "{{ deemix_folder_path }}"
|
||||||
- "{{ deezloader_songs_path }}"
|
- "{{ deemix_folder_path }}/config"
|
||||||
|
- "{{ deemix_songs_path }}"
|
||||||
- "{{ beets_config_folder }}"
|
- "{{ beets_config_folder }}"
|
||||||
|
|
||||||
- name: Create Funkwhale directory
|
- name: Create Funkwhale directory
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
{{ arl_deezer_token }}
|
|
@ -0,0 +1,78 @@
|
||||||
|
{
|
||||||
|
"downloadLocation": "{{ deemix_songs_path }}",
|
||||||
|
"tracknameTemplate": "%artist% - %title%",
|
||||||
|
"albumTracknameTemplate": "%tracknumber% - %title%",
|
||||||
|
"playlistTracknameTemplate": "%position% - %artist% - %title%",
|
||||||
|
"createPlaylistFolder": true,
|
||||||
|
"playlistNameTemplate": "%playlist%",
|
||||||
|
"createArtistFolder": false,
|
||||||
|
"artistNameTemplate": "%artist%",
|
||||||
|
"createAlbumFolder": true,
|
||||||
|
"albumNameTemplate": "%artist% - %album%",
|
||||||
|
"createCDFolder": true,
|
||||||
|
"createStructurePlaylist": false,
|
||||||
|
"createSingleFolder": false,
|
||||||
|
"padTracks": true,
|
||||||
|
"paddingSize": "0",
|
||||||
|
"illegalCharacterReplacer": "_",
|
||||||
|
"queueConcurrency": 3,
|
||||||
|
"maxBitrate": "3",
|
||||||
|
"fallbackBitrate": true,
|
||||||
|
"fallbackSearch": false,
|
||||||
|
"logErrors": true,
|
||||||
|
"logSearched": false,
|
||||||
|
"overwriteFile": "n",
|
||||||
|
"createM3U8File": false,
|
||||||
|
"playlistFilenameTemplate": "playlist",
|
||||||
|
"syncedLyrics": false,
|
||||||
|
"embeddedArtworkSize": 800,
|
||||||
|
"embeddedArtworkPNG": false,
|
||||||
|
"localArtworkSize": 1400,
|
||||||
|
"localArtworkFormat": "jpg",
|
||||||
|
"saveArtwork": true,
|
||||||
|
"coverImageTemplate": "cover",
|
||||||
|
"saveArtworkArtist": false,
|
||||||
|
"artistImageTemplate": "folder",
|
||||||
|
"jpegImageQuality": 80,
|
||||||
|
"dateFormat": "Y-M-D",
|
||||||
|
"albumVariousArtists": true,
|
||||||
|
"removeAlbumVersion": false,
|
||||||
|
"removeDuplicateArtists": false,
|
||||||
|
"featuredToTitle": "0",
|
||||||
|
"titleCasing": "nothing",
|
||||||
|
"artistCasing": "nothing",
|
||||||
|
"executeCommand": "",
|
||||||
|
"tags": {
|
||||||
|
"title": true,
|
||||||
|
"artist": true,
|
||||||
|
"album": true,
|
||||||
|
"cover": true,
|
||||||
|
"trackNumber": true,
|
||||||
|
"trackTotal": false,
|
||||||
|
"discNumber": true,
|
||||||
|
"discTotal": false,
|
||||||
|
"albumArtist": true,
|
||||||
|
"genre": true,
|
||||||
|
"year": true,
|
||||||
|
"date": true,
|
||||||
|
"explicit": false,
|
||||||
|
"isrc": true,
|
||||||
|
"length": true,
|
||||||
|
"barcode": true,
|
||||||
|
"bpm": true,
|
||||||
|
"replayGain": false,
|
||||||
|
"label": true,
|
||||||
|
"lyrics": false,
|
||||||
|
"syncedLyrics": false,
|
||||||
|
"copyright": false,
|
||||||
|
"composer": false,
|
||||||
|
"involvedPeople": false,
|
||||||
|
"source": false,
|
||||||
|
"rating": false,
|
||||||
|
"savePlaylistAsCompilation": false,
|
||||||
|
"useNullSeparator": false,
|
||||||
|
"saveID3v1": true,
|
||||||
|
"multiArtistSeparator": "default",
|
||||||
|
"singleAlbumArtist": false,
|
||||||
|
"coverDescriptionUTF8": false
|
||||||
|
}
|
|
@ -1,2 +0,0 @@
|
||||||
[login]
|
|
||||||
token = {{ arl_deezer_token }}
|
|
|
@ -10,7 +10,7 @@ funkwhale_subdomain: music
|
||||||
nginx_max_body_size: 100M
|
nginx_max_body_size: 100M
|
||||||
postgres_version: 13
|
postgres_version: 13
|
||||||
redis_version: 6
|
redis_version: 6
|
||||||
deezloader_folder_path: /home/{{ base_user_name }}/deezloader
|
deemix_folder_path: /home/{{ base_user_name }}/deemix
|
||||||
deezloader_songs_path: "{{ deezloader_folder_path }}/songs"
|
deemix_songs_path: "{{ deemix_folder_path }}/songs"
|
||||||
beets_config_folder: "/home/{{ base_user_name }}/.config/beets"
|
beets_config_folder: "/home/{{ base_user_name }}/.config/beets"
|
||||||
beets_log_file: "/var/log/beets.log"
|
beets_log_file: "/var/log/beets.log"
|
||||||
|
|
Loading…
Reference in New Issue