21 lines
549 B
Plaintext
21 lines
549 B
Plaintext
|
username=`echo "$content" | grep -o -P '(?<="creator_id":).*?(?=,)' | head -1`
|
||
|
|
||
|
# try multiple labels, in case some only work sometimes
|
||
|
|
||
|
if [[ ! -n "$username" ]]
|
||
|
then
|
||
|
username=`echo $content | grep -o -P '(?<="owner":{"id":).*?(?=,"display_name":")' | head -1`
|
||
|
fi
|
||
|
|
||
|
if [[ ! -n "$username" ]]
|
||
|
then
|
||
|
username=`echo $content | grep -o -P '(?<="item":{"@id":"https://vimeo.com/user).*?(?=","name":)' | head -1`
|
||
|
fi
|
||
|
|
||
|
# return URL only if username was found
|
||
|
if [[ -n "$username" ]]
|
||
|
then
|
||
|
rss="https://vimeo.com/user$username/videos/rss"
|
||
|
page_ext=$rss
|
||
|
fi
|