diff --git a/ani-cli b/ani-cli index 7d33ff0..0445b65 100755 --- a/ani-cli +++ b/ani-cli @@ -278,8 +278,10 @@ get_search_query() { -config "$CFG_DIR/${ROFI_CFG}") # Strip the list entry number from string - query="$(awk '{print $NF}' <<<${query//[1-9]+\. /})" + # query="$(awk '{print $NF}' <<<${query//[1-9]+\. /})" + query="${query//[1-9]*\. /}" log "Query: $query" + # [ "$VERBOSE" -eq 1 ] && printf "%s\n" "Query: $query" else query=$* fi @@ -471,17 +473,17 @@ open_episode() { video_url=$(get_links "$dpage_url") case $video_url in - *streamtape*) - # If direct download not available then scrape streamtape.com - BROWSER=${BROWSER:-firefox} - printf "scraping streamtape.com\n" - video_url=$(curl -s "$video_url" | sed -n -E ' + *streamtape*) + # If direct download not available then scrape streamtape.com + BROWSER=${BROWSER:-firefox} + printf "scraping streamtape.com\n" + video_url=$(curl -s "$video_url" | sed -n -E ' /^