Skip to content

Commit

Permalink
Merge pull request #7 from mechanixmandia/master
Browse files Browse the repository at this point in the history
Add podcast date.

Thank you! @mechanixmandia
  • Loading branch information
EdgarVaguencia authored Sep 3, 2022
2 parents 55a43d8 + f68ebe7 commit 314bb1f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ module.exports = {
const imgSmall = cheerio(el).find('img.mini')
const urlSmall = new URL(imgSmall.attr('data-src'))
const title = cheerio(el).find('.content p').has('a').children()
const date = cheerio(el).find('.date').attr('title')
if (self.type === 1) {
const author = cheerio(el).find('div.wrapper a')
const category = cheerio(el).find('div.content a.rounded-label')
Expand All @@ -76,6 +77,7 @@ module.exports = {
title: title.attr('title'),
author: author.attr('title'),
category: category.attr('title'),
date,
link: title.attr('href'),
file: `http://ivoox.com/listen_mn_${fileLink}_1.mp3`
})
Expand Down

0 comments on commit 314bb1f

Please sign in to comment.