Skip to content

Commit

Permalink
Improve logo detection
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Sep 18, 2017
1 parent 108e79c commit 3040379
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion __snapshots__/index.js.snap-shot
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ exports['et-tech 1'] = {
"description": "Dell speaks about the complexities of engineering the biggest acquisition in tech history, Dell’s future bets and why he continues to remain bullish..",
"favicon": "http://b2bstatic.iimg.in/Themes/Release/images/tech-favicon.ico",
"image": "http://economictimes.indiatimes.com/photo/michael-dell-on-complexities-involved-in-pulling-off-the-biggest-tech-acquisition-dell-s-future-bets-more/52424992.cms",
"logo": "http://b2bstatic.iimg.in/Themes/Release/images/responsive/tech-logo-footer.png",
"logo": "http://b2bstatic.iimg.in/Themes/Release/images/responsive/tech-logo-square.jpg",
"publisher": "ETtech.com",
"title": "Michael Dell on complexities involved in pulling off the biggest tech acquisition, Dell’s future bets & more | ETtech",
"url": "http://tech.economictimes.indiatimes.com/news/corporate/michael-dell-biggest-tech-acquisition-future-bets/52424992"
Expand Down
1 change: 1 addition & 0 deletions src/get-data/rules/logo.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const wrap = rule => (htmlDom, baseUrl) => {
module.exports = [
wrap($ => $('meta[property="og:logo"]').attr('content')),
wrap($ => $('meta[itemprop="logo"]').attr('content')),
wrap($ => $('img[itemprop="logo"]').attr('src')),
wrap($ => $('img[src*="logo"]').attr('src')),
wrap($ => $('img[class*="logo"]').attr('src'))
]
1 change: 0 additions & 1 deletion test/mocha.opts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@
--reporter list
--timeout 120000
--slow 300
--bail
--recursive

0 comments on commit 3040379

Please sign in to comment.