remove unnecessary items from mata-tag canditates for getting URL info

This commit is contained in:
jiftechnify
2024-03-25 23:53:00 +09:00
parent d0aa7430ca
commit 042579ddfb
@@ -48,48 +48,24 @@ private const val ATTRIBUTE_VALUE_HTTP_EQUIV = "http-equiv"
private val META_X_TITLE = private val META_X_TITLE =
arrayOf( arrayOf(
"og:title", "og:title",
"\"og:title\"",
"'og:title'",
"name",
"\"name\"",
"'name'",
"twitter:title", "twitter:title",
"\"twitter:title\"",
"'twitter:title'",
"title", "title",
"\"title\"",
"'title'",
) )
// for <meta itemprop=... to get description // for <meta itemprop=... to get description
private val META_X_DESCRIPTION = private val META_X_DESCRIPTION =
arrayOf( arrayOf(
"og:description", "og:description",
"\"og:description\"",
"'og:description'",
"description",
"\"description\"",
"'description'",
"twitter:description", "twitter:description",
"\"twitter:description\"",
"'twitter:description'",
"description", "description",
"\"description\"",
"'description'",
) )
// for <meta itemprop=... to get image // for <meta itemprop=... to get image
private val META_X_IMAGE = private val META_X_IMAGE =
arrayOf( arrayOf(
"og:image", "og:image",
"\"og:image\"",
"'og:image'",
"image",
"\"image\"",
"'image'",
"twitter:image", "twitter:image",
"\"twitter:image\"", "image",
"'twitter:image'",
) )
private const val CONTENT = "content" private const val CONTENT = "content"