Skip to content

Commit f6e3c5e

Browse files
Add ARM support
1 parent 807c9a6 commit f6e3c5e

File tree

3 files changed

+288
-74
lines changed

3 files changed

+288
-74
lines changed

lib/config.py

Lines changed: 25 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,30 @@
1010
'com.widevine.alpha': 'widevine'
1111
}
1212

13-
ARCHS = {
13+
CDM_EXTENSIONS = (
14+
'.so',
15+
'.dll',
16+
'.dylib'
17+
)
18+
19+
X86_MAP = {
1420
'x86_64': 'x86_64',
1521
'AMD64': 'x86_64',
1622
'x86': 'x86',
1723
'i386': 'x86',
1824
'i686': 'x86'
1925
}
2026

21-
WIDEVINE_ARCH_MAP = {
27+
WIDEVINE_SUPPORTED_ARCHS = [
28+
'x86_64',
29+
'x86',
30+
'armv7',
31+
'armv8',
32+
'aarch64',
33+
'aarch64_be'
34+
]
35+
36+
WIDEVINE_ARCH_MAP_X86 = {
2237
'x86_64':
2338
{
2439
'Linux': 'x64',
@@ -39,38 +54,12 @@
3954
'Darwin': 'mac'
4055
}
4156

42-
WIDEVINE_CDM_EXTENSIONS = (
43-
'.so',
44-
'.dll',
45-
'.dylib'
46-
)
47-
48-
WIDEVINE_SUPPORTED_ARCHS = [
49-
'x86_64',
50-
'x86',
51-
'aarch64',
52-
'aarch64_be',
53-
'armv7',
54-
'armv7l'
55-
'armv8',
56-
'arm64'
57-
]
58-
5957
WIDEVINE_SUPPORTED_OS = [
6058
'Linux',
6159
'Windows',
6260
'Darwin'
6361
]
6462

65-
WIDEVINE_DOWNLOAD_UNAVAILABLE = [
66-
'aarch64',
67-
'aarch64_be',
68-
'armv7',
69-
'armv7l'
70-
'armv8',
71-
'arm64'
72-
]
73-
7463
WIDEVINE_ANDROID_MINIMUM_KODI_VERSION = '18.0'
7564

7665
WIDEVINE_MINIMUM_KODI_VERSION = '17.4'
@@ -79,4 +68,12 @@
7968

8069
WIDEVINE_DOWNLOAD_URL = 'https://dl.google.com/widevine-cdm/{0}-{1}-{2}.zip'
8170

71+
CHROMEOS_RECOVERY_CONF = 'https://dl.google.com/dl/edgedl/chromeos/recovery/recovery.conf'
72+
73+
CHROMEOS_ARM_HWID = 'SPRING'
74+
75+
CHROMEOS_BLOCK_SIZE = 512
76+
77+
LOOP_DEV = '/dev/loop1'
78+
8279
HLS_MINIMUM_IA_VERSION = '2.0.10'

0 commit comments

Comments
 (0)