From a1d875745302aceb082e07a8070e1f11616a775d Mon Sep 17 00:00:00 2001 From: Kfir Dayan Date: Wed, 29 Mar 2023 10:47:36 +0300 Subject: [PATCH] remove ignore from .ics for testing --- .gitignore | 1 - maccabi-haifa-fc.ics | 91 ++++++++++++++++++++++++++++++++++++++++++++ src/index.ts | 4 -- 3 files changed, 91 insertions(+), 5 deletions(-) create mode 100644 maccabi-haifa-fc.ics diff --git a/.gitignore b/.gitignore index 312d486..b05ac72 100644 --- a/.gitignore +++ b/.gitignore @@ -13,4 +13,3 @@ tmp config/client_google_auth.json ## output ## -*.ics \ No newline at end of file diff --git a/maccabi-haifa-fc.ics b/maccabi-haifa-fc.ics new file mode 100644 index 0000000..e376679 --- /dev/null +++ b/maccabi-haifa-fc.ics @@ -0,0 +1,91 @@ +BEGIN:VCALENDAR +VERSION:2.0 +CALSCALE:GREGORIAN +PRODID:https://mhaifafc.com/ +METHOD:PUBLISH +X-PUBLISHED-TTL:PT1H +BEGIN:VEVENT +UID:cba9cb6a-56ae-4730-ba62-b98032e7767a +SUMMARY:Maccabi Haifa F.C. +DTSTAMP:20230329T074644Z +DTSTART:20230401T170000Z +DTEND:20230401T190000Z +DESCRIPTION:Maccabi Haifa vs. H Be'er Sheva +URL:https://mhaifafc.com/ +LOCATION:Sammy Ofer Stadium +STATUS:CONFIRMED +CATEGORIES: +ORGANIZER;CN=Maccabi Haifa F.C. +X-MICROSOFT-CDO-BUSYSTATUS:BUSY +END:VEVENT +BEGIN:VEVENT +UID:cba9cb6a-56ae-4730-ba62-b98032e7767a +SUMMARY:Maccabi Haifa F.C. +DTSTAMP:20230329T074644Z +DTSTART:20230404T173000Z +DTEND:20230404T193000Z +DESCRIPTION:Maccabi Tel aviv vs. Maccabi Haifa +URL:https://mhaifafc.com/ +LOCATION:Sammy Ofer Stadium +STATUS:CONFIRMED +CATEGORIES: +ORGANIZER;CN=Maccabi Haifa F.C. +X-MICROSOFT-CDO-BUSYSTATUS:BUSY +END:VEVENT +BEGIN:VEVENT +UID:cba9cb6a-56ae-4730-ba62-b98032e7767a +SUMMARY:Maccabi Haifa F.C. +DTSTAMP:20230329T074644Z +DTSTART:20230408T170000Z +DTEND:20230408T190000Z +DESCRIPTION:Maccabi Haifa vs. Maccabi Netanya +URL:https://mhaifafc.com/ +LOCATION:Sammy Ofer Stadium +STATUS:CONFIRMED +CATEGORIES: +ORGANIZER;CN=Maccabi Haifa F.C. +X-MICROSOFT-CDO-BUSYSTATUS:BUSY +END:VEVENT +BEGIN:VEVENT +UID:cba9cb6a-56ae-4730-ba62-b98032e7767a +SUMMARY:Maccabi Haifa F.C. +DTSTAMP:20230329T074644Z +DTSTART:20230415T153000Z +DTEND:20230415T173000Z +DESCRIPTION:Hapoel Jerusalem vs. Maccabi Haifa +URL:https://mhaifafc.com/ +LOCATION:Sammy Ofer Stadium +STATUS:CONFIRMED +CATEGORIES: +ORGANIZER;CN=Maccabi Haifa F.C. +X-MICROSOFT-CDO-BUSYSTATUS:BUSY +END:VEVENT +BEGIN:VEVENT +UID:cba9cb6a-56ae-4730-ba62-b98032e7767a +SUMMARY:Maccabi Haifa F.C. +DTSTAMP:20230329T074644Z +DTSTART:20230423T173000Z +DTEND:20230423T193000Z +DESCRIPTION:F.C Ashdod vs. Maccabi Haifa +URL:https://mhaifafc.com/ +LOCATION:Sammy Ofer Stadium +STATUS:CONFIRMED +CATEGORIES: +ORGANIZER;CN=Maccabi Haifa F.C. +X-MICROSOFT-CDO-BUSYSTATUS:BUSY +END:VEVENT +BEGIN:VEVENT +UID:cba9cb6a-56ae-4730-ba62-b98032e7767a +SUMMARY:Maccabi Haifa F.C. +DTSTAMP:20230329T074644Z +DTSTART:20230501T173000Z +DTEND:20230501T193000Z +DESCRIPTION:H Be'er Sheva vs. Maccabi Haifa +URL:https://mhaifafc.com/ +LOCATION:Sammy Ofer Stadium +STATUS:CONFIRMED +CATEGORIES: +ORGANIZER;CN=Maccabi Haifa F.C. +X-MICROSOFT-CDO-BUSYSTATUS:BUSY +END:VEVENT +END:VCALENDAR diff --git a/src/index.ts b/src/index.ts index 71be826..6651904 100644 --- a/src/index.ts +++ b/src/index.ts @@ -33,13 +33,9 @@ const app = new App(); const start = async () => { const outputFileLocation = 'maccabi-haifa-fc.ics'; - console.info("START APP!") const games = await app.gameSource.getGamesFromHaifa(); - console.info("NEW GAMES FOUND!") const icsEvents = app.ics.generateIcsOutputFromGames(games); - console.info("NEW ICS EVENTS GENERATED!" ) fs.writeFileSync(outputFileLocation, icsEvents); - console.log("ICS FILE GENERATED In: " + outputFileLocation) } start(); \ No newline at end of file