Add tr to remove punctuation from show names on smartrss

This commit is contained in:
2024-02-27 21:48:46 +01:00
parent 1d6edf2a0a
commit bb72fd90e9
2 changed files with 15 additions and 2 deletions
+13
View File
@@ -1,6 +1,7 @@
{
config,
lib,
pkgs,
modulesPath,
...
}: {
@@ -48,5 +49,17 @@
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
boot.kernelParams = [
"i915.enable_guc=2"
];
hardware.opengl = {
enable = true;
extraPackages = with pkgs; [
intel-media-driver
intel-compute-runtime
];
};
system.stateVersion = "22.11";
}
+2 -2
View File
@@ -1,12 +1,12 @@
#!/usr/bin/env bash
set -e
name=$(guessit "$1" -P "title")
name=$(guessit "$1" -P "title" | tr -d "[:punct:]")
# curl -s 'http://localhost:3000/api/torrents' -b $(cat /var/lib/flood/flood.cookiefile) |
# jq '.torrents.[].directory' -r |
# sed s@/mnt/kyoo/shows/@@ |
ls /mnt/kyoo/shows/ | grep -qix "$name"
ls /mnt/kyoo/shows/ | tr -d "[:punct:]" | grep -qix "$name"
echo "Downloading $1"
exit 80