Skip to content

Instantly share code, notes, and snippets.

@cirrusUK
Last active January 19, 2019 23:49
Show Gist options
  • Select an option

  • Save cirrusUK/c28567fb779f6be86fe2e7ad963aad20 to your computer and use it in GitHub Desktop.

Select an option

Save cirrusUK/c28567fb779f6be86fe2e7ad963aad20 to your computer and use it in GitHub Desktop.
wrapper scripts for playing media via: get_iplayer,acestream,sopcast and peerflix : commonly used in conjunction with the ('open with') https://github.com/darktrojan/openwith browser extension.
#!/usr/bin/env bash
#
## Script used in conjunction with the firefox 'open with' extension
## [https://github.com/darktrojan/openwith], for watching acestreams via right click menu.
## using [https://github.com/jonian/acestream-launcher]
#
# ▓▓▓▓▓▓▓▓▓▓
# ░▓ author ▓ cirrus <[email protected]>
# ░▓ code ▓ https://gist.github.com/cirrusUK
# ░▓ mirror ▓ http://cirrus.turtil.net
# ░▓▓▓▓▓▓▓▓▓▓
# ░░░░░░░░░░
#
xterm -geometry 100x5 -e "acestream-launcher "$1" --player mpv"
#!/bin/bash
#
## Script used in conjunction with the firefox 'open with' extension
## [https://github.com/darktrojan/openwith], for watching videos with cvlc from right click menu.
##
# ▓▓▓▓▓▓▓▓▓▓
# ░▓ author ▓ cirrus <[email protected]>
# ░▓ code ▓ https://gist.github.com/cirrusUK
# ░▓ mirror ▓ http://cirrus.turtil.net
# ░▓▓▓▓▓▓▓▓▓▓
# ░░░░░░░░░░
#
exec /usr/bin/vlc -I "dummy" "$@"
#!/bin/sh
## ## wrapper script for goodls, used for downloading from googledrive commonly used with 'open with' browser extension.
## https://github.com/tanaikech/goodls [see how to get goodls API key and export it]
## /usr/local/bin/gdrivedl
cd /home/$user
xterm -geometry 70x5+16+960 -e goodls -u "$1" && notify-send -h string:bgcolor:#191919 -h string:fgcolor:#f2810d -i /path/to/icons.png "Google Drive" "Download Completed to ~/ "
# vim: ft=sh ts=4 sw=4 tw=0 fdm=marker foldlevel=0 :
#!/bin/sh
## wrapper script for goodls, used for downloading from googledrive
## https://github.com/tanaikech/goodls
## Usage: Enter URL of file to download when prompted.
# ▓▓▓▓▓▓▓▓▓▓
# ░▓ author ▓ cirrus <[email protected]>
# ░▓ code ▓ https://gist.github.com/cirrusUK
# ░▓ mirror ▓ http://cirrusuk.wordpress.com
# ░▓▓▓▓▓▓▓▓▓▓
# ░░░░░░░░░░
#
#mpg123 /mnt/INT2/strek/Command_codes.mp3
red=`tput setaf 1`
green=`tput setaf 2`
yellow=`tput setaf 3`
blue=`tput setaf 4`
magenta=`tput setaf 5`
cyan=`tput setaf 6`
tput setaf 5
echo -ne "${cyan}\nEnter the url of file you wish to download:"
read url
url="$url"
tput setaf 6
cd /home/$USER/Downloads
echo -ne "${red}\nchanging directory"
goodls -u "$url"
tput setaf 2
echo -ne "${yellow}\nyay ! your file will be in Downloads dir."
# vim: ft=sh ts=4 sw=4 tw=0 fdm=marker foldlevel=0 :
#!/usr/bin/env bash
#
## Script used in conjunction with the firefox 'open with' extension
## [https://github.com/darktrojan/openwith], for watching BBC Iplayer using
## [https://github.com/get-iplayer/get_iplayer] via right click menu.
##
# ▓▓▓▓▓▓▓▓▓▓
# ░▓ author ▓ cirrus <[email protected]>
# ░▓ code ▓ https://gist.github.com/cirrusUK
# ░▓ mirror ▓ http://cirrus.turtil.net
# ░▓▓▓▓▓▓▓▓▓▓
# ░░░░░░░░░░
#
xterm -geometry 100x5 -e get_iplayer --stream $1 --player="mplayer -cache 3072 -"
#!/bin/bash
#
## Script used in conjunction with the firefox 'open with' extension
## [https://github.com/darktrojan/openwith], for watching magnet & .torrent links in mpv
## using [https://github.com/mafintosh/peerflix]
#
# ▓▓▓▓▓▓▓▓▓▓
# ░▓ author ▓ cirrus <[email protected]>
# ░▓ code ▓ https://gist.github.com/cirrusUK
# ░▓ mirror ▓ http://cirrus.turtil.net
# ░▓▓▓▓▓▓▓▓▓▓
# ░░░░░░░░░░
#
##wrapper script for opening magnet & .torrent links and autoplay with mpv
/usr/bin/peerflix "$1" -k
#!/usr/bin/env bash
#
## Script used in conjunction with the firefox 'open with' extension
## [https://github.com/darktrojan/openwith], for watching sopcast streams via right click menu
## using [https://github.com/jonian/sopcast-launcher]
#
# ▓▓▓▓▓▓▓▓▓▓
# ░▓ author ▓ cirrus <[email protected]>
# ░▓ code ▓ https://gist.github.com/cirrusUK
# ░▓ mirror ▓ http://cirrus.turtil.net
# ░▓▓▓▓▓▓▓▓▓▓
# ░░░░░░░░░░
#
xterm -geometry 100x5 -e "sopcast-launcher "$1" --player mpv"
#!/usr/bin/env bash
## Script used in conjunction with the firefox 'open with' extension
## [https://github.com/darktrojan/openwith], for downloading video streams via right click menu.
## using streamlink [https://github.com/streamlink/streamlink]
# Edit line 13 path to your desired download dir.
# ▓▓▓▓▓▓▓▓▓▓
# ░▓ author ▓ cirrus <[email protected]>
# ░▓ code ▓ https://gist.github.com/cirrusUK
# ░▓ mirror ▓ http://cirrus.turtil.net
# ░▓▓▓▓▓▓▓▓▓▓
# ░░░░░░░░░░
current_time="$(date "+%Y.%m.%d-%H.%M.%S")"
xterm -geometry 70x5+16+960 -e streamlink -o /mnt/INT2/video/output/$current_time.m2t "$1" low
exit
#!/bin/sh
#
## Script used in conjunction with the firefox 'open with' extension
## [https://github.com/darktrojan/openwith], for downloading videos via right click menu.
## using youtube-dl [https://github.com/rg3/youtube-dl]
## Edit line 16 to your desired download directory.
#
# ▓▓▓▓▓▓▓▓▓▓
# ░▓ author ▓ cirrus <[email protected]>
# ░▓ code ▓ https://gist.github.com/cirrusUK
# ░▓ mirror ▓ http://cirrus.turtil.net
# ░▓▓▓▓▓▓▓▓▓▓
# ░░░░░░░░░░
#
#
cd /home/cirrus/video/ytdl
youtube-dl "$1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment