Skip to content

Instantly share code, notes, and snippets.

(function () {
'use strict';
var root = void 0;
try {
root = self;
} catch (e) {
try {
root = global;
} catch (e) {
@intact
intact / arconaitv.py
Last active July 13, 2017 21:16
Arconai Tv plugin for livestreamer
import re
from livestreamer.plugin import Plugin
from livestreamer.plugin.api import http
from livestreamer.plugin.api.utils import parse_json
from livestreamer.stream import HLSStream
_url_re = re.compile(r"https?://www\.arconaitv\.me/stream\.php\?id=\d+")
SOURCE_RE = re.compile(r'source +src="([^"]+)" ')
import re
from livestreamer.plugin import Plugin
from livestreamer.plugin.api import http
from livestreamer.stream import HLSStream
HLS_URL_FORMAT = "https://hls.goodgame.ru/hls/{0}{1}.m3u8"
QUALITIES = {
"1080p": "",
"720p": "_720",
@intact
intact / gcb-plugin.patch
Created October 23, 2016 18:55
gcb-plugin.patch
diff -upr a/git-changebar/src/gcb-plugin.c b/git-changebar/src/gcb-plugin.c
--- a/git-changebar/src/gcb-plugin.c 2016-07-10 10:22:27.000000000 +0200
+++ b/git-changebar/src/gcb-plugin.c 2016-10-23 20:42:58.000000000 +0200
@@ -419,20 +419,24 @@ worker_thread (gpointer data)
}
}
}
- if (! repo && git_repository_open_ext (&repo, path, 0, NULL) == 0) {
- if (git_repository_is_bare (repo)) {
- git_repository_free (repo);
import re
from livestreamer.plugin import Plugin
from livestreamer.plugin.api import http, validate
from livestreamer.plugin.api.utils import parse_json
from livestreamer.stream import (
HTTPStream, HLSStream
)
STATUS_ONLINE = 4
@intact
intact / daisuki.py
Last active November 5, 2017 09:30
Daisuki plugin for livestreamer
import base64
import json
import random
import re
import time
try:
from Crypto import Random
from Crypto.Cipher import AES, PKCS1_v1_5
from Crypto.PublicKey import RSA