mirror of
https://github.com/zoriya/flake.git
synced 2026-05-29 09:22:32 +00:00
Add tr to remove punctuation from show names on smartrss
This commit is contained in:
@@ -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";
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user