about summary refs log tree commit diff
path: root/pkgs/applications/video/kodi/addons/upnext/default.nix
blob: dccfce4c3f0f6d261da7652894e2b3592df4a6e1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ lib, rel, buildKodiAddon, fetchzip, addonUpdateScript }:

buildKodiAddon rec {
  pname = "upnext";
  namespace = "service.upnext";
  version = "1.1.9+matrix.1";

  src = fetchzip {
    url = "https://mirrors.kodi.tv/addons/${lib.toLower rel}/${namespace}/${namespace}-${version}.zip";
    sha256 = "sha256-oNUk80MEzK6Qssn1KjT6psPTazISRoUif1IMo+BKJxo=";
  };

  passthru = {
    pythonPath = "resources/lib";
    updateScript = addonUpdateScript {
      attrPath = "kodi.packages.upnext";
    };
  };

  meta = with lib; {
    homepage = "https://github.com/im85288/service.upnext";
    description = "Up Next - Proposes to play the next episode automatically";
    license = licenses.gpl2Only;
    maintainers = teams.kodi.members;
  };
}