mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-08-14.git
synced 2024-08-15 00:53:20 +00:00
Substitute youtube links in description for local links
This commit is contained in:
parent
323d27a5f6
commit
b8fe82a7f7
1 changed files with 1 additions and 0 deletions
|
@ -133,6 +133,7 @@ def fetch_video(id, client)
|
|||
|
||||
description = html.xpath_node(%q(//p[@id="eow-description"]))
|
||||
description = description ? description.to_xml : ""
|
||||
description = description.gsub(/(https:\/\/)|(http:\/\/)?(www\.)?(youtube\.com)/, "")
|
||||
|
||||
wilson_score = ci_lower_bound(likes, likes + dislikes)
|
||||
|
||||
|
|
Loading…
Reference in a new issue