remove () ' " from YNAME

This commit is contained in:
qo-op 2021-04-01 01:49:24 +02:00
parent 509a9e2b77
commit 8c2be5f75a
1 changed files with 2 additions and 2 deletions

View File

@ -79,7 +79,7 @@ FILE_NAME="$(basename "${YFILE}")"
FILE_EXT="${FILE_NAME##*.}"
YID=$(echo "${FILE_NAME}" | cut -d "&" -f 1)
YNAME=$(echo "${FILE_NAME}" | cut -d "&" -f 2- | sed "s/[(][^)]*[)]//g") # Remove YoutubeID_ and (what is in perentheses)
YNAME=$(echo "${FILE_NAME}" | cut -d "&" -f 2- | sed "s/[(][^)]*[)]//g" | sed "s/'/ /g" | sed "s/\"/ /g" | sed "s/&/ /g" ) # Remove YoutubeID_ and (what is in perentheses)
TMDB="${YID}"
FILE_PATH="$HOME/astroport/youtube/$YID"
@ -144,7 +144,7 @@ FILE_NAME="$(basename "${YFILE}")"
FILE_EXT="${FILE_NAME##*.}"
YID=$(echo "${FILE_NAME}" | cut -d "&" -f 1)
YNAME=$(echo "${FILE_NAME}" | cut -d "&" -f 2- | sed "s/[(][^)]*[)]//g") # Remove YoutubeID_ and (what is in perentheses)
YNAME=$(echo "${FILE_NAME}" | cut -d "&" -f 2- | sed "s/[(][^)]*[)]//g" | sed "s/'/ /g" | sed "s/\"/ /g" | sed "s/&/ /g" ) # Remove YoutubeID_ and (what is in perentheses)
[[ ! $islink && "$song" != "" ]] && FILE_PATH="$HOME/astroport/$CAT/$artist/_o-o_" \
|| FILE_PATH="$HOME/astroport/$CAT/${YID}"