mirror of
https://github.com/Suxiaoqinx/Netease_url.git
synced 2026-10-04 19:08:05 +08:00
@@ -28,6 +28,9 @@ def parse_cookie(text: str):
|
|||||||
|
|
||||||
# 输入id选项
|
# 输入id选项
|
||||||
def ids(ids):
|
def ids(ids):
|
||||||
|
if '163cn.tv' in ids:
|
||||||
|
response = requests.get(ids, allow_redirects=False)
|
||||||
|
ids = response.headers.get('Location')
|
||||||
if 'music.163.com' in ids:
|
if 'music.163.com' in ids:
|
||||||
index = ids.find('id=') + 3
|
index = ids.find('id=') + 3
|
||||||
ids = ids[index:].split('&')[0]
|
ids = ids[index:].split('&')[0]
|
||||||
|
|||||||
Reference in New Issue
Block a user