<commit_before>Url='http://dictionary.reference.com/browse/'$POPCLIP_TEXT

getURL() {
    curl -s $Url | grep -m1 -oE 'http.+?mp3' | head -1
}

if [[ -s /tmp/$POPCLIP_TEXT.mp3 ]]; then
    afplay "/tmp/$POPCLIP_TEXT.mp3"
else
    extractedURL=$(getURL)
    if [[ ! $extractedURL == *swf* && ! -z $extractedURL ]]; then
        curl -s -o "/tmp/$POPCLIP_TEXT.mp3" $extractedURL
        afplay "/tmp/$POPCLIP_TEXT.mp3"
    else
        exit 1
    fi
fi<commit_msg>[Fix] extract the right URL from the new Dictionary.com<commit_after>Url='http://dictionary.reference.com/browse/'$POPCLIP_TEXT

getURL() {
    curl -s $Url | grep -m1 -oE 'http.+?mp3' | tail -1
}

if [[ -s /tmp/$POPCLIP_TEXT.mp3 ]]; then
    afplay "/tmp/$POPCLIP_TEXT.mp3"
else
    extractedURL=$(getURL)
    if [[ ! $extractedURL == *swf* && ! -z $extractedURL ]]; then
        curl -s -o "/tmp/$POPCLIP_TEXT.mp3" $extractedURL
        afplay "/tmp/$POPCLIP_TEXT.mp3"
    else
        exit 1
    fi
fi
{'fraction_non_alphanumeric': 0.17080745341614906, 'fraction_numerical': 0.016563146997929608, 'mean_word_length': 2.7192307692307693, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4763217', 'n_tokens_mistral': 399, 'n_tokens_neox': 389, 'n_words': 81}