diff --git a/backend/main.py b/backend/main.py
index 7519abe..15952e7 100644
--- a/backend/main.py
+++ b/backend/main.py
@@ -450,6 +450,104 @@ def resolve_video():
return jsonify(view_of(info))
+# The picture a page says it has, in the order worth trusting: the card the
+# page wants shared, then the one it declares to search engines, then the still
+# its own player shows before playing.
+_POSTER_META_RE = re.compile(
+ r''']+(?:property|name|itemprop)\s*=\s*["']?'''
+ r'''(og:image(?::url)?|twitter:image(?::src)?|thumbnailUrl)["']?[^>]*>''', re.I)
+_POSTER_CONTENT_RE = re.compile(r'''content\s*=\s*["']([^"']+)["']''', re.I)
+_POSTER_VIDEO_RE = re.compile(r'''