fuck newline
This commit is contained in:
@@ -95,7 +95,7 @@ def get_video_info(link: str) -> CoubVideo:
|
||||
|
||||
info = get_json_from_page(data)
|
||||
try:
|
||||
title = link.split("/view/")[-1] + "_" + "".join(x for x in info.get('title') if (x.isalnum() or x in "._- "))
|
||||
title = link.split("/view/")[-1].replace('\n', '') + "_" + "".join(x for x in info.get('title') if (x.isalnum() or x in "._- "))
|
||||
video = info['file_versions']['html5']['video']
|
||||
video = video.get('higher') or video.get('high')
|
||||
audio = info['file_versions']['html5'].get('audio')
|
||||
|
||||
Reference in New Issue
Block a user