YNAME=$(echo "${FILE_NAME}" | cut -d "&" -f 2- | detox --inline)
This commit is contained in:
parent
083d1af27b
commit
334bbede9c
|
@ -82,7 +82,7 @@ FILE_EXT="${FILE_NAME##*.}"
|
||||||
|
|
||||||
YID=$(echo "${FILE_NAME}" | cut -d "&" -f 1)
|
YID=$(echo "${FILE_NAME}" | cut -d "&" -f 1)
|
||||||
YNAME=$(echo "${FILE_NAME}" | cut -d "&" -f 2- | sed "s/[(][^)]*[)]//g" | sed -e 's/[^A-Za-z0-9._-]/_/g' | sed -e 's/__/_/g' ) # Remove YoutubeID_ and (what is in perentheses)
|
YNAME=$(echo "${FILE_NAME}" | cut -d "&" -f 2- | sed "s/[(][^)]*[)]//g" | sed -e 's/[^A-Za-z0-9._-]/_/g' | sed -e 's/__/_/g' ) # Remove YoutubeID_ and (what is in perentheses)
|
||||||
[[ $(which detox) ]] && YNAME=$(echo "${FILE_NAME}" | detox --inline)
|
[[ $(which detox) ]] && YNAME=$(echo "${FILE_NAME}" | cut -d "&" -f 2- | detox --inline)
|
||||||
TMDB="${YID}"
|
TMDB="${YID}"
|
||||||
|
|
||||||
FILE_PATH="$HOME/astroport/youtube/$YID"
|
FILE_PATH="$HOME/astroport/youtube/$YID"
|
||||||
|
@ -148,7 +148,7 @@ FILE_EXT="${FILE_NAME##*.}"
|
||||||
|
|
||||||
YID=$(echo "${FILE_NAME}" | cut -d "&" -f 1)
|
YID=$(echo "${FILE_NAME}" | cut -d "&" -f 1)
|
||||||
YNAME=$(echo "${FILE_NAME}" | cut -d "&" -f 2- | sed "s/[(][^)]*[)]//g" | sed -e 's/[^A-Za-z0-9._-]/_/g' | sed -e 's/__/_/g') # Remove YoutubeID_ and (what is in perentheses)
|
YNAME=$(echo "${FILE_NAME}" | cut -d "&" -f 2- | sed "s/[(][^)]*[)]//g" | sed -e 's/[^A-Za-z0-9._-]/_/g' | sed -e 's/__/_/g') # Remove YoutubeID_ and (what is in perentheses)
|
||||||
[[ $(which detox) ]] && YNAME=$(echo "${FILE_NAME}" | detox --inline)
|
[[ $(which detox) ]] && YNAME=$(echo "${FILE_NAME}" | cut -d "&" -f 2- | detox --inline)
|
||||||
|
|
||||||
[[ ! $islink && "$song" != "" ]] && FILE_PATH="$HOME/astroport/$CAT/$artist/_o-o_" \
|
[[ ! $islink && "$song" != "" ]] && FILE_PATH="$HOME/astroport/$CAT/$artist/_o-o_" \
|
||||||
|| FILE_PATH="$HOME/astroport/$CAT/${YID}"
|
|| FILE_PATH="$HOME/astroport/$CAT/${YID}"
|
||||||
|
|
Loading…
Reference in New Issue