[packages/griffith] use requests_cache if available
glen
glen at pld-linux.org
Sun Jun 5 14:53:43 CEST 2016
commit 8a0f2423e2e482c81bb413ce908a2165f4c8dda7
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sun Jun 5 15:53:27 2016 +0300
use requests_cache if available
Kodi.py | 7 +++++++
1 file changed, 7 insertions(+)
---
diff --git a/Kodi.py b/Kodi.py
index 85e7957..0e8078d 100644
--- a/Kodi.py
+++ b/Kodi.py
@@ -91,6 +91,13 @@ class ImportPlugin(IP):
self.edit = False
self.tempfiles = TempFileCleanup()
+ # try requests cache if available
+ try:
+ import requests_cache
+ requests_cache.install_cache('kodi_cache')
+ except:
+ pass
+
return True
def set_source(self, name):
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/griffith.git/commitdiff/8a0f2423e2e482c81bb413ce908a2165f4c8dda7
More information about the pld-cvs-commit
mailing list