fix get_number_of_videos_channel
This commit is contained in:
parent
9123d9a6cf
commit
a0c33c621e
@ -150,7 +150,8 @@ def get_number_of_videos_channel(channel_id):
|
||||
|
||||
response = response.decode('utf-8')
|
||||
|
||||
match = re.search(r'"numVideosText":\s*{\s*"runs":\s*\[{"text":\s*"([\d,]*) videos"', response)
|
||||
# match = re.search(r'"numVideosText":\s*{\s*"runs":\s*\[{"text":\s*"([\d,]*) videos"', response)
|
||||
match = re.search(r'"numVideosText".*?([,\d]+)', response)
|
||||
if match:
|
||||
return int(match.group(1).replace(',',''))
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user