mirror of
https://github.com/R0m1k3/xtremobile.git
synced 2026-10-17 20:28:55 +02:00
debug
This commit is contained in:
1 parent
664e89f2b8
commit
51f73d102d
3 files changed
+90
-23
No files matched your search
@@ -14,7 +14,7 @@ class XtreamServiceMobile {
|
||||
|
||||
PlaylistConfig? _currentPlaylist;
|
||||
|
||||
XtreamServiceMobile() {
|
||||
XtreamServiceMobile(String cachePath) {
|
||||
_dio = Dio(BaseOptions(
|
||||
connectTimeout: const Duration(seconds: 15),
|
||||
receiveTimeout: const Duration(seconds: 15),
|
||||
@@ -22,7 +22,7 @@ class XtreamServiceMobile {
|
||||
|
||||
// Setup caching for API responses
|
||||
_cacheOptions = CacheOptions(
|
||||
store: HiveCacheStore('./cache'),
|
||||
store: HiveCacheStore(cachePath),
|
||||
policy: CachePolicy.forceCache,
|
||||
maxStale: const Duration(hours: 1),
|
||||
priority: CachePriority.high,
|
||||
|
||||
Reference in new issue
Block a user