We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 315ce05 commit 41cb50bCopy full SHA for 41cb50b
tuho.py
@@ -11,7 +11,7 @@ def __init__(self, rid):
11
12
def get_real_url(self):
13
with requests.Session() as s:
14
- res = s.get('https://www.tuho.tv/' + str(self.rid)).text
+ res = s.get(f'https://www.tuho.tv/{self.rid}').text
15
flv = re.search(r'videoPlayFlv":"(https[\s\S]+?flv)', res)
16
if flv:
17
status = re.search(r'isPlaying\s:\s(\w+),', res).group(1)
0 commit comments