Skip to content

Commit

Permalink
feat(extv-api): Changed show to title to be more inline
Browse files Browse the repository at this point in the history
BREAKING CHANGE: show is renamed to title
  • Loading branch information
TriPSs committed Oct 16, 2020
1 parent fdd9d8e commit be47b0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/eztv-api/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -531,14 +531,14 @@ module.exports = class EztvApi {
const entry = $(this)
const href = entry.attr('href')

const show = entry.text()
const title = entry.text()
const id = parseInt(href.match(regex)[1], 10)

let slug = href.match(regex)[2]
slug = slug in EztvApi._slugMap ? EztvApi._slugMap[slug] : slug

return {
show,
title,
id,
slug,
}
Expand Down

0 comments on commit be47b0c

Please sign in to comment.