mirror of
https://github.com/zoriya/flake.git
synced 2026-06-05 11:39:51 +00:00
Add tr to remove punctuation from show names on smartrss
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
lib,
|
lib,
|
||||||
|
pkgs,
|
||||||
modulesPath,
|
modulesPath,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
@@ -48,5 +49,17 @@
|
|||||||
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
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";
|
system.stateVersion = "22.11";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -e
|
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) |
|
# curl -s 'http://localhost:3000/api/torrents' -b $(cat /var/lib/flood/flood.cookiefile) |
|
||||||
# jq '.torrents.[].directory' -r |
|
# jq '.torrents.[].directory' -r |
|
||||||
# sed s@/mnt/kyoo/shows/@@ |
|
# 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"
|
echo "Downloading $1"
|
||||||
exit 80
|
exit 80
|
||||||
|
|||||||
Reference in New Issue
Block a user