Update app.py
Browse files
app.py
CHANGED
@@ -447,7 +447,7 @@ def extract_video_info(video_url: str) -> str:
|
|
447 |
})
|
448 |
title = json_response.get('title')
|
449 |
logger.info(title)
|
450 |
-
if "pornhub.com" in video_url:
|
451 |
# Remove special characters using a regular expression
|
452 |
title = re.sub(r'[^a-zA-Z0-9\s]', '', title)
|
453 |
# Replace multiple spaces with a single space
|
@@ -459,7 +459,8 @@ def extract_video_info(video_url: str) -> str:
|
|
459 |
p_result = process_url(title)
|
460 |
return p_result
|
461 |
else:
|
462 |
-
|
|
|
463 |
else:
|
464 |
return {"error": "No formats available"}
|
465 |
else:
|
|
|
447 |
})
|
448 |
title = json_response.get('title')
|
449 |
logger.info(title)
|
450 |
+
'''if "pornhub.com" in video_url:
|
451 |
# Remove special characters using a regular expression
|
452 |
title = re.sub(r'[^a-zA-Z0-9\s]', '', title)
|
453 |
# Replace multiple spaces with a single space
|
|
|
459 |
p_result = process_url(title)
|
460 |
return p_result
|
461 |
else:
|
462 |
+
'''
|
463 |
+
return result
|
464 |
else:
|
465 |
return {"error": "No formats available"}
|
466 |
else:
|