forked from emilsvennesson/script.module.inputstreamhelper
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
118 lines (97 loc) · 2.83 KB
/
config.py
File metadata and controls
118 lines (97 loc) · 2.83 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
# -*- coding: utf-8 -*-
# MIT License (see LICENSE.txt or https://opensource.org/licenses/MIT)
"""Configuration variables for inpustreamhelper"""
INPUTSTREAM_PROTOCOLS = {
'mpd': 'inputstream.adaptive',
'ism': 'inputstream.adaptive',
'hls': 'inputstream.adaptive',
'rtmp': 'inputstream.rtmp'
}
DRM_SCHEMES = {
'widevine': 'widevine',
'com.widevine.alpha': 'widevine'
}
WIDEVINE_CDM_FILENAME = {
'Android': None,
'Linux': 'libwidevinecdm.so',
'Windows': 'widevinecdm.dll',
'Darwin': 'libwidevinecdm.dylib',
'webOS': None
}
ARCH_MAP = {
'aarch64': 'arm64',
'aarch64_be': 'arm64',
'ARM64': 'arm64',
'AMD64': 'x86_64',
'armv7': 'arm',
'armv8': 'arm',
'i386': 'x86',
'i686': 'x86',
'x86': 'x86',
'x86_64': 'x86_64',
}
WIDEVINE_SUPPORTED_ARCHS = [
'x86_64',
'x86',
'arm',
'arm64'
]
WIDEVINE_ARCH_MAP_REPO = {
'x86_64': 'x64',
'x86': 'x86',
'arm64': 'arm64'
}
WIDEVINE_OS_MAP = {
'Linux': 'Linux',
'Windows': 'win',
'Darwin': 'mac'
}
WIDEVINE_SUPPORTED_OS = [
'Android',
'Linux',
'Windows',
'Darwin',
'webOS'
]
WIDEVINE_MINIMUM_KODI_VERSION = {
'Android': '18.0',
'Windows': '18.0',
'Linux': '18.0',
'Darwin': '18.0',
'webOS': '21.1'
}
WIDEVINE_LICENSE_FILE = 'LICENSE'
WIDEVINE_MANIFEST_FILE = 'manifest.json'
WIDEVINE_CONFIG_NAME = 'manifest.json'
CHROMEOS_RECOVERY_URL = 'https://dl.google.com/dl/edgedl/chromeos/recovery/recovery.json'
# To keep the Chrome OS ARM(64) hardware ID list up to date, the following resources can be used:
# https://www.chromium.org/chromium-os/developer-information-for-chrome-os-devices
# https://chromiumdash.appspot.com/serving-builds?deviceCategory=Chrome%20OS
# Last updated: 2025-12-29
# current Chrome OS version: 16433.65.0, Widevine version: 4.10.2662.3
CHROMEOS_RECOVERY_ARM_BNAMES = [
'bob', # no longer updated, still latest wv. last: https://dl.google.com/dl/edgedl/chromeos/recovery/chromeos_15509.81.0_bob_recovery_stable-channel_mp-v2.bin.zip
'kevin', # no longer updated, still latest wv. last: https://dl.google.com/dl/edgedl/chromeos/recovery/chromeos_15509.81.0_kevin_recovery_stable-channel_mp-v2.bin.zip
'scarlet', # no longer updated, still latest wv. last: https://dl.google.com/dl/edgedl/chromeos/recovery/chromeos_15509.81.0_scarlet_recovery_stable-channel_mp-v8.bin.zip
]
CHROMEOS_RECOVERY_ARM64_BNAMES = [
'asurada',
'cherry',
'corsola',
'elm',
'geralt',
'hana',
'jacuzzi',
'kukui',
'rauru',
'staryu',
'strongbad',
'trogdor',
]
CHROMEOS_BLOCK_SIZE = 512
MINIMUM_INPUTSTREAM_VERSION_ARM64 = {
'inputstream.adaptive': '20.3.5',
}
HLS_MINIMUM_IA_VERSION = '2.0.10'
ISSUE_URL = 'https://github.com/emilsvennesson/script.module.inputstreamhelper/issues'
SHORT_ISSUE_URL = 'https://git.io/JfKJb'