Substitute youtube links in description for local links

pull/3/head
Omar Roth 2018-03-03 15:27:14 -06:00
rodzic 323d27a5f6
commit b8fe82a7f7
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -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)