mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-08-14.git
synced 2024-08-15 00:53:20 +00:00
Limit size of language request
This commit is contained in:
parent
1aef0d84cf
commit
909bb2be7f
1 changed files with 1 additions and 0 deletions
|
@ -267,6 +267,7 @@ def rank_videos(db, n, pool, filter)
|
|||
else
|
||||
description = XML.parse(video.description)
|
||||
content = [video.title, description.content].join(" ")
|
||||
content = content[0,1000]
|
||||
|
||||
results = DetectLanguage.detect(content)
|
||||
language = results[0].language
|
||||
|
|
Loading…
Reference in a new issue