diff --git a/screen b/screen
index 2b18fcc..fdc8ef4 100755
--- a/screen
+++ b/screen
@@ -71,7 +71,7 @@ stop() {
info "nextcloud" "10000" "Uploading to NextCloud"
curl -u "$NC_USER:$NC_TOKEN" -s "$NC_URL/remote.php/dav/files/${NC_USER}${NC_SHARE_PATH}/$cloudname" -T "$tmp_file" || (info "" "2000" "Unable to upload to Nextcloud,moved the file from temp to your home folder as $cloudname" && mv "$tmp_file" "$HOME/$cloudname" && return 1)
info "nextcloud" "" "Getting File Id"
- file_id=$(curl -u "$NC_USER:$NC_TOKEN" -s "$NC_URL/remote.php/dav/files/${NC_USER}${NC_SHARE_PATH}/$cloudname" -X 'PROPFIND' -b "$NC_COOKIES" -H "Requesttoken: $NC_TOKEN" --data-raw '' | sed 's|d:response|\n|g' | sed -nE "s|.*.*$cloudname.*([^<]*).*|\1|p" | head -1)
+ file_id=$(curl -u "$NC_USER:$NC_TOKEN" -s "$NC_URL/remote.php/dav/files/${NC_USER}${NC_SHARE_PATH}/$cloudname" -X 'PROPFIND' --data-raw '' | sed 's|d:response|\n|g' | sed -nE "s|.*.*$cloudname.*([^<]*).*|\1|p" | head -1)
[ -z "$file_id" ] && info "" "2000" "File not uploaded correctly,moved the file from temp to your home folder as $cloudname" && mv "$tmp_file" "$HOME/$cloudname" && return 1
info "nextcloud" "10000" "Generating Share Link"
expire_date=$(date -d "+ 1 month" +"%Y-%m-%d") # link won't available after 1 month
diff --git a/yt-music b/yt-music
index 9484d4e..63dc662 100755
--- a/yt-music
+++ b/yt-music
@@ -125,7 +125,7 @@ get_song_lyrics() {
},
\"browseId\": \"$browseId\"
}"
- get_data "browse" "$json_lyrics" "$droid_agent" "AIzaSyAOghZGza2MQSZkY_zfZ370N-PUdXEo8AI" | sed 's/metadata"/\n/g' | sed -nE 's|.*lyricLine":"([^"]*)","cueRange".*"endTimeMilliseconds":"([^"]*)".*|\2\t\1|p' >"$logdir/lyrics"
+ get_data "browse" "$json_lyrics" "$droid_agent" "AIzaSyAOghZGza2MQSZkY_zfZ370N-PUdXEo8AI" | sed 's/metadata"/\n/g' | sed -nE 's|.*lyricLine":"([^"]*)","cueRange".*"endTimeMilliseconds":"([^"]*)".*|\2\t\1|p' | sed 's/\(\(\w\w*\W*\)\{10\}\)/\1\\n/g' >"$logdir/lyrics"
fi
}