Skip to content

Instantly share code, notes, and snippets.

@MinePlayersPE
MinePlayersPE / vanced_adbinstall.py
Last active Mar 15, 2022
Python script to fetch APKs from the Vanced API and install them via ADB
View vanced_adbinstall.py
from tqdm import tqdm
from urllib.parse import urljoin
import json
import os
import sys
import requests
import subprocess
API_URL = 'https://api.vancedapp.com/api/v1'
session = requests.Session()
@MinePlayersPE
MinePlayersPE / __init__.py
Last active Jan 18, 2022
viu.com indonesian(?) yt-dlp extractor plugin
View __init__.py
# flake8: noqa
from .viu_ott_new import (
ViuOTTNewIE,
ViuOTTNewPlaylistIE,
)
@MinePlayersPE
MinePlayersPE / iq.py
Last active Jan 24, 2022
iq.com yt-dlp extractor plugin (OUTDATED, SEE IqIE IN https://github.com/yt-dlp/yt-dlp/blob/master/yt_dlp/extractor/iqiyi.py INSTEAD)
View iq.py
# coding: utf-8
from __future__ import unicode_literals
import base64
import json
import random
# ⚠ Don't use relative imports
from yt_dlp.extractor.common import InfoExtractor
from yt_dlp.extractor.openload import PhantomJSwrapper
@MinePlayersPE
MinePlayersPE / yt-transcript-to-vtt.js
Last active Nov 30, 2021
Converts YouTube video transcriptions (accessed via Innertube API (which has incredibly laxed rate-limiting) instead of /timedtext) to basic VTT (since afaik transcriptions don't contain any styling info, and is extremely spammy on certain custom YTT/SRV3 subtitled videos)
View yt-transcript-to-vtt.js
// non-atob base64 encoder from https://gist.github.com/jonleighton/958841
/*
MIT LICENSE
Copyright 2011 Jon Leighton
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT O
@MinePlayersPE
MinePlayersPE / tiktok.lua
Last active Jun 24, 2022
tiktok parser/loader for vlc
View tiktok.lua
-- warning: breaks easily because there are so many assumptions made here
-- it's already kinda half broken (randomly loading forever), no clue why
function probe()
return (vlc.access == "http" or vlc.access == "https")
and vlc.path:match("^www%.tiktok%.com/@[^/]+/video/(%d+)")
end
function parse()
local json = require("dkjson")
local aweme_id = vlc.path:match("^www%.tiktok%.com/@[^/]+/video/(%d+)");
-- workaround with less restrictive api
@MinePlayersPE
MinePlayersPE / proof.md
Last active Sep 29, 2021
keybase-proof
View proof.md

Keybase proof

I hereby claim:

  • I am mineplayerspe on github.
  • I am mineplayerspe (https://keybase.io/mineplayerspe) on keybase.
  • I have a public key ASAzwTRuVMDoeTEhbhGnYJZ0Hvf66WOkHcWH92sPkkFASwo

To claim this, I am signing this object:

View clientdump-1649214692.json
[
"UNKNOWN_INTERFACE",
"WEB",
"MWEB",
"ANDROID",
"IOS",
"TVHTML5",
"TVLITE",
"TVANDROID",
"XBOX",
View tvri.m3u
#EXTM3U
#EXTINF:-1 tvg-name="TVRI Bali" tvg-logo="http://staging.tvri.go.id/assets/img_gallery/daerah/tvribali.png" group-title="Bali",TVRI Bali
http://wpc.d1627.nucdn.net:80/80D1627/o-tvri/Content/HLS/Live/Channel(TVRIBALI)/index.m3u8
#EXTINF:-1 tvg-name="TVRI Nusa Tenggara Barat" tvg-logo="http://staging.tvri.go.id/assets/img_gallery/daerah/18.png" group-title="Bali",TVRI Nusa Tenggara Barat
http://wpc.d1627.nucdn.net:80/80D1627/o-tvri/Content/HLS/Live/Channel(TVRINTBMATARAM)/index.m3u8
#EXTINF:-1 tvg-name="TVRI Nusa Tenggara Timur" tvg-logo="http://staging.tvri.go.id/assets/img_gallery/daerah/19.png" group-title="Bali",TVRI Nusa Tenggara Timur
http://wpc.d1627.nucdn.net:80/80D1627/o-tvri/Content/HLS/Live/Channel(TVRINTTKUPANG)/index.m3u8
#EXTINF:-1 tvg-name="TVRI Jawa Barat" tvg-logo="http://staging.tvri.go.id/assets/img_gallery/daerah/8.png" group-title="Jawa",TVRI Jawa Barat
http://wpc.d1627.nucdn.net:80/80D1627/o-tvri/Content/HLS/Live/Channel(TVRIJABARBANDUNG)/index.m3u8
#EXTINF:-1 tvg-name="TVRI Jawa T