Skip to content

Commit 41cb50b

Browse files
committed
🎨 Improve 星光直播
-优化代码
1 parent 315ce05 commit 41cb50b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tuho.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def __init__(self, rid):
1111

1212
def get_real_url(self):
1313
with requests.Session() as s:
14-
res = s.get('https://www.tuho.tv/' + str(self.rid)).text
14+
res = s.get(f'https://www.tuho.tv/{self.rid}').text
1515
flv = re.search(r'videoPlayFlv":"(https[\s\S]+?flv)', res)
1616
if flv:
1717
status = re.search(r'isPlaying\s:\s(\w+),', res).group(1)

0 commit comments

Comments
 (0)