News for hackers. Stuff that matters.
Re:What Is the Fediverse? by 1vuio0pswjnm7 on Thursday April 28, 2022 @07:21PM (#31199449)

   #!/bin/sh
   PEERTUBE_INSTANCE="${PEERTUBE_INSTANCE-$1}";
   PEERTUBE_QUALITY=1080;
   test "$PEERTUBE_INSTANCE"||exec echo -e "PEERTUBE_INSTANCE is unset\nusage: echo shortUUID|$0 [PEERTUBE_INSTANCE]"
   test $PEERTUBE_QUALITY||export PEERTUBE_QUALITY=720;
   read x y;
   test ${#x} -eq 22||exec echo invalid shortUUID;
   z=$(curl -s "https://$PEERTUBE_INSTANCE/api/v1/videos/$x"|tr '\42' '\12' \
   |sed -n "/hls\/videos.*$PEERTUBE_QUALITY-fragmented.mp4/p"); 
   curl -4o $x.mp4 "$z";
Download video from PeerTube from command line

On mobile, an app like NewPipe will also work

usage

   export PEERTUBE_INSTANCE=video.hardlimit.com
   echo peBesyAgtzfRWS5FnDQQtn|$0 
or

   echo peBesyAgtzfRWS5FnDQQtn|$0 peertube.ignifi.me
The JSON also includes torrent URLs and magnet URIs.

There are no comments on this comment yet.