File tree Expand file tree Collapse file tree 4 files changed +7845
-6
lines changed Expand file tree Collapse file tree 4 files changed +7845
-6
lines changed Original file line number Diff line number Diff line change @@ -63,10 +63,21 @@ module.exports = [
63
63
wrap ( $ => $ ( '[itemprop*="author"] [itemprop="name"]' ) . first ( ) . text ( ) ) ,
64
64
wrap ( $ => $ ( '[itemprop*="author"]' ) . first ( ) . text ( ) ) ,
65
65
wrap ( $ => $ ( 'meta[property="book:author"]' ) . attr ( 'content' ) ) ,
66
- strict ( wrap ( $ => $ ( 'a[class*="author"]' ) . text ( ) ) ) ,
66
+ strict ( wrap ( $ => $ ( 'a[class*="author"]' ) . first ( ) . text ( ) ) ) ,
67
67
strict ( wrap ( $ => $ ( '[class*="author"] a' ) . first ( ) . text ( ) ) ) ,
68
- strict ( wrap ( $ => $ ( 'a[href*="/author/"]' ) . first ( ) . text ( ) ) ) ,
69
- strict ( wrap ( $ => $ ( 'a[href*="/author/"]' ) . text ( ) ) ) ,
70
- strict ( wrap ( $ => $ ( '[class*="author"]' ) . text ( ) ) ) ,
71
- strict ( wrap ( $ => $ ( '[class*="byline"]' ) . text ( ) ) )
68
+
69
+ strict ( wrap ( $ => $ ( 'a[href*="/author/"]' )
70
+ . filter ( ( i , el ) => $ ( el ) . text ( ) . trim ( ) )
71
+ . first ( )
72
+ . text ( )
73
+ ) ) ,
74
+
75
+ strict ( wrap ( $ => $ ( '[class*="author"]' ) . first ( ) . text ( ) ) ) ,
76
+ strict ( wrap ( $ => $ ( '[class*="byline"]' ) . first ( ) . text ( ) ) ) ,
77
+
78
+ wrap ( $ => $ ( '.fullname' )
79
+ . filter ( ( i , el ) => $ ( el ) . text ( ) . trim ( ) )
80
+ . first ( )
81
+ . text ( )
82
+ )
72
83
]
Original file line number Diff line number Diff line change @@ -53,5 +53,6 @@ module.exports = [
53
53
wrap ( $ => $ ( '[class*="date"]' ) . text ( ) ) ,
54
54
wrap ( $ => $ ( '[id*="date"]' ) . text ( ) ) ,
55
55
wrap ( $ => $ ( '[class*="post-timestamp"]' ) . text ( ) ) ,
56
- wrap ( $ => $ ( '[class*="post-meta"]' ) . text ( ) )
56
+ wrap ( $ => $ ( '[class*="post-meta"]' ) . text ( ) ) ,
57
+ wrap ( $ => $ ( '[class*="metadata"]' ) . text ( ) )
57
58
]
You can’t perform that action at this time.
0 commit comments