Skip to content

Commit

Permalink
Instagram: include query parameters in thumbnail URL
Browse files Browse the repository at this point in the history
Retrieval now fails without them with an error stating: 'Bad URL timestamp'

Fixes #30
  • Loading branch information
ArthurHoaro committed Feb 22, 2021
1 parent 39bfd4f commit ddea4a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WebThumbnailer/resources/rules.json
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@
"hotlink_allowed": true
},
"rules": {
"image_regex": "<meta property=\"og:image\" content=\"(.*?)(?:\\?.*?)?\"",
"image_regex": "<meta property=\"og:image\" content=\"(.*?)\"",
"thumbnail_url": "${1}"
}
},
Expand Down

0 comments on commit ddea4a2

Please sign in to comment.