refactor(update script): remove unused function
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-03-28 13:54:02 -04:00
parent 2f497101fa
commit 36c43bd675
2 changed files with 3 additions and 12 deletions

View file

@ -108,10 +108,10 @@
};
"ttv-lol-pro" = buildFirefoxXpiAddon {
pname = "ttv-lol-pro";
version = "2.3.5";
version = "2.3.6";
addonId = "{76ef94a4-e3d0-4c6f-961a-d38a429a332b}";
url = "https://addons.mozilla.org/firefox/downloads/file/4250478/ttv_lol_pro-2.3.5.xpi";
sha256 = "d8e91e81285271d41e3631072bd056e5a65b95158ce43c8cd9100ae2c414adcd";
url = "https://addons.mozilla.org/firefox/downloads/file/4252535/ttv_lol_pro-2.3.6.xpi";
sha256 = "5d9a5f4b4b4d46a39e9d6c9df28fc1d342a1af6d6389196c9c1bd0006036a647";
meta = with lib; {
homepage = "https://github.com/younesaassila/ttv-lol-pro";
description = "TTV LOL PRO removes most livestream ads from Twitch.";

View file

@ -1,19 +1,10 @@
#!/usr/bin/env bash
# Deps:
# - nurl
# - jq
# - mozilla-addons-to-nix
# - alejandra
parseNurl() {
REV=$(nurl -j "$1" | jq '.["args"].["rev"]')
HASH=$(nurl -j "$1" | jq '.["args"].["hash"]')
sed -i "s,rev = .*,rev = $REV;," "$2"
sed -i "s,hash = .*,hash = $HASH;," "$2"
}
parseFetchurl() {
URL="$1"
FILE="$2"