Skip to content
This repository has been archived by the owner on Nov 13, 2019. It is now read-only.

Fix friday bug at EH #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions menus/eisernehand.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,13 @@ module.exports = {
}
if (!error) {
var $ = cheerio.load(html);
var r = $(`#av_section_2 > div > div > div > div `).text().replace(/\n\s*/g, '\n').trim().split(/Montag|Dienstag|Mittwoch|Donnerstag|Freitag/);
r = r[day]

var r = $(`#av_section_2 > div > div > div > div `).text().replace(/\n\s*/g, '\n').trim().split(/Montag|Dienstag|Mittwoch|Donnerstag/);
var friday = $(`#after_section_2 > div > div > div > div `).text().replace(/\n\s*/g, '\n').trim().split(/Freitag/)[1];
friday = friday.substr(0,friday.indexOf('Unser'));
r.push(friday);

r = r[day];

//console.log(typeof(r));
//console.log(r);
//console.log("-------------------------");
Expand Down