kodi.packages.youtube: refactor to fetch from GitHub
Refactor kodi.packages.youtube to fetch sources from GitHub instead of using the official Kodi addons repository. Newer versions of the addon are not released (yet) on the official addon repository, whereas older versions of the addon don't work properly anymore with YouTube. The only resulting difference between old and new version is an additional README.md file: $ diff -r result-old result-new Only in result-new/share/kodi/addons/plugin.video.youtube: README.md Other than that, this refactoring is a no-op change and will allow us to upgrade the addon to newer versions more readily.
This commit is contained in:
parent
cf813b03db
commit
011eb16003
1 changed files with 6 additions and 7 deletions
|
@ -1,13 +1,15 @@
|
|||
{ lib, buildKodiAddon, fetchzip, addonUpdateScript, six, requests, infotagger, inputstreamhelper }:
|
||||
{ lib, buildKodiAddon, fetchFromGitHub, six, requests, infotagger, inputstreamhelper }:
|
||||
|
||||
buildKodiAddon rec {
|
||||
pname = "youtube";
|
||||
namespace = "plugin.video.youtube";
|
||||
version = "7.0.1";
|
||||
|
||||
src = fetchzip {
|
||||
url = "https://mirrors.kodi.tv/addons/nexus/${namespace}/${namespace}-${version}.zip";
|
||||
sha256 = "sha256-Wdju7d2kFX0V1J1TB75qEVq0UWN2xYYFNlD8UTt1New=";
|
||||
src = fetchFromGitHub {
|
||||
owner = "anxdpanic";
|
||||
repo = "plugin.video.youtube";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-BHCVui+enKFH3elz6DovXMDxMQx/2+/BrIw3KQr9TfE=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
@ -19,9 +21,6 @@ buildKodiAddon rec {
|
|||
|
||||
passthru = {
|
||||
pythonPath = "resources/lib";
|
||||
updateScript = addonUpdateScript {
|
||||
attrPath = "kodi.packages.youtube";
|
||||
};
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
|
|
Loading…
Reference in a new issue