Skip to content

Commit 19a7ea4

Browse files
committed
Version 1.6.18
Session: Update EAPI login header (#67)
1 parent 81e0726 commit 19a7ea4

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

pyncm/__init__.py

+6-4
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"""
3535
__VERSION_MAJOR__ = 1
3636
__VERSION_MINOR__ = 6
37-
__VERSION_PATCH__ = 17
37+
__VERSION_PATCH__ = 18
3838

3939
__version__ = "%s.%s.%s" % (__VERSION_MAJOR__, __VERSION_MINOR__, __VERSION_PATCH__)
4040

@@ -119,10 +119,12 @@ def __init__(self, *a, **k):
119119
"Referer": self.HOST,
120120
}
121121
self.login_info = {"success": False, "tick": time(), "content": None}
122+
# https://gitlab.com/Binaryify/neteasecloudmusicapi/-/blob/main/util/request.js?ref_type=heads
122123
self.eapi_config = {
123-
"os": "ios",
124-
"appver": "9.0.0",
125-
"osver": "",
124+
"os": "iPhone OS",
125+
"appver": "10.0.0",
126+
"osver": "16.2",
127+
"channel": "distribution",
126128
"deviceId": DEVICE_ID_DEFAULT,
127129
}
128130
self.csrf_token = ""

0 commit comments

Comments
 (0)