From 705d3ecc431304b620c449a226aa70279a203ec7 Mon Sep 17 00:00:00 2001 From: decoded Date: Mon, 28 Feb 2022 21:53:35 -0600 Subject: [PATCH] v1.4 --- README.md | 5 +++-- dp3.sh | 9 +++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index d03e5e3..e80a93e 100644 --- a/README.md +++ b/README.md @@ -36,13 +36,14 @@ MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMdyymMMMMMMMMMMMMMMMMMMMMMMMMMMM ``` parallel music ripping batch processing automation utility - [rip/encode/rename/art/tag/playlist] ``` -## update - v1.3 +## update - v1.4 +- increased thread count - variable set at top of dp3.sh +- added archive prefix - variable set at top of dp3.sh - added soundcloud - added bandcamp - changed archive method to include original playlist url into the process log - changed archive method to also include the coverart into the archive as well as encoded into id3tag - updated progress/download windows -- added archive prefix - variable set at top of dp3.sh ## screenshots ![screenshots](screenshots/ss1.jpg) ![screenshots](screenshots/ss2.jpg) diff --git a/dp3.sh b/dp3.sh index 5f5d91e..9038799 100755 --- a/dp3.sh +++ b/dp3.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -################################################################################################# VERSION 1.3 ### SOF +################################################################################################# VERSION 1.4 ### SOF echo -e '\033[0;31m'" .:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::. " echo -e '\033[0;31m'" /mMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNd- " echo -e '\033[0;31m'"-MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN." @@ -58,6 +58,7 @@ PLAYLIST_ARTWORK="_cover.png" PLAYLIST_URLBATCH="_url_batch.log" PLAYLIST_URLSTEXT="_playlist_urls.txt" PREFIX="dr1p__" +THREADS=20 ##################################################################################################################### usage () { echo -e "\n\033[0;31mUSAGE: \033[0;91m./$0 name_of_playlist genre_of_playlist url_of_playlist\033[0m" @@ -154,7 +155,7 @@ if [ -f "youtube_url_batch.log" ]; then ls -al|grep part; sleep 0.3; done' > youtube_progress.sh tmux \ new-session "cd rips_youtube; clear; echo -e '\033[0;31mdownload window - youtube\033[0;94m'; parallel -j \ - 10 youtube-dl -f bestaudio -i --download-archive youtube_downloaded.log --no-post-overwrites -ciw \ + $THREADS youtube-dl -f bestaudio -i --download-archive youtube_downloaded.log --no-post-overwrites -ciw \ --extract-audio --audio-format mp3 --audio-quality 0 < youtube_url_batch.log; exit; read" \; \ split-window "bash youtube_progress.sh; exit; read" \; \ select-layout even-vertical @@ -176,7 +177,7 @@ if [ -f "soundcloud_url_batch.log" ]; then done' > soundcloud_progress.sh tmux \ new-session "cd rips_soundcloud; clear; echo -e '\033[0;31mdownload window - soundcloud\033[0;94m'; \ - parallel -j 10 youtube-dl -f bestaudio -i --download-archive soundcloud_downloaded.log \ + parallel -j $THREADS youtube-dl -f bestaudio -i --download-archive soundcloud_downloaded.log \ --no-post-overwrites -ciw -o '%\(uploader\)s-%\(title\)s-%\(id\)s.%\(ext\)s' --extract-audio \ --audio-format mp3 --audio-quality 0 < soundcloud_url_batch.log; exit; read" \; \ split-window "bash soundcloud_progress.sh; exit; read" \; \ @@ -198,7 +199,7 @@ if [ -f "bandcamp_url_batch.log" ]; then ls -al|grep part; sleep 0.3; done' > bandcamp_progress.sh tmux \ new-session "cd rips_bandcamp; clear; echo -e '\033[0;31mdownload window - bandcamp\033[0;94m'; parallel \ - -j 10 youtube-dl -f bestaudio -i --download-archive bandcamp_downloaded.log --no-post-overwrites -ciw \ + -j $THREADS youtube-dl -f bestaudio -i --download-archive bandcamp_downloaded.log --no-post-overwrites -ciw \ --extract-audio --audio-format mp3 --audio-quality 0 < bandcamp_url_batch.log; exit; read" \; \ split-window "bash bandcamp_progress.sh; exit; read" \; \ select-layout even-vertical