Skip to content

Commit

Permalink
fix(media-provider): ensure publisher is not a boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Mar 9, 2023
1 parent 0f62ae9 commit aa891d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/metascraper-media-provider/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const getAuthor = ({ uploader, creator, uploader_id: uploaderId }) =>
find([creator, uploader, uploaderId], str => authorFn(str))

const getPublisher = ({ extractor, extractor_key: extractorKey }) =>
extractor !== 'generic' && publisher(extractorKey)
extractor !== 'generic' ? publisher(extractorKey) : undefined

const getLang = ({ language, http_headers: headers = {} }) =>
lang(language || headers['Accept-Language'])
Expand Down

0 comments on commit aa891d1

Please sign in to comment.