17 lines
246 B
Plaintext
17 lines
246 B
Plaintext
|
determine_protocol
|
||
|
get_domain
|
||
|
|
||
|
instance=${protocol}${domain}
|
||
|
|
||
|
# get username
|
||
|
username=${url##*//}
|
||
|
username=${username#*/}
|
||
|
username=${username%%/*}
|
||
|
|
||
|
# get feed if able
|
||
|
if [[ -n $username ]]
|
||
|
then
|
||
|
rss="${instance}/${username}/rss"
|
||
|
url_ext=$rss
|
||
|
fi
|