biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / applications / video / kodi / addons / sendtokodi / use-packaged-yt-dlp.patch
blobb53e1a434fffc7666439188e280a8340129b7281
1 diff --git a/service.py b/service.py
2 index 024ad9a..6ef71dd 100644
3 --- a/service.py
4 +++ b/service.py
5 @@ -243,11 +243,8 @@ def playlistIndex(url, playlist):
8 # Use the chosen resolver while forcing to use youtube_dl on legacy python 2 systems (dlp is python 3.6+)
9 -if xbmcplugin.getSetting(int(sys.argv[1]),"resolver") == "0" or sys.version_info[0] == 2:
10 - from lib.youtube_dl import YoutubeDL
11 -else:
12 - from lib.yt_dlp import YoutubeDL
14 +from yt_dlp import YoutubeDL
16 # patch broken strptime (see above)
17 patch_strptime()