Skip to content

Instantly share code, notes, and snippets.

View smhmd's full-sized avatar

simohamed smhmd

View GitHub Profile
@smhmd
smhmd / peerflix-hook.lua
Created June 12, 2019 02:30 — forked from ekisu/peerflix-hook.lua
A Lua user script for mpv that allows playing of magnet links, similar to the youtube-dl hook.
local utils = require 'mp.utils'
local msg = require 'mp.msg'
-- OPTIONS
local keep_file_after_streaming = false
local peerflix = {
path = "peerflix",
searched = false
}