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

View file

@ -1,19 +1,10 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Deps: # Deps:
# - nurl
# - jq # - jq
# - mozilla-addons-to-nix # - mozilla-addons-to-nix
# - alejandra # - 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() { parseFetchurl() {
URL="$1" URL="$1"
FILE="$2" FILE="$2"