This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3.8 | |
############################################################################## | |
### NZBGET SCAN SCRIPT ### | |
# | |
# Scans filename of incoming NZBs for embedded passwords. | |
# | |
############################################################################## | |
### OPTIONS ### | |
# The RegEx to match the password in the filename. | |
#regex=(.*)\{\{(.*)\}\}.nzb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* rgbArrayToHex */ | |
function rgbToHex(rgb) { | |
return "#" + (1 << 24 | rgb[0] << 16 | rgb[1] << 8 | rgb[2]).toString(16).slice(1); | |
} | |
/* request variables to object | |
https://stackoverflow.com/a/21152762/86145 | |
*/ | |
var qd = {}; | |
if (location.search) location.search.substr(1).split("&").forEach(function(item) {var s = item.split("="), k = s[0], v = s[1] && decodeURIComponent(s[1]); (qd[k] = qd[k] || []).push(v)}) |