Skip to content

Commit

Permalink
Merge pull request #572 from DIYgod/master
Browse files Browse the repository at this point in the history
[pull] master from diygod:master
  • Loading branch information
pull[bot] authored Nov 14, 2022
2 parents d3d1425 + 7b478e1 commit f9c97c3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion lib/v2/gov/shanghai/yjj/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@ module.exports = async (ctx) => {

const content = cheerio.load(detailResponse.data);

const pubDate = content('meta[name="pubdate"]').attr('content') || content('meta[name="PubDate"]').attr('content');

item.description = content('#ivs_content').html();
item.pubDate = timezone(parseDate(content('meta[name="pubdate"]').attr('content')), +8);
item.pubDate = timezone(parseDate(pubDate, ['YYYY-MM-DD HH:mm:ss', 'YYYY-MM-DD HH:mm']), +8);
} catch (e) {
// no-empty
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
"puppeteer-extra": "3.3.4",
"puppeteer-extra-plugin-stealth": "2.11.1",
"query-string": "7.1.1",
"rand-user-agent": "1.0.89",
"rand-user-agent": "1.0.90",
"re2": "1.17.7",
"require-all": "3.0.0",
"rss-parser": "3.12.0",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11584,10 +11584,10 @@ ramda@^0.26.1:
resolved "https://registry.yarnpkg.com/ramda/-/ramda-0.26.1.tgz#8d41351eb8111c55353617fc3bbffad8e4d35d06"
integrity sha512-hLWjpy7EnsDBb0p+Z3B7rPi3GDeRG5ZtiI33kJhTt+ORCd38AbAIjB/9zRIUoeTbE/AVX5ZkU7m6bznsvrf8eQ==

[email protected].89:
version "1.0.89"
resolved "https://registry.yarnpkg.com/rand-user-agent/-/rand-user-agent-1.0.89.tgz#b73758bde2346aa6db714d30988e5685b9be431b"
integrity sha512-S/JezSrKoPkQlfJj8zQMPtQlZufHGEIm/9/LQIViZILyFsMfDLrowMDuBNDl6qRnP/wJ0ATkLDYcP6H2/z6qzg==
[email protected].90:
version "1.0.90"
resolved "https://registry.yarnpkg.com/rand-user-agent/-/rand-user-agent-1.0.90.tgz#f9dba5495526f2319b20460a2d303ed7ae8ef5ec"
integrity sha512-nFr2KF1/FkquNHVCSl8jDl7SNy/Hzij1mPZc4emBjt4RpXMkn+xYk0qxLyfuyA9je6FMH+1zZGp7gSZMj5mTRg==

[email protected]:
version "0.4.6"
Expand Down

1 comment on commit f9c97c3

@vercel
Copy link

@vercel vercel bot commented on f9c97c3 Nov 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.