temporary disable video parser
This commit is contained in:
@@ -33,9 +33,9 @@ impl MediaExtractor {
|
||||
}
|
||||
|
||||
// Extract video URLs
|
||||
for capture in self.video_regex.find_iter(text) {
|
||||
urls.push(capture.as_str().to_string().into());
|
||||
}
|
||||
// for capture in self.video_regex.find_iter(text) {
|
||||
// urls.push(capture.as_str().to_string().into());
|
||||
// }
|
||||
|
||||
urls
|
||||
}
|
||||
@@ -48,7 +48,7 @@ impl MediaExtractor {
|
||||
result = self.image_regex.replace_all(&result, "").to_string();
|
||||
|
||||
// Remove video URLs
|
||||
result = self.video_regex.replace_all(&result, "").to_string();
|
||||
// result = self.video_regex.replace_all(&result, "").to_string();
|
||||
|
||||
// Clean up extra whitespace that might result from removal
|
||||
self.cleanup_text(&result)
|
||||
|
||||
Reference in New Issue
Block a user