Add 'sort_by' to /api/v1/comments

This commit is contained in:
Omar Roth
2019-04-03 18:42:12 -05:00
parent f6615a490d
commit 5ef288b840
4 changed files with 143 additions and 19 deletions

View File

@@ -608,14 +608,6 @@ def extract_player_config(body, html)
params["session_token"] = md["session_token"]
end
if md = body.match(/itct=(?<itct>[^"]+)"/)
params["itct"] = md["itct"]
end
if md = body.match(/'COMMENTS_TOKEN': "(?<ctoken>[^"]+)"/)
params["ctoken"] = md["ctoken"]
end
if md = body.match(/'RELATED_PLAYER_ARGS': (?<rvs>{"rvs":"[^"]+"})/)
params["rvs"] = JSON.parse(md["rvs"])["rvs"].as_s
end