mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-11 09:30:06 -04:00
Fix EPG for programme-tv.net
Changed names of things to grab (moved from singleBroadcastCard to mainBroadcastCard, check https://www.programme-tv.net/programme/chaine/programme-tf1-19.html)
This commit is contained in:
parent
5a15473244
commit
02b96fb409
1 changed files with 4 additions and 4 deletions
|
@ -34,22 +34,22 @@ module.exports = {
|
||||||
const broadcastCards = dom.window.document.querySelectorAll('.singleBroadcastCard')
|
const broadcastCards = dom.window.document.querySelectorAll('.singleBroadcastCard')
|
||||||
broadcastCards.forEach(card => {
|
broadcastCards.forEach(card => {
|
||||||
const hour = (
|
const hour = (
|
||||||
card.getElementsByClassName('singleBroadcastCard-hour')[0] || { textContent: '' }
|
card.getElementsByClassName('mainBroadcastCard-startingHour')[0] || { textContent: '' }
|
||||||
).textContent
|
).textContent
|
||||||
.toString()
|
.toString()
|
||||||
.trim()
|
.trim()
|
||||||
const durationContent = (
|
const durationContent = (
|
||||||
card.getElementsByClassName('singleBroadcastCard-durationContent')[0] || { textContent: '' }
|
card.getElementsByClassName('mainBroadcastCard-durationContent')[0] || { textContent: '' }
|
||||||
).textContent
|
).textContent
|
||||||
.toString()
|
.toString()
|
||||||
.trim()
|
.trim()
|
||||||
const title = (
|
const title = (
|
||||||
card.getElementsByClassName('singleBroadcastCard-title')[0] || { textContent: '' }
|
card.getElementsByClassName('mainBroadcastCard-title')[0] || { textContent: '' }
|
||||||
).textContent
|
).textContent
|
||||||
.toString()
|
.toString()
|
||||||
.trim()
|
.trim()
|
||||||
const category = (
|
const category = (
|
||||||
card.getElementsByClassName('singleBroadcastCard-genre')[0] || { textContent: '' }
|
card.getElementsByClassName('mainBroadcastCard-genre')[0] || { textContent: '' }
|
||||||
).textContent
|
).textContent
|
||||||
.toString()
|
.toString()
|
||||||
.trim()
|
.trim()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue