File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,8 @@ module.exports = async function (originalUrl) {
54
54
meta : {
55
55
language : '' ,
56
56
title : '' ,
57
- description : ''
57
+ description : '' ,
58
+ isRtaLabel : false
58
59
} ,
59
60
vueVersion : null ,
60
61
hasSSR : false , // default
@@ -121,6 +122,11 @@ module.exports = async function (originalUrl) {
121
122
infos . meta . description = await page . $eval ( 'head > meta[property="og:description"]' , element => element . content ) . catch ( ( ) => '' )
122
123
}
123
124
125
+ const rtaLabel = await page . $eval ( 'head > meta[name="RATING"]' , element => element . content ) . catch ( ( ) => '' )
126
+ if ( rtaLabel . trim ( ) === 'RTA-5042-1996-1400-1577-RTA' ) {
127
+ infos . meta . isRtaLabel = true
128
+ }
129
+
124
130
// Get page language
125
131
const matches = html . match ( new RegExp ( '<html[^>]*[: ]lang="([a-z]{2}((-|_)[A-Z]{2})?)"' , 'i' ) ) ;
126
132
if ( matches && matches . length ) {
You can’t perform that action at this time.
0 commit comments