aly / plexbrowse.py

0 likes
0 forks
1 files
Last active 1644869771
a script to get direct download urls from a plex host. pass numbers as arguments to preselect choices instead of entering when prompted
1 #!/usr/bin/env python3
2 import requests
3 from sys import stderr, stdout, argv
4 from os import environ
5 from os.path import basename
6
7 host = environ.get("PLEX_HOST", "localhost")
8 token = environ.get("PLEX_TOKEN", "")
9
10 args = argv[1:]

aly / ytdl.sh

0 likes
0 forks
1 files
Last active 1630622817
A script to launch a DO droplet in nyc3, download a video, and upload it somewhere with rclone, because geofencing sucks
1 #!/bin/bash
2
3 PUB_URL="https://example.com/"
4 REMOTE="remote:path/"
5
6 cat >/tmp/cloud.conf <<EOFF
7 #!/bin/bash
8 apt-get update
9 apt-get install python3-pip ffmpeg -y
10 pip3 install youtube-dl

aly / hlstranscode.sh

0 likes
0 forks
1 files
Last active 1627586600
A script to launch a DO droplet with a script to download a file via http, transcode it using video2hls, upload the results to b2:ads-share/hls, then delete itself
1 #!/bin/bash
2 # hlstranscode $URL
3
4 cat >/tmp/cloud.conf <<EOFF
5 #!/bin/bash
6 apt-get update -qq
7 apt-get install ffmpeg -y -qq
8 curl https://rclone.org/install.sh | bash 2>/dev/null >/dev/null
9
10 export ID=\$(curl http://169.254.169.254/metadata/v1/id 2>/dev/null)