combine seds in peertube.sh, ytmpd check for novideo streams
This commit is contained in:
parent
50d457c9e6
commit
0958bcd274
3 changed files with 36 additions and 11 deletions
|
@ -10,13 +10,11 @@ wget "$link" -O /tmp/videohtml
|
|||
|
||||
### Variables
|
||||
|
||||
videolink=$( grep "meta property" /tmp/videohtml | grep "og:video:url" \
|
||||
| sed 's/.*href="//' | sed 's#" />##')
|
||||
chatver=$( grep 'peertube-plugin-livechat' /tmp/videohtml | grep 'version'\
|
||||
| sed 's#.*npmName..:..peertube-plugin-livechat.....name..:..livechat.....version..:..##' \
|
||||
| sed 's#.....description.....PeerTube plugin livechat: offers a way.*##' )
|
||||
instance=$(echo "$videolink" | sed 's#https://##' | sed 's#/videos/watch/.*##')
|
||||
videoid=$(echo $videolink | sed 's#.*videos/watch/##')
|
||||
videolink=$(grep "og:video:url" /tmp/videohtml | sed 's/.*href="//;s#" />##' )
|
||||
chatver=$(grep "peertube-plugin-livechat" /tmp/videohtml \
|
||||
| sed 's#.*npmName..:..peertube-plugin-livechat.....name..:..livechat.....version..:..##;s#.....description.....PeerTube plugin livechat: offers a way.*##' )
|
||||
instance=$(echo "$videolink" | sed 's#https://##;s#/videos/watch/.*##')
|
||||
videoid=$(echo "$videolink" | sed 's#.*videos/watch/##')
|
||||
|
||||
### Delete html
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue