forked from axiom-team/astrXbian
remove () ' " from YNAME
This commit is contained in:
parent
509a9e2b77
commit
8c2be5f75a
|
@ -79,7 +79,7 @@ FILE_NAME="$(basename "${YFILE}")"
|
||||||
FILE_EXT="${FILE_NAME##*.}"
|
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") # 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}"
|
TMDB="${YID}"
|
||||||
|
|
||||||
FILE_PATH="$HOME/astroport/youtube/$YID"
|
FILE_PATH="$HOME/astroport/youtube/$YID"
|
||||||
|
@ -144,7 +144,7 @@ FILE_NAME="$(basename "${YFILE}")"
|
||||||
FILE_EXT="${FILE_NAME##*.}"
|
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") # 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_" \
|
[[ ! $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