v2.0 udpate
This commit is contained in:
parent
c91958d8eb
commit
4cd81b87a9
8
dp3.sh
8
dp3.sh
|
@ -54,7 +54,7 @@ echo -e '\033[0;31m'" ...... ......... ..............
|
|||
DP3PWD="$PWD"
|
||||
DP3RUN="$PWD/$0"
|
||||
REDOWNLOAD_COUNT=0
|
||||
REDOWNLOAD_LIMIT=5
|
||||
REDOWNLOAD_LIMIT=3
|
||||
PLAYLIST_URL=$3
|
||||
PLAYLIST_NAME="$1"
|
||||
PLAYLIST_GENRE="$2"
|
||||
|
@ -318,8 +318,8 @@ CMD_BC_P="bash bandcamp_progress.sh"
|
|||
goto skip
|
||||
redownload=${1:-redownload}
|
||||
#redownload:#
|
||||
REDOWNLOAD_COUNT=$((REDOWNLOAD_COUNT+1))
|
||||
echo "redownload missing files - cycle: $REDOWNLOAD_COUNT / $REDOWNLOAD_LIMIT"
|
||||
REDOWNLOAD_COUNT=$((REDOWNLOAD_COUNT+1))
|
||||
sleep 2
|
||||
cd "$PLAYLIST_NAME"
|
||||
goto end
|
||||
|
@ -926,7 +926,7 @@ base64 -d <<< cat dr1p > dp3.py && python3 dp3.py "$PLAYLIST_NAME" "$PLAYLIST_GE
|
|||
#####################################################################################################################
|
||||
mv "$PLAYLIST_ARTWORK" "$PLAYLIST_NAME/$PREFIX$PLAYLIST_NAME/_folder.png" && rm "dr1p" && rm "dp3.py" ###############
|
||||
#####################################################################################################################
|
||||
cd "$PLAYLIST_NAME" && ls *.log|grep -v processed|xargs -I {} mv {} "$PREFIX$PLAYLIST_NAME/"__{} && cd .. ##########
|
||||
cd "$PLAYLIST_NAME" && ls *.log|grep -v processed|xargs -I {} mv {} "$PREFIX$PLAYLIST_NAME/"___{} && cd .. #########
|
||||
#####################################################################################################################
|
||||
mv "$PLAYLIST_NAME/$PREFIX$PLAYLIST_NAME" "." && rm -Rf "$PLAYLIST_NAME" ############################################
|
||||
#####################################################################################################################
|
||||
|
@ -947,4 +947,4 @@ echo -e "\n\033[0;31m[\033[0m FILENAME OF PLAYLIST ARCHIVE \033[0;31m]\n" ######
|
|||
ls -al "$PREFIX$PLAYLIST_NAME.tar.gz" ###############################################################################
|
||||
#####################################################################################################################
|
||||
echo -e "\n\033[0;31m[\033[0m OPERATION COMPLETE \033[0;31m]" #######################################################
|
||||
################################################################################################################# EOF
|
||||
################################################################################################################# EOF
|
||||
|
|
Loading…
Reference in New Issue