Skip to content

Commit

Permalink
Fix LA Times
Browse files Browse the repository at this point in the history
  • Loading branch information
mrichards42 committed Dec 15, 2023
1 parent d5762ac commit 3a222c1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/download/default_sources.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ return {
local picker = assert(curl.get("https://cdn4.amuselabs.com/lat/date-picker?style=1&embed=1&heightReduction=30&set=latimes"))
local param_str = picker:match("pickerParams.rawsps%s*=%s*'([^']+)'")
if not param_str then
return "Unable to find puzzle"
param_str = picker:match('"rawsps"%s*:%s*"([^"]+)"')
if not param_str then
return "Unable to find puzzle"
end
end
local params = json.to_value(base64.decode(param_str))
Expand Down

0 comments on commit 3a222c1

Please sign in to comment.