@@ -14,9 +14,12 @@ import { JSDOM } from "jsdom";
14
14
import { DequeuedJob , Runner } from "liteque" ;
15
15
import metascraper from "metascraper" ;
16
16
import metascraperAmazon from "metascraper-amazon" ;
17
+ import metascraperAuthor from "metascraper-author" ;
18
+ import metascraperDate from "metascraper-date" ;
17
19
import metascraperDescription from "metascraper-description" ;
18
20
import metascraperImage from "metascraper-image" ;
19
21
import metascraperLogo from "metascraper-logo-favicon" ;
22
+ import metascraperPublisher from "metascraper-publisher" ;
20
23
import metascraperReadability from "metascraper-readability" ;
21
24
import metascraperTitle from "metascraper-title" ;
22
25
import metascraperTwitter from "metascraper-twitter" ;
@@ -61,8 +64,11 @@ import {
61
64
import { BookmarkTypes } from "@hoarder/shared/types/bookmarks" ;
62
65
63
66
const metascraperParser = metascraper ( [
67
+ metascraperDate ( ) ,
64
68
metascraperAmazon ( ) ,
65
69
metascraperReadability ( ) ,
70
+ metascraperAuthor ( ) ,
71
+ metascraperPublisher ( ) ,
66
72
metascraperTitle ( ) ,
67
73
metascraperDescription ( ) ,
68
74
metascraperTwitter ( ) ,
@@ -677,6 +683,10 @@ async function crawlAndParseUrl(
677
683
htmlContent : readableContent ?. content ,
678
684
crawledAt : new Date ( ) ,
679
685
crawlStatusCode : statusCode ,
686
+ author : meta . author ,
687
+ publisher : meta . publisher ,
688
+ datePublished : meta . datePublished ,
689
+ dateModified : meta . dateModified ,
680
690
} )
681
691
. where ( eq ( bookmarkLinks . id , bookmarkId ) ) ;
682
692
0 commit comments