lbry.sh - randomcrap - random crap programs of varying quality
HTML git clone git://git.codemadness.org/randomcrap
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
lbry.sh (357B)
---
1 #!/bin/sh
2 # transform "lbry://" URL to an URL that can be used with youtube-dl/mpv.
3
4 url="$1"
5
6 case "$url" in
7 "lbry://"*)
8 hash="${url##*#}"
9 text="realestate" # shouldn't matter, but should be non-empty.
10 id="6969" # shouldn't matter, but should be non-empty.
11 url="https://cdn.lbryplayer.xyz/api/v4/streams/free/${text}/${hash}/${id}";;
12 esac
13
14 echo "$url"