|
|
@ -576,6 +576,8 @@ export const monoschinosInfo = async (
|
|
|
|
|
|
|
|
|
|
|
|
if (!extraInfo.aired.to) {
|
|
|
|
if (!extraInfo.aired.to) {
|
|
|
|
if (airDay.hasOwnProperty(extraInfo.broadcast)) {
|
|
|
|
if (airDay.hasOwnProperty(extraInfo.broadcast)) {
|
|
|
|
|
|
|
|
console.log(broadCastDate.getDay(), airDay[extraInfo.broadcast]);
|
|
|
|
|
|
|
|
if (broadCastDate.getDay() < airDay[extraInfo.broadcast]) {
|
|
|
|
for (
|
|
|
|
for (
|
|
|
|
let i = broadCastDate.getDay();
|
|
|
|
let i = broadCastDate.getDay();
|
|
|
|
i < airDay[extraInfo.broadcast];
|
|
|
|
i < airDay[extraInfo.broadcast];
|
|
|
@ -583,6 +585,20 @@ export const monoschinosInfo = async (
|
|
|
|
) {
|
|
|
|
) {
|
|
|
|
broadCastDate.setDate(broadCastDate.getDate() + 1);
|
|
|
|
broadCastDate.setDate(broadCastDate.getDate() + 1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
let counter = broadCastDate.getDay() + 1;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Adding one because of the day */
|
|
|
|
|
|
|
|
broadCastDate.setDate(broadCastDate.getDate() + 1);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
while (counter !== airDay[extraInfo.broadcast]) {
|
|
|
|
|
|
|
|
if (counter === 7) {
|
|
|
|
|
|
|
|
counter = 0;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
broadCastDate.setDate(broadCastDate.getDate() + 1);
|
|
|
|
|
|
|
|
counter++;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
dd = broadCastDate.getDate();
|
|
|
|
dd = broadCastDate.getDate();
|
|
|
|
mm =
|
|
|
|
mm =
|
|
|
|