diff --git a/.gitignore b/.gitignore index a6693eac..34d14dc9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ node_modules/ -logs/ \ No newline at end of file +logs/ +guide.xml \ No newline at end of file diff --git a/README.md b/README.md index 11abd2bd..f5767e3a 100644 --- a/README.md +++ b/README.md @@ -66,8 +66,8 @@ To load a program guide, all you need to do is copy the link to one or more of t 🇩🇯 Djibouti121https://iptv-org.github.io/epg/guides/dj/dstv.com.epg.xml🟢 🇩🇴 Dominican Republic60https://iptv-org.github.io/epg/guides/do/gatotv.com.epg.xml🟢 🇪🇨 Ecuador45https://iptv-org.github.io/epg/guides/ec/gatotv.com.epg.xml🟢 - 🇪🇬 Egypt108https://iptv-org.github.io/epg/guides/eg-ar/elcinema.com.epg.xml🔴 - 108https://iptv-org.github.io/epg/guides/eg-en/elcinema.com.epg.xml🔴 + 🇪🇬 Egypt108https://iptv-org.github.io/epg/guides/eg-ar/elcinema.com.epg.xml🟡 + 108https://iptv-org.github.io/epg/guides/eg-en/elcinema.com.epg.xml🟡 99https://iptv-org.github.io/epg/guides/eg/osn.com.epg.xml🟢 🇸🇻 El Salvador52https://iptv-org.github.io/epg/guides/sv/gatotv.com.epg.xml🟢 12https://iptv-org.github.io/epg/guides/sv/mi.tv.epg.xml🟢 @@ -91,7 +91,7 @@ To load a program guide, all you need to do is copy the link to one or more of t 🇬🇪 Georgia117https://iptv-org.github.io/epg/guides/ge/magticom.ge.epg.xml🟢 🇩🇪 Germany122https://iptv-org.github.io/epg/guides/de/hd-plus.de.epg.xml🟢 🇬🇭 Ghana139https://iptv-org.github.io/epg/guides/gh/dstv.com.epg.xml🟢 - 🇬🇷 Greece86https://iptv-org.github.io/epg/guides/gr/cosmote.gr.epg.xml🟢 + 🇬🇷 Greece86https://iptv-org.github.io/epg/guides/gr/cosmote.gr.epg.xml🟡 🇬🇱 Greenland1https://iptv-org.github.io/epg/guides/gl/knr.gl.epg.xml🟢 🇬🇵 Guadeloupe128https://iptv-org.github.io/epg/guides/gp/canalplus-caraibes.com.epg.xml🟢 🇬🇺 Guam1https://iptv-org.github.io/epg/guides/gu/pbsguam.org.epg.xml🟢 @@ -113,11 +113,11 @@ To load a program guide, all you need to do is copy the link to one or more of t 🇮🇶 Iraq99https://iptv-org.github.io/epg/guides/iq/osn.com.epg.xml🟢 🇮🇪 Ireland3https://iptv-org.github.io/epg/guides/ie/ontvtonight.com.epg.xml🟢 🇮🇹 Italy145https://iptv-org.github.io/epg/guides/it/guidatv.sky.it.epg.xml🟢 - 15https://iptv-org.github.io/epg/guides/it/mediaset.it.epg.xml🟢 + 15https://iptv-org.github.io/epg/guides/it/mediaset.it.epg.xml🟡 🇯🇴 Jordan99https://iptv-org.github.io/epg/guides/jo/osn.com.epg.xml🟢 🇰🇿 Kazakhstan8https://iptv-org.github.io/epg/guides/kz/tv.yandex.ru.epg.xml🟢 🇰🇪 Kenya151https://iptv-org.github.io/epg/guides/ke/dstv.com.epg.xml🟢 - 🇽🇰 Kosovo26https://iptv-org.github.io/epg/guides/xk/tvim.tv.epg.xml🟢 + 🇽🇰 Kosovo26https://iptv-org.github.io/epg/guides/xk/tvim.tv.epg.xml🟡 🇰🇼 Kuwait99https://iptv-org.github.io/epg/guides/kw/osn.com.epg.xml🟢 🇱🇻 Latvia21https://iptv-org.github.io/epg/guides/lv/tv.lv.epg.xml🟢 🇱🇧 Lebanon99https://iptv-org.github.io/epg/guides/lb/osn.com.epg.xml🟢 @@ -178,7 +178,7 @@ To load a program guide, all you need to do is copy the link to one or more of t 🇸🇪 Sweden87https://iptv-org.github.io/epg/guides/se/allente.se.epg.xml🟢 🇸🇹 São Tomé & Príncipe128https://iptv-org.github.io/epg/guides/st/dstv.com.epg.xml🟢 🇹🇿 Tanzania30https://iptv-org.github.io/epg/guides/tz/dstv.com.epg.xml🟢 - 🇹🇭 Thailand81https://iptv-org.github.io/epg/guides/th/tv.trueid.net.epg.xml🟡 + 🇹🇭 Thailand81https://iptv-org.github.io/epg/guides/th/tv.trueid.net.epg.xml🟢 🇹🇬 Togo137https://iptv-org.github.io/epg/guides/tg/dstv.com.epg.xml🟢 🇹🇷 Turkey145https://iptv-org.github.io/epg/guides/tr/tvplus.com.tr.epg.xml🟢 118https://iptv-org.github.io/epg/guides/tr/digiturk.com.tr.epg.xml🟢 @@ -186,9 +186,9 @@ To load a program guide, all you need to do is copy the link to one or more of t 🇺🇬 Uganda151https://iptv-org.github.io/epg/guides/ug/dstv.com.epg.xml🟢 🇺🇦 Ukraine114https://iptv-org.github.io/epg/guides/ua/tvgid.ua.epg.xml🟢 🇦🇪 United Arab Emirates99https://iptv-org.github.io/epg/guides/ae/osn.com.epg.xml🟢 - 17https://iptv-org.github.io/epg/guides/ae/mbc.net.epg.xml🟢 + 17https://iptv-org.github.io/epg/guides/ae/mbc.net.epg.xml🔴 🇬🇧 United Kingdom97https://iptv-org.github.io/epg/guides/uk/ontvtonight.com.epg.xml🟢 - 91https://iptv-org.github.io/epg/guides/uk/sky.com.epg.xml🟢 + 92https://iptv-org.github.io/epg/guides/uk/sky.com.epg.xml🟢 🇺🇸 United States880https://iptv-org.github.io/epg/guides/us/tvtv.us.epg.xml🟢 374https://iptv-org.github.io/epg/guides/us/directv.com.epg.xml🟡 88https://iptv-org.github.io/epg/guides/us/tvguide.com.epg.xml🟢 @@ -198,7 +198,7 @@ To load a program guide, all you need to do is copy the link to one or more of t 🇾🇪 Yemen99https://iptv-org.github.io/epg/guides/ye/osn.com.epg.xml🟢 🇿🇲 Zambia136https://iptv-org.github.io/epg/guides/zm/dstv.com.epg.xml🟢 4https://iptv-org.github.io/epg/guides/zm/znbc.co.zm.epg.xml🟢 - 🇿🇼 Zimbabwe130https://iptv-org.github.io/epg/guides/zw/dstv.com.epg.xml🟢 + 🇿🇼 Zimbabwe130https://iptv-org.github.io/epg/guides/zw/dstv.com.epg.xml🟡 @@ -220,7 +220,7 @@ To load a program guide, all you need to do is copy the link to one or more of t  Delaware17https://iptv-org.github.io/epg/guides/us-de/tvtv.us.epg.xml🟢  District Of Columbia42https://iptv-org.github.io/epg/guides/us-dc/tvtv.us.epg.xml🟢  Florida503https://iptv-org.github.io/epg/guides/us-fl/tvtv.us.epg.xml🟢 -  Georgia217https://iptv-org.github.io/epg/guides/us-ga/tvtv.us.epg.xml🟢 +  Georgia217https://iptv-org.github.io/epg/guides/us-ga/tvtv.us.epg.xml🟡  Hawaii55https://iptv-org.github.io/epg/guides/us-hi/tvtv.us.epg.xml🟢  Idaho151https://iptv-org.github.io/epg/guides/us-id/tvtv.us.epg.xml🟢  Illinois197https://iptv-org.github.io/epg/guides/us-il/tvtv.us.epg.xml🟢 @@ -233,7 +233,7 @@ To load a program guide, all you need to do is copy the link to one or more of t  Maryland59https://iptv-org.github.io/epg/guides/us-md/tvtv.us.epg.xml🟢  Massachusetts71https://iptv-org.github.io/epg/guides/us-ma/tvtv.us.epg.xml🟢  Michigan269https://iptv-org.github.io/epg/guides/us-mi/tvtv.us.epg.xml🟢 -  Minnesota175https://iptv-org.github.io/epg/guides/us-mn/tvtv.us.epg.xml🟡 +  Minnesota175https://iptv-org.github.io/epg/guides/us-mn/tvtv.us.epg.xml🟢  Mississippi130https://iptv-org.github.io/epg/guides/us-ms/tvtv.us.epg.xml🟢  Missouri230https://iptv-org.github.io/epg/guides/us-mo/tvtv.us.epg.xml🟢  Montana137https://iptv-org.github.io/epg/guides/us-mt/tvtv.us.epg.xml🟢 @@ -251,7 +251,7 @@ To load a program guide, all you need to do is copy the link to one or more of t  Pennsylvania284https://iptv-org.github.io/epg/guides/us-pa/tvtv.us.epg.xml🟢  Puerto Rico14https://iptv-org.github.io/epg/guides/us-pr/tvtv.us.epg.xml🟢 7https://iptv-org.github.io/epg/guides/us-pr/gatotv.com.epg.xml🟢 - 1https://iptv-org.github.io/epg/guides/us-pr/directv.com.epg.xml🟢 + 1https://iptv-org.github.io/epg/guides/us-pr/directv.com.epg.xml🟡  Rhode Island27https://iptv-org.github.io/epg/guides/us-ri/tvtv.us.epg.xml🟢  South Carolina166https://iptv-org.github.io/epg/guides/us-sc/tvtv.us.epg.xml🟢  South Dakota53https://iptv-org.github.io/epg/guides/us-sd/tvtv.us.epg.xml🟢 diff --git a/sites/allente.se/allente.se_se.channels.xml b/sites/allente.se/allente.se_se.channels.xml index 64a64a4c..b95b7c6c 100644 --- a/sites/allente.se/allente.se_se.channels.xml +++ b/sites/allente.se/allente.se_se.channels.xml @@ -13,6 +13,8 @@ C More Hockey C More Live C More Live 2 + C More Live 3 + C More Live 4 C More Series C More Stars CNBC Europe @@ -89,4 +91,4 @@ V Sport Ultra HD V Sport Vinter - \ No newline at end of file + diff --git a/sites/dsmart.com.tr/dsmart.com.tr.config.js b/sites/dsmart.com.tr/dsmart.com.tr.config.js index 11d96f55..7c0c87ab 100644 --- a/sites/dsmart.com.tr/dsmart.com.tr.config.js +++ b/sites/dsmart.com.tr/dsmart.com.tr.config.js @@ -6,9 +6,7 @@ dayjs.extend(utc) module.exports = { site: 'dsmart.com.tr', url({ date, channel }) { - const [page] = channel.site_id.split('#') - - return `https://www.dsmart.com.tr/api/v1/public/epg/schedules?page=${page}&limit=1&day=${date.format( + return `https://www.dsmart.com.tr/api/v1/public/epg/schedules?page=1&limit=500&day=${date.format( 'YYYY-MM-DD' )}` }, @@ -52,9 +50,8 @@ function parseStop(item, date) { function parseContent(content, channel) { const data = JSON.parse(content) if (!data || !data.data || !Array.isArray(data.data.channels)) return null - const [_, channelId] = channel.site_id.split('#') - return data.data.channels.find(i => i.ch_no == channelId) + return data.data.channels.find(i => i._id == channel.site_id) } function parseItems(content, channel) { diff --git a/sites/dsmart.com.tr/dsmart.com.tr.test.js b/sites/dsmart.com.tr/dsmart.com.tr.test.js index 8e26ace5..5753f2e1 100644 --- a/sites/dsmart.com.tr/dsmart.com.tr.test.js +++ b/sites/dsmart.com.tr/dsmart.com.tr.test.js @@ -1,4 +1,4 @@ -// npx epg-grabber --config=sites/dsmart.com.tr/dsmart.com.tr.config.js --channels=sites/dsmart.com.tr/dsmart.com.tr_tr.channels.xml --output=.gh-pages/guides/tr/dsmart.com.tr.epg.xml --days=2 +// npx epg-grabber --config=sites/dsmart.com.tr/dsmart.com.tr.config.js --channels=sites/dsmart.com.tr/dsmart.com.tr_tr.channels.xml --output=guide.xml --timeout=30000 --days=2 const { parser, url, logo } = require('./dsmart.com.tr.config.js') const dayjs = require('dayjs') @@ -9,14 +9,14 @@ dayjs.extend(utc) const date = dayjs.utc('2021-11-06', 'YYYY-MM-DD').startOf('d') const channel = { - site_id: '1#1', + site_id: '58d29bb0eefad3db9c606290', xmltv_id: 'MovieSmartPremium.tr' } const content = `{"meta": {"code": 200, "message": "OK"}, "data": {"total": 200, "channels": [{"rating": 3, "ch_id": 805, "logo": "59f97253cfef0b75f4723ded", "ch_no": 1, "is_hd": true, "genre": [1, 2], "packages": ["58cfc9c7e138237a591f9a61", "58cfc9c7e138237a591f9a62", "58cfc9c7e138237a591f9a5f", "58cfc9c7e138237a591f9a60"], "slug": "moviesmart-premium", "hd": true, "_id": "58d29bb0eefad3db9c606290", "order": 1, "channel_name": "MovieSmart Premium", "description": "", "schedule": [{"actor": "", "year": "2015", "id": "60488f69cfef0b15935d70d7", "subject": "Goosebumps: Canavarlar Firarda (Goosebumps) T\\u00fcr: Komedi - Macera Y\\u00f6netmen: Rob Letterman Oyuncular: Jack Black, Dylan Minnette, Odeya Rush", "audio_subtitles": 3, "start_date": "2021-11-03T21:15:00Z", "channel": "58d29bb0eefad3db9c606290", "description": "B\\u00fcy\\u00fck \\u015fehirden k\\u00fc\\u00e7\\u00fck bir kasabaya ta\\u015f\\u0131nd\\u0131\\u011f\\u0131 i\\u00e7in mutsuz olan Zach Cooper, ta\\u015f\\u0131nd\\u0131klar\\u0131 evin tam yan\\u0131ndaki evde ya\\u015fayan g\\u00fczel k\\u0131z Hannah ile kar\\u015f\\u0131la\\u015f\\u0131p, Champ ile de k\\u0131sa s\\u00fcrede arkada\\u015f olunca yeni bir hayat i\\u00e7in umutlan\\u0131r. Ancak Zach, Hannah'n\\u0131n gizemli babas\\u0131n\\u0131n Goosebumps kitaplar\\u0131n\\u0131n yazar\\u0131, R.L. Stine oldu\\u011funu \\u00f6\\u011frendi\\u011finde, olaylar\\u0131n normal gitmeyece\\u011fini anlar. (Dil:T\\u00fcrk\\u00e7e/Orijinal - Altyaz\\u0131:T\\u00fcrk\\u00e7e/\\u0130ngilizce)", "director": "", "end_date": "2021-11-03T23:55:00Z", "genre": "sinema/genel", "program_name": "Goosebumps: Canavarlar Firarda", "day": "2021-11-05T21:00:00Z", "episode": "", "screen_violence": 4, "_id": "6185a3f6cfef0b1593e44e63", "duration": "1:40:00"},{"actor": "", "year": "2015", "id": "60488f69cfef0b15935d70d7", "subject": "Goosebumps: Canavarlar Firarda (Goosebumps) T\\u00fcr: Komedi - Macera Y\\u00f6netmen: Rob Letterman Oyuncular: Jack Black, Dylan Minnette, Odeya Rush", "audio_subtitles": 3, "start_date": "2021-11-03T23:55:00Z", "channel": "58d29bb0eefad3db9c606290", "description": "B\\u00fcy\\u00fck \\u015fehirden k\\u00fc\\u00e7\\u00fck bir kasabaya ta\\u015f\\u0131nd\\u0131\\u011f\\u0131 i\\u00e7in mutsuz olan Zach Cooper, ta\\u015f\\u0131nd\\u0131klar\\u0131 evin tam yan\\u0131ndaki evde ya\\u015fayan g\\u00fczel k\\u0131z Hannah ile kar\\u015f\\u0131la\\u015f\\u0131p, Champ ile de k\\u0131sa s\\u00fcrede arkada\\u015f olunca yeni bir hayat i\\u00e7in umutlan\\u0131r. Ancak Zach, Hannah'n\\u0131n gizemli babas\\u0131n\\u0131n Goosebumps kitaplar\\u0131n\\u0131n yazar\\u0131, R.L. Stine oldu\\u011funu \\u00f6\\u011frendi\\u011finde, olaylar\\u0131n normal gitmeyece\\u011fini anlar. (Dil:T\\u00fcrk\\u00e7e/Orijinal - Altyaz\\u0131:T\\u00fcrk\\u00e7e/\\u0130ngilizce)", "director": "", "end_date": "2021-11-03T01:55:00Z", "genre": "sinema/genel", "program_name": "Goosebumps: Canavarlar Firarda", "day": "2021-11-05T21:00:00Z", "episode": "", "screen_violence": 4, "_id": "6185a3f6cfef0b1593e44e63", "duration": "1:40:00"}]}]}}` it('can generate valid url', () => { expect(url({ date, channel })).toBe( - 'https://www.dsmart.com.tr/api/v1/public/epg/schedules?page=1&limit=1&day=2021-11-06' + 'https://www.dsmart.com.tr/api/v1/public/epg/schedules?page=1&limit=500&day=2021-11-06' ) }) diff --git a/sites/dsmart.com.tr/dsmart.com.tr_tr.channels.xml b/sites/dsmart.com.tr/dsmart.com.tr_tr.channels.xml index 77504c22..92e45c06 100644 --- a/sites/dsmart.com.tr/dsmart.com.tr_tr.channels.xml +++ b/sites/dsmart.com.tr/dsmart.com.tr_tr.channels.xml @@ -1,104 +1,110 @@ - 24 Kitchen Türkiye - 24 TV - 360 - A Haber - A News - A Spor - ATV Türkiye - Baby TV Europe - BBC Earth Türkiye - BBC World News Europe - BBN Türk - Beyaz TV - Bloomberg HT - Boomerang Türkiye - Cartoon Network Türkiye - CNN International Europe - CNN Türk - Çocuk Smart - Da Vinci - Discovery Channel Türkiye - Discovery Science Türkiye - Disney Channel Türkiye - Disney Junior Türkiye & Polska - Diyanet TV - DiziSmart Max - DiziSmart Premium - DMAX Türkiye - DocuBox HD - Euro D - Eurosport 1 - Eurosport 2 - FashionTV HD Europe - Fast & FunBox HD - FB TV - FightBox HD - FilmBox Türkiye - Flash TV - Fox Crime Türkiye - Fox Türkiye - FX Türkiye - Haber Global - Habertürk - Insight HD - Kanal 7 - Kanal D - Lider TV - Love Nature - MovieSmart Classic - MovieSmart Premium - MovieSmart Premium 2 - MovieSmart Türk - National Geographic Türkiye - National Geographic Wild Türkiye - NBA TV - NTV - Number 1 Türk - Number 1 TV - Power TV - Show TV - Sinema 2 - Sinema 1001 - Sinema 1002 - Sinema Aile - Sinema Aile 2 - Sinema Aksiyon - Sinema Aksiyon 2 - Sinema Komedi - Sinema Komedi 2 - Sinema TV - Spor Smart - Spor Smart 2 - S Sport - S Sport 2 - Star TV - Stingray Naturescape - Teve 2 - TGRT Haber - The History Channel Turkey - TLC Türkiye - TMB - Trace Urban - TRT 1 - TRT 2 - TRT 4K - TRT Avaz - TRT Belgesel - TRT Haber - TRT Kurdî - TRT Müzik - TRT Spor Yildiz - TRT Türk - TV 4 - TV 8 - TV 100 - TV Net - UçanKus TV - Ülke TV - Vav TV - Viasat History HD + 24 Kitchen Türkiye + 24 TV + 360 + A Haber + A News + A Spor + ATV Türkiye + Baby TV Europe + BBC Earth Türkiye + BBC World News Europe + Beyaz TV + Bloomberg HT + Boomerang Türkiye + Cartoon Network Türkiye + CNN International Europe + CNN Türk + Çocuk Smart + Da Vinci + Discovery Channel Türkiye + Discovery Science Türkiye + Disney Channel Türkiye + Disney Junior Türkiye & Polska + Diyanet TV + DiziSmart Max + DiziSmart Premium + DMAX Türkiye + DocuBox HD + Euro D + Eurosport 1 + Eurosport 2 + FashionTV HD Europe + Fast & FunBox HD + FB TV + FightBox HD + FilmBox Türkiye + Flash TV + Fox Crime Türkiye + Fox Türkiye + FX Türkiye + Haber Global + Habertürk + Halk TV + Insight HD + Kanal 7 + Kanal D + Lider TV + Love Nature + MovieSmart Classic + MovieSmart Premium + MovieSmart Premium 2 + MovieSmart Türk + National Geographic Türkiye + National Geographic Wild Türkiye + NBA TV + NTV + Number 1 Türk + Number 1 TV + Power TV + Show TV + Sinema 1001 + Sinema 1002 + Sinema 2 + Sinema Aile + Sinema Aile 2 + Sinema Aksiyon + Sinema Aksiyon 2 + Sinema Komedi + Sinema Komedi 2 + Sinema TV + Spor Smart + Spor Smart 2 + S Sport + S Sport 2 + Star TV + Stingray Naturescape + TAY TV + Tele 1 + Teve 2 + TGRT Haber + The History Channel Turkey + TLC Türkiye + TMB + Trace Urban + TRT 1 + TRT 2 + TRT 3 + TRT 4K + TRT Avaz + TRT Belgesel + TRT Çocuk + TRT Haber + TRT Kurdî + TRT Müzik + TRT Spor + TRT Spor Yildiz + TRT Türk + TV 100 + TV 4 + TV 8 + TV 8.5 + TV Net + UçanKus TV + Ülke TV + Vav TV + Viasat History HD diff --git a/sites/elcinema.com/elcinema.com.config.js b/sites/elcinema.com/elcinema.com.config.js index efcfdc7c..eaef7489 100644 --- a/sites/elcinema.com/elcinema.com.config.js +++ b/sites/elcinema.com/elcinema.com.config.js @@ -105,10 +105,15 @@ function parseDescription(item) { function parseItems(content, channel, date) { const $ = cheerio.load(content) - const dateString = date.locale(channel.lang).format('dddd D MMMM') + + const dateString = date.locale(channel.lang).format('dddd D MMMM') + const list = $('.dates') .filter((i, el) => { - return $(el).text().trim() === dateString + let parsedDateString = $(el).text().trim() + parsedDateString = parsedDateString.replace(/\s\s+/g, ' ') + + return parsedDateString === dateString }) .first() .parent() diff --git a/sites/elcinema.com/elcinema.com.test.js b/sites/elcinema.com/elcinema.com.test.js index 7fe1109c..848faf09 100644 --- a/sites/elcinema.com/elcinema.com.test.js +++ b/sites/elcinema.com/elcinema.com.test.js @@ -19,8 +19,8 @@ const channelEN = { site_id: '1127', xmltv_id: 'MBC.ae' } -const contentAR = `
الخميس 11 نوفمبر
  • 12:30 مساءً
  • [30 دقيقة]
  • يعيد برنامج (أحلى ما طاش) عرضا لمجموعة من أفضل الحلقات التي...اقرأ المزيد تم تقديمها من خلال المسلسل الكوميدي السعودي (طاش ما طاش)، والذي استمر عرضه على التليفزيون السعودي لمدة 18 موسمًا متواصلًا، والتي ناقش من خلالها (ناصر القصبي) و(عبدالله السدحان) مجموعة من القضايا الاجتماعية التي تشغل بال المجتمع السعودي بطريقة ساخرة.
الجمعة 12 نوفمبر
  • يوميات موسم الرياض 2021
  • 12:00 صباحًا [15 دقيقة]
` -const contentEN = `
Thursday 11 November
  • 10:00 AM
  • [120 minutes]
` +const contentAR = `
الخميس 11 نوفمبر
  • 12:30 مساءً
  • [30 دقيقة]
  • يعيد برنامج (أحلى ما طاش) عرضا لمجموعة من أفضل الحلقات التي...اقرأ المزيد تم تقديمها من خلال المسلسل الكوميدي السعودي (طاش ما طاش)، والذي استمر عرضه على التليفزيون السعودي لمدة 18 موسمًا متواصلًا، والتي ناقش من خلالها (ناصر القصبي) و(عبدالله السدحان) مجموعة من القضايا الاجتماعية التي تشغل بال المجتمع السعودي بطريقة ساخرة.
الجمعة 12 نوفمبر
  • يوميات موسم الرياض 2021
  • 12:00 صباحًا [15 دقيقة]
` +const contentEN = `
Thursday 11 November
  • 10:00 AM
  • [120 minutes]
` it('can generate valid url', () => { expect(url({ channel: channelEN })).toBe('https://elcinema.com/en/tvguide/1127/') diff --git a/sites/osn.com/osn.com.config.js b/sites/osn.com/osn.com.config.js index 28c68b45..506f6517 100644 --- a/sites/osn.com/osn.com.config.js +++ b/sites/osn.com/osn.com.config.js @@ -9,6 +9,10 @@ module.exports = { site: 'osn.com', request: { method: 'POST', + headers: { + 'Content-Type': 'application/json; charset=UTF-8', + Referer: 'https://www.osn.com' + }, data({ channel, date }) { const [selectedCountry, channelCode] = channel.site_id.split('#') return { @@ -37,8 +41,8 @@ module.exports = { const duration = parseDuration(item) const stop = start.add(duration, 'm') programs.push({ - title: item.Arab_Title, - category: item.GenreArabicName, + title: parseTitle(item, channel), + category: parseCategory(item, channel), start: start.toString(), stop: stop.toString() }) @@ -48,6 +52,14 @@ module.exports = { } } +function parseTitle(item, channel) { + return channel.lang === 'ar' ? item.Arab_Title : item.Title +} + +function parseCategory(item, channel) { + return channel.lang === 'ar' ? item.GenreArabicName : item.GenreEnglishName +} + function parseDuration(item) { return parseInt(item.TotalDivWidth / 4.8) } diff --git a/sites/osn.com/osn.com.test.js b/sites/osn.com/osn.com.test.js index b0e2cce9..fa2cb9d6 100644 --- a/sites/osn.com/osn.com.test.js +++ b/sites/osn.com/osn.com.test.js @@ -1,4 +1,5 @@ -// NODE_OPTIONS=--insecure-http-parser npx epg-grabber --config=sites/osn.com/osn.com.config.js --channels=sites/osn.com/osn.com_ae.channels.xml --days=2 --output=guide.xml +// NODE_OPTIONS=--insecure-http-parser npx epg-grabber --config=sites/osn.com/osn.com.config.js --channels=sites/osn.com/osn.com_ae-ar.channels.xml --output=guide.xml --days=2 +// NODE_OPTIONS=--insecure-http-parser npx epg-grabber --config=sites/osn.com/osn.com.config.js --channels=sites/osn.com/osn.com_ae-en.channels.xml --output=guide.xml --days=2 const { parser, url, logo, request } = require('./osn.com.config.js') const dayjs = require('dayjs') @@ -8,13 +9,14 @@ dayjs.extend(customParseFormat) dayjs.extend(utc) const date = dayjs.utc('2021-10-24', 'YYYY-MM-DD').startOf('d') -const channel = { site_id: 'AE#AAN', xmltv_id: 'AlAanTV.ae' } +const channelAR = { site_id: 'AE#AAN', xmltv_id: 'AlAanTV.ae', lang: 'ar' } +const channelEN = { site_id: 'AE#AAN', xmltv_id: 'AlAanTV.ae', lang: 'en' } const content = JSON.stringify({ d: '[{"IsPlaying":"0","Durationtime":null,"StartMinute":0,"EndMinute":0,"EmptyDivWidth":1152,"TotalDivWidth":576,"IsTodayDate":false,"IsLastRow":false,"StartDateTime":"24 Oct 2021, 22:00","EndDateTime":"\\/Date(-62135596800000)\\/","Title":"Al Aan TV","Arab_Title":"تلفزيون الآن","GenreEnglishName":null,"GenreArabicName":null,"ChannelNumber":140,"ChannelCode":"AAN","Duration":"\\/Date(-62135596800000)\\/","Showtime":"\\/Date(-62135596800000)\\/","EpisodeId":738257,"ProgramType":null,"EPGUNIQID":"AAN202110271800738257"}]' }) it('can generate valid request data', () => { - const result = request.data({ channel, date }) + const result = request.data({ channel: channelAR, date }) expect(result).toMatchObject({ newDate: '10/24/2021', selectedCountry: 'AE', @@ -24,6 +26,14 @@ it('can generate valid request data', () => { }) }) +it('can generate valid request headers', () => { + const result = request.headers + expect(result).toMatchObject({ + 'Content-Type': 'application/json; charset=UTF-8', + Referer: 'https://www.osn.com' + }) +}) + it('can generate valid url', () => { const result = url() expect(result).toBe( @@ -32,12 +42,12 @@ it('can generate valid url', () => { }) it('can get logo url', () => { - const result = logo({ channel }) + const result = logo({ channel: channelAR }) expect(result).toBe('https://content.osn.com/logo/channel/cropped/AAN.png') }) -it('can parse response', () => { - const result = parser({ date, channel, content }) +it('can parse response (ar)', () => { + const result = parser({ date, channel: channelAR, content }) expect(result).toMatchObject([ { start: 'Sun, 24 Oct 2021 18:00:00 GMT', @@ -48,7 +58,19 @@ it('can parse response', () => { ]) }) +it('can parse response (en)', () => { + const result = parser({ date, channel: channelEN, content }) + expect(result).toMatchObject([ + { + start: 'Sun, 24 Oct 2021 18:00:00 GMT', + stop: 'Sun, 24 Oct 2021 20:00:00 GMT', + title: 'Al Aan TV', + category: null + } + ]) +}) + it('can handle empty guide', () => { - const result = parser({ date, channel, content: JSON.stringify({ d: '[]' }) }) + const result = parser({ date, channel: channelAR, content: JSON.stringify({ d: '[]' }) }) expect(result).toMatchObject([]) }) diff --git a/sites/osn.com/osn.com_ae.channels.xml b/sites/osn.com/osn.com_ae-ar.channels.xml similarity index 100% rename from sites/osn.com/osn.com_ae.channels.xml rename to sites/osn.com/osn.com_ae-ar.channels.xml diff --git a/sites/osn.com/osn.com_ae-en.channels.xml b/sites/osn.com/osn.com_ae-en.channels.xml new file mode 100644 index 00000000..b8a865e6 --- /dev/null +++ b/sites/osn.com/osn.com_ae-en.channels.xml @@ -0,0 +1,104 @@ + + + + Aghani Aghani TV + Aksyon TV International + Al Aan TV + Al Dafrah TV + Alhurra TV + Al-Majlis TV + Al Mamlaka TV + Al-Qurain TV + Al Safwa + Al Wousta TV + Al Yawm + ANC + ART Aflam 1 + ART Aflam 2 + ART Cinema + ART Hekayat + ART Hekayat 2 + B4U Aflam + B4U Plus + Baby TV Europe + Bahrain TV + BBC Arabic + BBC World News Middle East + Bloomberg TV Europe + CGTN + CGTN Arabic + Cinema 1 + Cinema 2 + Cinema One Global + Cine Mo! + CNBC Arabiya + CNBC Europe + Crime + Investigation UK + Discovery Channel Middle East & Africa + Discovery Science Middle East + Disney Channel Middle East + Disney Junior Middle East + Dubai Racing + Dubai Racing 3 + Ellay.com + E! Middle East + Fann + France 24 Arabic + France 24 English + GMA Life TV + GMA News + GMA Pinoy TV Middle East + History 2 Middle East + History Middle East + Investigation Discovery Europe + KTV 1 + KTV 2 + KTV Arabe + KTV Ethraa + KTV Sport + KTV Sport Plus + Madani TV + Marina TV + MTV 00s + MTV Live + Musalsalat + Musalsalat +2 + Music Now + Myx Middle East + National Geographic Middle East + National Geographic Wild Middle East + NHK World Japan + Nickelodeon Arabia + Nick Jr Arabia + NickToons Arabia + OSN Action + OSN Comedy + OSN Enigma + OSN Family + OSN Kids + OSN Kid Zone + OSN Living + OSN Mezze + OSN Movies + OSN Movies First + OSN Movies First +2 + OSN News + OSN Series + OSN Series First + OSN Woman + OSN Ya Hala + OSN Ya Hala Al Oula + OSN Ya Hala Cinema + Roya TV + RT Arabic + Sharjah Sports + Sharqiya TV + Sky News Arabia + Sky News International + Star Movies Middle East + Star World Middle East + TeleRadyo Global + TFC Middle East + TLC Arabia + + \ No newline at end of file diff --git a/sites/osn.com/osn.com_bh.channels.xml b/sites/osn.com/osn.com_bh-ar.channels.xml similarity index 100% rename from sites/osn.com/osn.com_bh.channels.xml rename to sites/osn.com/osn.com_bh-ar.channels.xml diff --git a/sites/osn.com/osn.com_bh-en.channels.xml b/sites/osn.com/osn.com_bh-en.channels.xml new file mode 100644 index 00000000..da7e6896 --- /dev/null +++ b/sites/osn.com/osn.com_bh-en.channels.xml @@ -0,0 +1,104 @@ + + + + Aghani Aghani TV + Aksyon TV International + Al Aan TV + Al Dafrah TV + Alhurra TV + Al-Majlis TV + Al Mamlaka TV + Al-Qurain TV + Al Safwa + Al Wousta TV + Al Yawm + ANC + ART Aflam 1 + ART Aflam 2 + ART Cinema + ART Hekayat + ART Hekayat 2 + B4U Aflam + B4U Plus + Baby TV Europe + Bahrain TV + BBC Arabic + BBC World News Middle East + Bloomberg TV Europe + CGTN + CGTN Arabic + Cinema 1 + Cinema 2 + Cinema One Global + Cine Mo! + CNBC Arabiya + CNBC Europe + Crime + Investigation UK + Discovery Channel Middle East & Africa + Discovery Science Middle East + Disney Channel Middle East + Disney Junior Middle East + Dubai Racing + Dubai Racing 3 + Ellay.com + E! Middle East + Fann + France 24 Arabic + France 24 English + GMA Life TV + GMA News + GMA Pinoy TV Middle East + History 2 Middle East + History Middle East + Investigation Discovery Europe + KTV 1 + KTV 2 + KTV Arabe + KTV Ethraa + KTV Sport + KTV Sport Plus + Madani TV + Marina TV + MTV 00s + MTV Live + Musalsalat + Musalsalat +2 + Music Now + Myx Middle East + National Geographic Middle East + National Geographic Wild Middle East + NHK World Japan + Nickelodeon Arabia + Nick Jr Arabia + NickToons Arabia + OSN Action + OSN Comedy + OSN Enigma + OSN Family + OSN Kids + OSN Kid Zone + OSN Living + OSN Mezze + OSN Movies + OSN Movies First + OSN Movies First +2 + OSN News + OSN Series + OSN Series First + OSN Woman + OSN Ya Hala + OSN Ya Hala Al Oula + OSN Ya Hala Cinema + Roya TV + RT Arabic + Sharjah Sports + Sharqiya TV + Sky News Arabia + Sky News International + Star Movies Middle East + Star World Middle East + TeleRadyo Global + TFC Middle East + TLC Arabia + + \ No newline at end of file diff --git a/sites/osn.com/osn.com_dz.channels.xml b/sites/osn.com/osn.com_dz-ar.channels.xml similarity index 100% rename from sites/osn.com/osn.com_dz.channels.xml rename to sites/osn.com/osn.com_dz-ar.channels.xml diff --git a/sites/osn.com/osn.com_dz-en.channels.xml b/sites/osn.com/osn.com_dz-en.channels.xml new file mode 100644 index 00000000..afffa340 --- /dev/null +++ b/sites/osn.com/osn.com_dz-en.channels.xml @@ -0,0 +1,104 @@ + + + + Aghani Aghani TV + Aksyon TV International + Al Aan TV + Al Dafrah TV + Alhurra TV + Al-Majlis TV + Al Mamlaka TV + Al-Qurain TV + Al Safwa + Al Wousta TV + Al Yawm + ANC + ART Aflam 1 + ART Aflam 2 + ART Cinema + ART Hekayat + ART Hekayat 2 + B4U Aflam + B4U Plus + Baby TV Europe + Bahrain TV + BBC Arabic + BBC World News Middle East + Bloomberg TV Europe + CGTN + CGTN Arabic + Cinema 1 + Cinema 2 + Cinema One Global + Cine Mo! + CNBC Arabiya + CNBC Europe + Crime + Investigation UK + Discovery Channel Middle East & Africa + Discovery Science Middle East + Disney Channel Middle East + Disney Junior Middle East + Dubai Racing + Dubai Racing 3 + Ellay.com + E! Middle East + Fann + France 24 Arabic + France 24 English + GMA Life TV + GMA News + GMA Pinoy TV Middle East + History 2 Middle East + History Middle East + Investigation Discovery Europe + KTV 1 + KTV 2 + KTV Arabe + KTV Ethraa + KTV Sport + KTV Sport Plus + Madani TV + Marina TV + MTV 00s + MTV Live + Musalsalat + Musalsalat +2 + Music Now + Myx Middle East + National Geographic Middle East + National Geographic Wild Middle East + NHK World Japan + Nickelodeon Arabia + Nick Jr Arabia + NickToons Arabia + OSN Action + OSN Comedy + OSN Enigma + OSN Family + OSN Kids + OSN Kid Zone + OSN Living + OSN Mezze + OSN Movies + OSN Movies First + OSN Movies First +2 + OSN News + OSN Series + OSN Series First + OSN Woman + OSN Ya Hala + OSN Ya Hala Al Oula + OSN Ya Hala Cinema + Roya TV + RT Arabic + Sharjah Sports + Sharqiya TV + Sky News Arabia + Sky News International + Star Movies Middle East + Star World Middle East + TeleRadyo Global + TFC Middle East + TLC Arabia + + \ No newline at end of file diff --git a/sites/osn.com/osn.com_eg.channels.xml b/sites/osn.com/osn.com_eg-ar.channels.xml similarity index 100% rename from sites/osn.com/osn.com_eg.channels.xml rename to sites/osn.com/osn.com_eg-ar.channels.xml diff --git a/sites/osn.com/osn.com_eg-en.channels.xml b/sites/osn.com/osn.com_eg-en.channels.xml new file mode 100644 index 00000000..1aa2fdae --- /dev/null +++ b/sites/osn.com/osn.com_eg-en.channels.xml @@ -0,0 +1,104 @@ + + + + Aghani Aghani TV + Aksyon TV International + Al Aan TV + Al Dafrah TV + Alhurra TV + Al-Majlis TV + Al Mamlaka TV + Al-Qurain TV + Al Safwa + Al Wousta TV + Al Yawm + ANC + ART Aflam 1 + ART Aflam 2 + ART Cinema + ART Hekayat + ART Hekayat 2 + B4U Aflam + B4U Plus + Baby TV Europe + Bahrain TV + BBC Arabic + BBC World News Middle East + Bloomberg TV Europe + CGTN + CGTN Arabic + Cinema 1 + Cinema 2 + Cinema One Global + Cine Mo! + CNBC Arabiya + CNBC Europe + Crime + Investigation UK + Discovery Channel Middle East & Africa + Discovery Science Middle East + Disney Channel Middle East + Disney Junior Middle East + Dubai Racing + Dubai Racing 3 + Ellay.com + E! Middle East + Fann + France 24 Arabic + France 24 English + GMA Life TV + GMA News + GMA Pinoy TV Middle East + History 2 Middle East + History Middle East + Investigation Discovery Europe + KTV 1 + KTV 2 + KTV Arabe + KTV Ethraa + KTV Sport + KTV Sport Plus + Madani TV + Marina TV + MTV 00s + MTV Live + Musalsalat + Musalsalat +2 + Music Now + Myx Middle East + National Geographic Middle East + National Geographic Wild Middle East + NHK World Japan + Nickelodeon Arabia + Nick Jr Arabia + NickToons Arabia + OSN Action + OSN Comedy + OSN Enigma + OSN Family + OSN Kids + OSN Kid Zone + OSN Living + OSN Mezze + OSN Movies + OSN Movies First + OSN Movies First +2 + OSN News + OSN Series + OSN Series First + OSN Woman + OSN Ya Hala + OSN Ya Hala Al Oula + OSN Ya Hala Cinema + Roya TV + RT Arabic + Sharjah Sports + Sharqiya TV + Sky News Arabia + Sky News International + Star Movies Middle East + Star World Middle East + TeleRadyo Global + TFC Middle East + TLC Arabia + + \ No newline at end of file diff --git a/sites/osn.com/osn.com_iq.channels.xml b/sites/osn.com/osn.com_iq-ar.channels.xml similarity index 100% rename from sites/osn.com/osn.com_iq.channels.xml rename to sites/osn.com/osn.com_iq-ar.channels.xml diff --git a/sites/osn.com/osn.com_iq-en.channels.xml b/sites/osn.com/osn.com_iq-en.channels.xml new file mode 100644 index 00000000..f5be50fc --- /dev/null +++ b/sites/osn.com/osn.com_iq-en.channels.xml @@ -0,0 +1,104 @@ + + + + Aghani Aghani TV + Aksyon TV International + Al Aan TV + Al Dafrah TV + Alhurra TV + Al-Majlis TV + Al Mamlaka TV + Al-Qurain TV + Al Safwa + Al Wousta TV + Al Yawm + ANC + ART Aflam 1 + ART Aflam 2 + ART Cinema + ART Hekayat + ART Hekayat 2 + B4U Aflam + B4U Plus + Baby TV Europe + Bahrain TV + BBC Arabic + BBC World News Middle East + Bloomberg TV Europe + CGTN + CGTN Arabic + Cinema 1 + Cinema 2 + Cinema One Global + Cine Mo! + CNBC Arabiya + CNBC Europe + Crime + Investigation UK + Discovery Channel Middle East & Africa + Discovery Science Middle East + Disney Channel Middle East + Disney Junior Middle East + Dubai Racing + Dubai Racing 3 + Ellay.com + E! Middle East + Fann + France 24 Arabic + France 24 English + GMA Life TV + GMA News + GMA Pinoy TV Middle East + History 2 Middle East + History Middle East + Investigation Discovery Europe + KTV 1 + KTV 2 + KTV Arabe + KTV Ethraa + KTV Sport + KTV Sport Plus + Madani TV + Marina TV + MTV 00s + MTV Live + Musalsalat + Musalsalat +2 + Music Now + Myx Middle East + National Geographic Middle East + National Geographic Wild Middle East + NHK World Japan + Nickelodeon Arabia + Nick Jr Arabia + NickToons Arabia + OSN Action + OSN Comedy + OSN Enigma + OSN Family + OSN Kids + OSN Kid Zone + OSN Living + OSN Mezze + OSN Movies + OSN Movies First + OSN Movies First +2 + OSN News + OSN Series + OSN Series First + OSN Woman + OSN Ya Hala + OSN Ya Hala Al Oula + OSN Ya Hala Cinema + Roya TV + RT Arabic + Sharjah Sports + Sharqiya TV + Sky News Arabia + Sky News International + Star Movies Middle East + Star World Middle East + TeleRadyo Global + TFC Middle East + TLC Arabia + + \ No newline at end of file diff --git a/sites/osn.com/osn.com_jo.channels.xml b/sites/osn.com/osn.com_jo-ar.channels.xml similarity index 100% rename from sites/osn.com/osn.com_jo.channels.xml rename to sites/osn.com/osn.com_jo-ar.channels.xml diff --git a/sites/osn.com/osn.com_jo-en.channels.xml b/sites/osn.com/osn.com_jo-en.channels.xml new file mode 100644 index 00000000..5e354595 --- /dev/null +++ b/sites/osn.com/osn.com_jo-en.channels.xml @@ -0,0 +1,104 @@ + + + + Aghani Aghani TV + Aksyon TV International + Al Aan TV + Al Dafrah TV + Alhurra TV + Al-Majlis TV + Al Mamlaka TV + Al-Qurain TV + Al Safwa + Al Wousta TV + Al Yawm + ANC + ART Aflam 1 + ART Aflam 2 + ART Cinema + ART Hekayat + ART Hekayat 2 + B4U Aflam + B4U Plus + Baby TV Europe + Bahrain TV + BBC Arabic + BBC World News Middle East + Bloomberg TV Europe + CGTN + CGTN Arabic + Cinema 1 + Cinema 2 + Cinema One Global + Cine Mo! + CNBC Arabiya + CNBC Europe + Crime + Investigation UK + Discovery Channel Middle East & Africa + Discovery Science Middle East + Disney Channel Middle East + Disney Junior Middle East + Dubai Racing + Dubai Racing 3 + Ellay.com + E! Middle East + Fann + France 24 Arabic + France 24 English + GMA Life TV + GMA News + GMA Pinoy TV Middle East + History 2 Middle East + History Middle East + Investigation Discovery Europe + KTV 1 + KTV 2 + KTV Arabe + KTV Ethraa + KTV Sport + KTV Sport Plus + Madani TV + Marina TV + MTV 00s + MTV Live + Musalsalat + Musalsalat +2 + Music Now + Myx Middle East + National Geographic Middle East + National Geographic Wild Middle East + NHK World Japan + Nickelodeon Arabia + Nick Jr Arabia + NickToons Arabia + OSN Action + OSN Comedy + OSN Enigma + OSN Family + OSN Kids + OSN Kid Zone + OSN Living + OSN Mezze + OSN Movies + OSN Movies First + OSN Movies First +2 + OSN News + OSN Series + OSN Series First + OSN Woman + OSN Ya Hala + OSN Ya Hala Al Oula + OSN Ya Hala Cinema + Roya TV + RT Arabic + Sharjah Sports + Sharqiya TV + Sky News Arabia + Sky News International + Star Movies Middle East + Star World Middle East + TeleRadyo Global + TFC Middle East + TLC Arabia + + \ No newline at end of file diff --git a/sites/osn.com/osn.com_kw.channels.xml b/sites/osn.com/osn.com_kw-ar.channels.xml similarity index 100% rename from sites/osn.com/osn.com_kw.channels.xml rename to sites/osn.com/osn.com_kw-ar.channels.xml diff --git a/sites/osn.com/osn.com_kw-en.channels.xml b/sites/osn.com/osn.com_kw-en.channels.xml new file mode 100644 index 00000000..f1aec108 --- /dev/null +++ b/sites/osn.com/osn.com_kw-en.channels.xml @@ -0,0 +1,104 @@ + + + + Aghani Aghani TV + Aksyon TV International + Al Aan TV + Al Dafrah TV + Alhurra TV + Al-Majlis TV + Al Mamlaka TV + Al-Qurain TV + Al Safwa + Al Wousta TV + Al Yawm + ANC + ART Aflam 1 + ART Aflam 2 + ART Cinema + ART Hekayat + ART Hekayat 2 + B4U Aflam + B4U Plus + Baby TV Europe + Bahrain TV + BBC Arabic + BBC World News Middle East + Bloomberg TV Europe + CGTN + CGTN Arabic + Cinema 1 + Cinema 2 + Cinema One Global + Cine Mo! + CNBC Arabiya + CNBC Europe + Crime + Investigation UK + Discovery Channel Middle East & Africa + Discovery Science Middle East + Disney Channel Middle East + Disney Junior Middle East + Dubai Racing + Dubai Racing 3 + Ellay.com + E! Middle East + Fann + France 24 Arabic + France 24 English + GMA Life TV + GMA News + GMA Pinoy TV Middle East + History 2 Middle East + History Middle East + Investigation Discovery Europe + KTV 1 + KTV 2 + KTV Arabe + KTV Ethraa + KTV Sport + KTV Sport Plus + Madani TV + Marina TV + MTV 00s + MTV Live + Musalsalat + Musalsalat +2 + Music Now + Myx Middle East + National Geographic Middle East + National Geographic Wild Middle East + NHK World Japan + Nickelodeon Arabia + Nick Jr Arabia + NickToons Arabia + OSN Action + OSN Comedy + OSN Enigma + OSN Family + OSN Kids + OSN Kid Zone + OSN Living + OSN Mezze + OSN Movies + OSN Movies First + OSN Movies First +2 + OSN News + OSN Series + OSN Series First + OSN Woman + OSN Ya Hala + OSN Ya Hala Al Oula + OSN Ya Hala Cinema + Roya TV + RT Arabic + Sharjah Sports + Sharqiya TV + Sky News Arabia + Sky News International + Star Movies Middle East + Star World Middle East + TeleRadyo Global + TFC Middle East + TLC Arabia + + \ No newline at end of file diff --git a/sites/osn.com/osn.com_lb.channels.xml b/sites/osn.com/osn.com_lb-ar.channels.xml similarity index 100% rename from sites/osn.com/osn.com_lb.channels.xml rename to sites/osn.com/osn.com_lb-ar.channels.xml diff --git a/sites/osn.com/osn.com_lb-en.channels.xml b/sites/osn.com/osn.com_lb-en.channels.xml new file mode 100644 index 00000000..aaca86b3 --- /dev/null +++ b/sites/osn.com/osn.com_lb-en.channels.xml @@ -0,0 +1,104 @@ + + + + Aghani Aghani TV + Aksyon TV International + Al Aan TV + Al Dafrah TV + Alhurra TV + Al-Majlis TV + Al Mamlaka TV + Al-Qurain TV + Al Safwa + Al Wousta TV + Al Yawm + ANC + ART Aflam 1 + ART Aflam 2 + ART Cinema + ART Hekayat + ART Hekayat 2 + B4U Aflam + B4U Plus + Baby TV Europe + Bahrain TV + BBC Arabic + BBC World News Middle East + Bloomberg TV Europe + CGTN + CGTN Arabic + Cinema 1 + Cinema 2 + Cinema One Global + Cine Mo! + CNBC Arabiya + CNBC Europe + Crime + Investigation UK + Discovery Channel Middle East & Africa + Discovery Science Middle East + Disney Channel Middle East + Disney Junior Middle East + Dubai Racing + Dubai Racing 3 + Ellay.com + E! Middle East + Fann + France 24 Arabic + France 24 English + GMA Life TV + GMA News + GMA Pinoy TV Middle East + History 2 Middle East + History Middle East + Investigation Discovery Europe + KTV 1 + KTV 2 + KTV Arabe + KTV Ethraa + KTV Sport + KTV Sport Plus + Madani TV + Marina TV + MTV 00s + MTV Live + Musalsalat + Musalsalat +2 + Music Now + Myx Middle East + National Geographic Middle East + National Geographic Wild Middle East + NHK World Japan + Nickelodeon Arabia + Nick Jr Arabia + NickToons Arabia + OSN Action + OSN Comedy + OSN Enigma + OSN Family + OSN Kids + OSN Kid Zone + OSN Living + OSN Mezze + OSN Movies + OSN Movies First + OSN Movies First +2 + OSN News + OSN Series + OSN Series First + OSN Woman + OSN Ya Hala + OSN Ya Hala Al Oula + OSN Ya Hala Cinema + Roya TV + RT Arabic + Sharjah Sports + Sharqiya TV + Sky News Arabia + Sky News International + Star Movies Middle East + Star World Middle East + TeleRadyo Global + TFC Middle East + TLC Arabia + + \ No newline at end of file diff --git a/sites/osn.com/osn.com_ly.channels.xml b/sites/osn.com/osn.com_ly-ar.channels.xml similarity index 100% rename from sites/osn.com/osn.com_ly.channels.xml rename to sites/osn.com/osn.com_ly-ar.channels.xml diff --git a/sites/osn.com/osn.com_ly-en.channels.xml b/sites/osn.com/osn.com_ly-en.channels.xml new file mode 100644 index 00000000..c4cbb6dc --- /dev/null +++ b/sites/osn.com/osn.com_ly-en.channels.xml @@ -0,0 +1,104 @@ + + + + Aghani Aghani TV + Aksyon TV International + Al Aan TV + Al Dafrah TV + Alhurra TV + Al-Majlis TV + Al Mamlaka TV + Al-Qurain TV + Al Safwa + Al Wousta TV + Al Yawm + ANC + ART Aflam 1 + ART Aflam 2 + ART Cinema + ART Hekayat + ART Hekayat 2 + B4U Aflam + B4U Plus + Baby TV Europe + Bahrain TV + BBC Arabic + BBC World News Middle East + Bloomberg TV Europe + CGTN + CGTN Arabic + Cinema 1 + Cinema 2 + Cinema One Global + Cine Mo! + CNBC Arabiya + CNBC Europe + Crime + Investigation UK + Discovery Channel Middle East & Africa + Discovery Science Middle East + Disney Channel Middle East + Disney Junior Middle East + Dubai Racing + Dubai Racing 3 + Ellay.com + E! Middle East + Fann + France 24 Arabic + France 24 English + GMA Life TV + GMA News + GMA Pinoy TV Middle East + History 2 Middle East + History Middle East + Investigation Discovery Europe + KTV 1 + KTV 2 + KTV Arabe + KTV Ethraa + KTV Sport + KTV Sport Plus + Madani TV + Marina TV + MTV 00s + MTV Live + Musalsalat + Musalsalat +2 + Music Now + Myx Middle East + National Geographic Middle East + National Geographic Wild Middle East + NHK World Japan + Nickelodeon Arabia + Nick Jr Arabia + NickToons Arabia + OSN Action + OSN Comedy + OSN Enigma + OSN Family + OSN Kids + OSN Kid Zone + OSN Living + OSN Mezze + OSN Movies + OSN Movies First + OSN Movies First +2 + OSN News + OSN Series + OSN Series First + OSN Woman + OSN Ya Hala + OSN Ya Hala Al Oula + OSN Ya Hala Cinema + Roya TV + RT Arabic + Sharjah Sports + Sharqiya TV + Sky News Arabia + Sky News International + Star Movies Middle East + Star World Middle East + TeleRadyo Global + TFC Middle East + TLC Arabia + + \ No newline at end of file diff --git a/sites/osn.com/osn.com_ma.channels.xml b/sites/osn.com/osn.com_ma-ar.channels.xml similarity index 100% rename from sites/osn.com/osn.com_ma.channels.xml rename to sites/osn.com/osn.com_ma-ar.channels.xml diff --git a/sites/osn.com/osn.com_ma-en.channels.xml b/sites/osn.com/osn.com_ma-en.channels.xml new file mode 100644 index 00000000..f36ee25a --- /dev/null +++ b/sites/osn.com/osn.com_ma-en.channels.xml @@ -0,0 +1,103 @@ + + + + Aghani Aghani TV + Aksyon TV International + Al Aan TV + Alhurra TV + Al-Majlis TV + Al Mamlaka TV + Al-Qurain TV + Al Safwa + Al Wousta TV + Al Yawm + ANC + ART Aflam 1 + ART Aflam 2 + ART Cinema + ART Hekayat + ART Hekayat 2 + B4U Aflam + B4U Plus + Baby TV Europe + Bahrain TV + BBC Arabic + BBC World News Middle East + Bloomberg TV Europe + CGTN + CGTN Arabic + Cinema 1 + Cinema 2 + Cinema One Global + Cine Mo! + CNBC Arabiya + CNBC Europe + Crime + Investigation UK + Discovery Channel Middle East & Africa + Discovery Science Middle East + Disney Channel Middle East + Disney Junior Middle East + Dubai Racing + Dubai Racing 3 + Ellay.com + E! Middle East + Fann + France 24 Arabic + France 24 English + GMA Life TV + GMA News + GMA Pinoy TV Middle East + History 2 Middle East + History Middle East + Investigation Discovery Europe + KTV 1 + KTV 2 + KTV Arabe + KTV Ethraa + KTV Sport + KTV Sport Plus + Madani TV + Marina TV + MTV 00s + MTV Live + Musalsalat + Musalsalat +2 + Music Now + Myx Middle East + National Geographic Middle East + National Geographic Wild Middle East + NHK World Japan + Nickelodeon Arabia + Nick Jr Arabia + NickToons Arabia + OSN Action + OSN Comedy + OSN Enigma + OSN Family + OSN Kids + OSN Kid Zone + OSN Living + OSN Mezze + OSN Movies + OSN Movies First + OSN Movies First +2 + OSN News + OSN Series + OSN Series First + OSN Woman + OSN Ya Hala + OSN Ya Hala Al Oula + OSN Ya Hala Cinema + Roya TV + RT Arabic + Sharjah Sports + Sharqiya TV + Sky News Arabia + Sky News International + Star Movies Middle East + Star World Middle East + TeleRadyo Global + TFC Middle East + TLC Arabia + + \ No newline at end of file diff --git a/sites/osn.com/osn.com_mr.channels.xml b/sites/osn.com/osn.com_mr-ar.channels.xml similarity index 100% rename from sites/osn.com/osn.com_mr.channels.xml rename to sites/osn.com/osn.com_mr-ar.channels.xml diff --git a/sites/osn.com/osn.com_mr-en.channels.xml b/sites/osn.com/osn.com_mr-en.channels.xml new file mode 100644 index 00000000..cab366b3 --- /dev/null +++ b/sites/osn.com/osn.com_mr-en.channels.xml @@ -0,0 +1,103 @@ + + + + Aghani Aghani TV + Aksyon TV International + Al Aan TV + Alhurra TV + Al-Majlis TV + Al Mamlaka TV + Al-Qurain TV + Al Safwa + Al Wousta TV + Al Yawm + ANC + ART Aflam 1 + ART Aflam 2 + ART Cinema + ART Hekayat + ART Hekayat 2 + B4U Aflam + B4U Plus + Baby TV Europe + Bahrain TV + BBC Arabic + BBC World News Middle East + Bloomberg TV Europe + CGTN + CGTN Arabic + Cinema 1 + Cinema 2 + Cinema One Global + Cine Mo! + CNBC Arabiya + CNBC Europe + Crime + Investigation UK + Discovery Channel Middle East & Africa + Discovery Science Middle East + Disney Channel Middle East + Disney Junior Middle East + Dubai Racing + Dubai Racing 3 + Ellay.com + E! Middle East + Fann + France 24 Arabic + France 24 English + GMA Life TV + GMA News + GMA Pinoy TV Middle East + History 2 Middle East + History Middle East + Investigation Discovery Europe + KTV 1 + KTV 2 + KTV Arabe + KTV Ethraa + KTV Sport + KTV Sport Plus + Madani TV + Marina TV + MTV 00s + MTV Live + Musalsalat + Musalsalat +2 + Music Now + Myx Middle East + National Geographic Middle East + National Geographic Wild Middle East + NHK World Japan + Nickelodeon Arabia + Nick Jr Arabia + NickToons Arabia + OSN Action + OSN Comedy + OSN Enigma + OSN Family + OSN Kids + OSN Kid Zone + OSN Living + OSN Mezze + OSN Movies + OSN Movies First + OSN Movies First +2 + OSN News + OSN Series + OSN Series First + OSN Woman + OSN Ya Hala + OSN Ya Hala Al Oula + OSN Ya Hala Cinema + Roya TV + RT Arabic + Sharjah Sports + Sharqiya TV + Sky News Arabia + Sky News International + Star Movies Middle East + Star World Middle East + TeleRadyo Global + TFC Middle East + TLC Arabia + + \ No newline at end of file diff --git a/sites/osn.com/osn.com_om.channels.xml b/sites/osn.com/osn.com_om-ar.channels.xml similarity index 100% rename from sites/osn.com/osn.com_om.channels.xml rename to sites/osn.com/osn.com_om-ar.channels.xml diff --git a/sites/osn.com/osn.com_om-en.channels.xml b/sites/osn.com/osn.com_om-en.channels.xml new file mode 100644 index 00000000..48ba4273 --- /dev/null +++ b/sites/osn.com/osn.com_om-en.channels.xml @@ -0,0 +1,103 @@ + + + + Aghani Aghani TV + Aksyon TV International + Al Aan TV + Alhurra TV + Al-Majlis TV + Al Mamlaka TV + Al-Qurain TV + Al Safwa + Al Wousta TV + Al Yawm + ANC + ART Aflam 1 + ART Aflam 2 + ART Cinema + ART Hekayat + ART Hekayat 2 + B4U Aflam + B4U Plus + Baby TV Europe + Bahrain TV + BBC Arabic + BBC World News Middle East + Bloomberg TV Europe + CGTN + CGTN Arabic + Cinema 1 + Cinema 2 + Cinema One Global + Cine Mo! + CNBC Arabiya + CNBC Europe + Crime + Investigation UK + Discovery Channel Middle East & Africa + Discovery Science Middle East + Disney Channel Middle East + Disney Junior Middle East + Dubai Racing + Dubai Racing 3 + Ellay.com + E! Middle East + Fann + France 24 Arabic + France 24 English + GMA Life TV + GMA News + GMA Pinoy TV Middle East + History 2 Middle East + History Middle East + Investigation Discovery Europe + KTV 1 + KTV 2 + KTV Arabe + KTV Ethraa + KTV Sport + KTV Sport Plus + Madani TV + Marina TV + MTV 00s + MTV Live + Musalsalat + Musalsalat +2 + Music Now + Myx Middle East + National Geographic Middle East + National Geographic Wild Middle East + NHK World Japan + Nickelodeon Arabia + Nick Jr Arabia + NickToons Arabia + OSN Action + OSN Comedy + OSN Enigma + OSN Family + OSN Kids + OSN Kid Zone + OSN Living + OSN Mezze + OSN Movies + OSN Movies First + OSN Movies First +2 + OSN News + OSN Series + OSN Series First + OSN Woman + OSN Ya Hala + OSN Ya Hala Al Oula + OSN Ya Hala Cinema + Roya TV + RT Arabic + Sharjah Sports + Sharqiya TV + Sky News Arabia + Sky News International + Star Movies Middle East + Star World Middle East + TeleRadyo Global + TFC Middle East + TLC Arabia + + \ No newline at end of file diff --git a/sites/osn.com/osn.com_ps.channels.xml b/sites/osn.com/osn.com_ps-ar.channels.xml similarity index 100% rename from sites/osn.com/osn.com_ps.channels.xml rename to sites/osn.com/osn.com_ps-ar.channels.xml diff --git a/sites/osn.com/osn.com_ps-en.channels.xml b/sites/osn.com/osn.com_ps-en.channels.xml new file mode 100644 index 00000000..8ed35c25 --- /dev/null +++ b/sites/osn.com/osn.com_ps-en.channels.xml @@ -0,0 +1,104 @@ + + + + Aghani Aghani TV + Aksyon TV International + Al Aan TV + Al Dafrah TV + Alhurra TV + Al-Majlis TV + Al Mamlaka TV + Al-Qurain TV + Al Safwa + Al Wousta TV + Al Yawm + ANC + ART Aflam 1 + ART Aflam 2 + ART Cinema + ART Hekayat + ART Hekayat 2 + B4U Aflam + B4U Plus + Baby TV Europe + Bahrain TV + BBC Arabic + BBC World News Middle East + Bloomberg TV Europe + CGTN + CGTN Arabic + Cinema 1 + Cinema 2 + Cinema One Global + Cine Mo! + CNBC Arabiya + CNBC Europe + Crime + Investigation UK + Discovery Channel Middle East & Africa + Discovery Science Middle East + Disney Channel Middle East + Disney Junior Middle East + Dubai Racing + Dubai Racing 3 + Ellay.com + E! Middle East + Fann + France 24 Arabic + France 24 English + GMA Life TV + GMA News + GMA Pinoy TV Middle East + History 2 Middle East + History Middle East + Investigation Discovery Europe + KTV 1 + KTV 2 + KTV Arabe + KTV Ethraa + KTV Sport + KTV Sport Plus + Madani TV + Marina TV + MTV 00s + MTV Live + Musalsalat + Musalsalat +2 + Music Now + Myx Middle East + National Geographic Middle East + National Geographic Wild Middle East + NHK World Japan + Nickelodeon Arabia + Nick Jr Arabia + NickToons Arabia + OSN Action + OSN Comedy + OSN Enigma + OSN Family + OSN Kids + OSN Kid Zone + OSN Living + OSN Mezze + OSN Movies + OSN Movies First + OSN Movies First +2 + OSN News + OSN Series + OSN Series First + OSN Woman + OSN Ya Hala + OSN Ya Hala Al Oula + OSN Ya Hala Cinema + Roya TV + RT Arabic + Sharjah Sports + Sharqiya TV + Sky News Arabia + Sky News International + Star Movies Middle East + Star World Middle East + TeleRadyo Global + TFC Middle East + TLC Arabia + + \ No newline at end of file diff --git a/sites/osn.com/osn.com_qa.channels.xml b/sites/osn.com/osn.com_qa-ar.channels.xml similarity index 100% rename from sites/osn.com/osn.com_qa.channels.xml rename to sites/osn.com/osn.com_qa-ar.channels.xml diff --git a/sites/osn.com/osn.com_qa-en.channels.xml b/sites/osn.com/osn.com_qa-en.channels.xml new file mode 100644 index 00000000..aae1cce7 --- /dev/null +++ b/sites/osn.com/osn.com_qa-en.channels.xml @@ -0,0 +1,104 @@ + + + + Aghani Aghani TV + Aksyon TV International + Al Aan TV + Al Dafrah TV + Alhurra TV + Al-Majlis TV + Al Mamlaka TV + Al-Qurain TV + Al Safwa + Al Wousta TV + Al Yawm + ANC + ART Aflam 1 + ART Aflam 2 + ART Cinema + ART Hekayat + ART Hekayat 2 + B4U Aflam + B4U Plus + Baby TV Europe + Bahrain TV + BBC Arabic + BBC World News Middle East + Bloomberg TV Europe + CGTN + CGTN Arabic + Cinema 1 + Cinema 2 + Cinema One Global + Cine Mo! + CNBC Arabiya + CNBC Europe + Crime + Investigation UK + Discovery Channel Middle East & Africa + Discovery Science Middle East + Disney Channel Middle East + Disney Junior Middle East + Dubai Racing + Dubai Racing 3 + Ellay.com + E! Middle East + Fann + France 24 Arabic + France 24 English + GMA Life TV + GMA News + GMA Pinoy TV Middle East + History 2 Middle East + History Middle East + Investigation Discovery Europe + KTV 1 + KTV 2 + KTV Arabe + KTV Ethraa + KTV Sport + KTV Sport Plus + Madani TV + Marina TV + MTV 00s + MTV Live + Musalsalat + Musalsalat +2 + Music Now + Myx Middle East + National Geographic Middle East + National Geographic Wild Middle East + NHK World Japan + Nickelodeon Arabia + Nick Jr Arabia + NickToons Arabia + OSN Action + OSN Comedy + OSN Enigma + OSN Family + OSN Kids + OSN Kid Zone + OSN Living + OSN Mezze + OSN Movies + OSN Movies First + OSN Movies First +2 + OSN News + OSN Series + OSN Series First + OSN Woman + OSN Ya Hala + OSN Ya Hala Al Oula + OSN Ya Hala Cinema + Roya TV + RT Arabic + Sharjah Sports + Sharqiya TV + Sky News Arabia + Sky News International + Star Movies Middle East + Star World Middle East + TeleRadyo Global + TFC Middle East + TLC Arabia + + \ No newline at end of file diff --git a/sites/osn.com/osn.com_sa.channels.xml b/sites/osn.com/osn.com_sa-ar.channels.xml similarity index 100% rename from sites/osn.com/osn.com_sa.channels.xml rename to sites/osn.com/osn.com_sa-ar.channels.xml diff --git a/sites/osn.com/osn.com_sa-en.channels.xml b/sites/osn.com/osn.com_sa-en.channels.xml new file mode 100644 index 00000000..791d265e --- /dev/null +++ b/sites/osn.com/osn.com_sa-en.channels.xml @@ -0,0 +1,103 @@ + + + + Aghani Aghani TV + Aksyon TV International + Al Aan TV + Alhurra TV + Al-Majlis TV + Al Mamlaka TV + Al-Qurain TV + Al Safwa + Al Wousta TV + Al Yawm + ANC + ART Aflam 1 + ART Aflam 2 + ART Cinema + ART Hekayat + ART Hekayat 2 + B4U Aflam + B4U Plus + Baby TV Europe + Bahrain TV + BBC Arabic + BBC World News Middle East + Bloomberg TV Europe + CGTN + CGTN Arabic + Cinema 1 + Cinema 2 + Cinema One Global + Cine Mo! + CNBC Arabiya + CNBC Europe + Crime + Investigation UK + Discovery Channel Middle East & Africa + Discovery Science Middle East + Disney Channel Middle East + Disney Junior Middle East + Dubai Racing + Dubai Racing 3 + Ellay.com + E! Middle East + Fann + France 24 Arabic + France 24 English + GMA Life TV + GMA News + GMA Pinoy TV Middle East + History 2 Middle East + History Middle East + Investigation Discovery Europe + KTV 1 + KTV 2 + KTV Arabe + KTV Ethraa + KTV Sport + KTV Sport Plus + Madani TV + Marina TV + MTV 00s + MTV Live + Musalsalat + Musalsalat +2 + Music Now + Myx Middle East + National Geographic Middle East + National Geographic Wild Middle East + NHK World Japan + Nickelodeon Arabia + Nick Jr Arabia + NickToons Arabia + OSN Action + OSN Comedy + OSN Enigma + OSN Family + OSN Kids + OSN Kid Zone + OSN Living + OSN Mezze + OSN Movies + OSN Movies First + OSN Movies First +2 + OSN News + OSN Series + OSN Series First + OSN Woman + OSN Ya Hala + OSN Ya Hala Al Oula + OSN Ya Hala Cinema + Roya TV + RT Arabic + Sharjah Sports + Sharqiya TV + Sky News Arabia + Sky News International + Star Movies Middle East + Star World Middle East + TeleRadyo Global + TFC Middle East + TLC Arabia + + \ No newline at end of file diff --git a/sites/osn.com/osn.com_td.channels.xml b/sites/osn.com/osn.com_td-ar.channels.xml similarity index 100% rename from sites/osn.com/osn.com_td.channels.xml rename to sites/osn.com/osn.com_td-ar.channels.xml diff --git a/sites/osn.com/osn.com_td-en.channels.xml b/sites/osn.com/osn.com_td-en.channels.xml new file mode 100644 index 00000000..006e563c --- /dev/null +++ b/sites/osn.com/osn.com_td-en.channels.xml @@ -0,0 +1,103 @@ + + + + Aghani Aghani TV + Aksyon TV International + Al Aan TV + Alhurra TV + Al-Majlis TV + Al Mamlaka TV + Al-Qurain TV + Al Safwa + Al Wousta TV + Al Yawm + ANC + ART Aflam 1 + ART Aflam 2 + ART Cinema + ART Hekayat + ART Hekayat 2 + B4U Aflam + B4U Plus + Baby TV Europe + Bahrain TV + BBC Arabic + BBC World News Middle East + Bloomberg TV Europe + CGTN + CGTN Arabic + Cinema 1 + Cinema 2 + Cinema One Global + Cine Mo! + CNBC Arabiya + CNBC Europe + Crime + Investigation UK + Discovery Channel Middle East & Africa + Discovery Science Middle East + Disney Channel Middle East + Disney Junior Middle East + Dubai Racing + Dubai Racing 3 + Ellay.com + E! Middle East + Fann + France 24 Arabic + France 24 English + GMA Life TV + GMA News + GMA Pinoy TV Middle East + History 2 Middle East + History Middle East + Investigation Discovery Europe + KTV 1 + KTV 2 + KTV Arabe + KTV Ethraa + KTV Sport + KTV Sport Plus + Madani TV + Marina TV + MTV 00s + MTV Live + Musalsalat + Musalsalat +2 + Music Now + Myx Middle East + National Geographic Middle East + National Geographic Wild Middle East + NHK World Japan + Nickelodeon Arabia + Nick Jr Arabia + NickToons Arabia + OSN Action + OSN Comedy + OSN Enigma + OSN Family + OSN Kids + OSN Kid Zone + OSN Living + OSN Mezze + OSN Movies + OSN Movies First + OSN Movies First +2 + OSN News + OSN Series + OSN Series First + OSN Woman + OSN Ya Hala + OSN Ya Hala Al Oula + OSN Ya Hala Cinema + Roya TV + RT Arabic + Sharjah Sports + Sharqiya TV + Sky News Arabia + Sky News International + Star Movies Middle East + Star World Middle East + TeleRadyo Global + TFC Middle East + TLC Arabia + + \ No newline at end of file diff --git a/sites/osn.com/osn.com_ye.channels.xml b/sites/osn.com/osn.com_ye-ar.channels.xml similarity index 100% rename from sites/osn.com/osn.com_ye.channels.xml rename to sites/osn.com/osn.com_ye-ar.channels.xml diff --git a/sites/osn.com/osn.com_ye-en.channels.xml b/sites/osn.com/osn.com_ye-en.channels.xml new file mode 100644 index 00000000..a3c236e7 --- /dev/null +++ b/sites/osn.com/osn.com_ye-en.channels.xml @@ -0,0 +1,104 @@ + + + + Aghani Aghani TV + Aksyon TV International + Al Aan TV + Al Dafrah TV + Alhurra TV + Al-Majlis TV + Al Mamlaka TV + Al-Qurain TV + Al Safwa + Al Wousta TV + Al Yawm + ANC + ART Aflam 1 + ART Aflam 2 + ART Cinema + ART Hekayat + ART Hekayat 2 + B4U Aflam + B4U Plus + Baby TV Europe + Bahrain TV + BBC Arabic + BBC World News Middle East + Bloomberg TV Europe + CGTN + CGTN Arabic + Cinema 1 + Cinema 2 + Cinema One Global + Cine Mo! + CNBC Arabiya + CNBC Europe + Crime + Investigation UK + Discovery Channel Middle East & Africa + Discovery Science Middle East + Disney Channel Middle East + Disney Junior Middle East + Dubai Racing + Dubai Racing 3 + Ellay.com + E! Middle East + Fann + France 24 Arabic + France 24 English + GMA Life TV + GMA News + GMA Pinoy TV Middle East + History 2 Middle East + History Middle East + Investigation Discovery Europe + KTV 1 + KTV 2 + KTV Arabe + KTV Ethraa + KTV Sport + KTV Sport Plus + Madani TV + Marina TV + MTV 00s + MTV Live + Musalsalat + Musalsalat +2 + Music Now + Myx Middle East + National Geographic Middle East + National Geographic Wild Middle East + NHK World Japan + Nickelodeon Arabia + Nick Jr Arabia + NickToons Arabia + OSN Action + OSN Comedy + OSN Enigma + OSN Family + OSN Kids + OSN Kid Zone + OSN Living + OSN Mezze + OSN Movies + OSN Movies First + OSN Movies First +2 + OSN News + OSN Series + OSN Series First + OSN Woman + OSN Ya Hala + OSN Ya Hala Al Oula + OSN Ya Hala Cinema + Roya TV + RT Arabic + Sharjah Sports + Sharqiya TV + Sky News Arabia + Sky News International + Star Movies Middle East + Star World Middle East + TeleRadyo Global + TFC Middle East + TLC Arabia + + \ No newline at end of file diff --git a/sites/rotana.net/rotana.net.config.js b/sites/rotana.net/rotana.net.config.js index ce0922ee..d481c839 100644 --- a/sites/rotana.net/rotana.net.config.js +++ b/sites/rotana.net/rotana.net.config.js @@ -9,6 +9,7 @@ dayjs.extend(customParseFormat) module.exports = { site: 'rotana.net', + ignore: true, // NOTE: there is no program for the current date on the site url({ channel, date }) { return `https://rotana.net/triAssets/uploads/2020/${date.format('MM')}/${channel.site_id}.csv` }, diff --git a/sites/rotana.net/rotana.net.test.js b/sites/rotana.net/rotana.net.test.js index 7f692111..847ed77a 100644 --- a/sites/rotana.net/rotana.net.test.js +++ b/sites/rotana.net/rotana.net.test.js @@ -1,4 +1,4 @@ -// npx epg-grabber --config=sites/rotana.net/rotana.net.config.js --channels=sites/rotana.net/rotana.net_sa.channels.xml --output=.gh-pages/guides/sa/rotana.net.epg.xml --days=2 +// npx epg-grabber --config=sites/rotana.net/rotana.net.config.js --channels=sites/rotana.net/rotana.net_sa.channels.xml --output=guide.xml --days=2 const { parser, url, logo, request } = require('./rotana.net.config.js') const dayjs = require('dayjs') diff --git a/sites/sky.com/sky.com_uk.channels.xml b/sites/sky.com/sky.com_uk.channels.xml index 7ccd1316..a2babe2d 100644 --- a/sites/sky.com/sky.com_uk.channels.xml +++ b/sites/sky.com/sky.com_uk.channels.xml @@ -52,6 +52,7 @@ Horror Channel UK Ideal Extra Ideal World + Iran International ITV 2 ITV 2 +1 ITV 3 diff --git a/sites/tvguide.myjcom.jp/tvguide.myjcom.jp.config.js b/sites/tvguide.myjcom.jp/tvguide.myjcom.jp.config.js new file mode 100644 index 00000000..fd40ab4e --- /dev/null +++ b/sites/tvguide.myjcom.jp/tvguide.myjcom.jp.config.js @@ -0,0 +1,116 @@ +const axios = require('axios') +const dayjs = require('dayjs') +const utc = require('dayjs/plugin/utc') +const timezone = require('dayjs/plugin/timezone') +const customParseFormat = require('dayjs/plugin/customParseFormat') + +dayjs.extend(utc) +dayjs.extend(timezone) +dayjs.extend(customParseFormat) + +module.exports = { + site: 'tvguide.myjcom.jp', + url: function ({ date, channel }) { + const id = `${channel.site_id}_${date.format('YYYYMMDD')}` + + return `https://tvguide.myjcom.jp/api/getEpgInfo/?channels=${id}` + }, + logo({ channel }) { + return channel.logo || null + }, + parser: function ({ content, channel, date }) { + let programs = [] + const items = parseItems(content, channel, date) + items.forEach(item => { + programs.push({ + title: item.title, + description: item.commentary, + category: parseCategory(item), + icon: parseIcon(item), + start: parseStart(item), + stop: parseStop(item) + }) + }) + + return programs + }, + async channels() { + const requests = [ + axios.get( + `https://tvguide.myjcom.jp/api/mypage/getEpgChannelList/?channelType=2&area=108&channelGenre&course&chart&is_adult=true` + ), + axios.get( + `https://tvguide.myjcom.jp/api/mypage/getEpgChannelList/?channelType=3&area=108&channelGenre&course&chart&is_adult=true` + ), + axios.get( + `https://tvguide.myjcom.jp/api/mypage/getEpgChannelList/?channelType=5&area=108&channelGenre&course&chart&is_adult=true` + ), + axios.get( + `https://tvguide.myjcom.jp/api/mypage/getEpgChannelList/?channelType=120&area=108&channelGenre&course&chart&is_adult=true` + ), + axios.get( + `https://tvguide.myjcom.jp/api/mypage/getEpgChannelList/?channelType=200&area=108&channelGenre&course&chart&is_adult=true` + ) + ] + + let items = [] + await Promise.all(requests) + .then(responses => { + for (const r of responses) { + items = items.concat(r.data.header) + } + }) + .catch(console.log) + + return items.map(item => { + return { + lang: 'jp', + site_id: `${item.channel_type}_${item.channel_id}_${item.network_id}`, + name: item.channel_name, + logo: item.logo_url + } + }) + } +} + +function parseIcon(item) { + return item.imgPath ? `https://tvguide.myjcom.jp${item.imgPath}` : null +} + +function parseCategory(item) { + if (!item.sortGenre) return null + + const id = item.sortGenre[0] + const genres = { + 0: 'ニュース/報道', + 1: 'スポーツ', + 2: '情報/ワイドショー', + 3: 'ドラマ', + 4: '音楽', + 5: 'バラエティ', + 6: '映画', + 7: 'アニメ/特撮', + 8: 'ドキュメンタリー/教養', + 9: '劇場/公演', + 10: '趣味/教育', + 11: '福祉', + 12: 'その他' + } + + return genres[id] +} + +function parseStart(item) { + return dayjs.tz(item.programStart.toString(), 'YYYYMMDDHHmmss', 'Asia/Tokyo') +} + +function parseStop(item) { + return dayjs.tz(item.programEnd.toString(), 'YYYYMMDDHHmmss', 'Asia/Tokyo') +} + +function parseItems(content, channel, date) { + const id = `${channel.site_id}_${date.format('YYYYMMDD')}` + const parsed = JSON.parse(content) + + return parsed[id] || [] +} diff --git a/sites/tvguide.myjcom.jp/tvguide.myjcom.jp.test.js b/sites/tvguide.myjcom.jp/tvguide.myjcom.jp.test.js new file mode 100644 index 00000000..00b4562c --- /dev/null +++ b/sites/tvguide.myjcom.jp/tvguide.myjcom.jp.test.js @@ -0,0 +1,56 @@ +// node ./scripts/channels.js --config=./sites/tvguide.myjcom.jp/tvguide.myjcom.jp.config.js --output=./sites/tvguide.myjcom.jp/tvguide.myjcom.jp_jp.channels.xml +// npx epg-grabber --config=sites/tvguide.myjcom.jp/tvguide.myjcom.jp.config.js --channels=sites/tvguide.myjcom.jp/tvguide.myjcom.jp_jp.channels.xml --output=guide.xml --days=2 + +const { parser, url, logo } = require('./tvguide.myjcom.jp.config.js') +const dayjs = require('dayjs') +const utc = require('dayjs/plugin/utc') +const customParseFormat = require('dayjs/plugin/customParseFormat') +dayjs.extend(customParseFormat) +dayjs.extend(utc) + +const date = dayjs.utc('2022-01-14', 'YYYY-MM-DD').startOf('d') +const channel = { + site_id: '120_200_4', + name: 'Star Channel 1', + xmltv_id: 'StarChannel1.jp', + logo: 'https://tvguide.myjcom.jp/monomedia/ch_logo/jcom/logo-0004-200-400x400.png' +} +const content = `{"120_200_4_20220114":[{"@search.score":1,"cid":"120_7305523","serviceCode":"200_4","channelName":"スターチャンネル1","digitalNo":195,"eventId":"181","title":"[5.1]フードロア:タマリンド","commentary":"HBO(R)アジア製作。日本の齊藤工などアジアの監督が、各国の食をテーマに描いたアンソロジーシリーズ。(全8話)(19年 シンガポール 56分)","attr":["5.1","hd","cp1"],"sortGenre":"31","hasImage":1,"imgPath":"\/monomedia\/si\/2022\/20220114\/7305523\/image\/7743d17b655b8d2274ca58b74f2f095c.jpg","isRecommended":null,"programStart":20220114050000,"programEnd":20220114060000,"programDate":20220114,"programId":568519,"start_time":"00","duration":60,"top":300,"end_time":"20220114060000","channel_type":"120","is_end":false,"show_remoterec":true}]}` + +it('can generate valid url', () => { + const result = url({ date, channel }) + expect(result).toBe('https://tvguide.myjcom.jp/api/getEpgInfo/?channels=120_200_4_20220114') +}) + +it('can get logo url', () => { + const result = logo({ channel }) + expect(result).toBe('https://tvguide.myjcom.jp/monomedia/ch_logo/jcom/logo-0004-200-400x400.png') +}) + +it('can parse response', () => { + const result = parser({ date, channel, content }).map(p => { + p.start = p.start.toJSON() + p.stop = p.stop.toJSON() + return p + }) + + expect(result).toMatchObject([ + { + start: '2022-01-13T20:00:00.000Z', + stop: '2022-01-13T21:00:00.000Z', + title: '[5.1]フードロア:タマリンド', + description: `HBO(R)アジア製作。日本の齊藤工などアジアの監督が、各国の食をテーマに描いたアンソロジーシリーズ。(全8話)(19年 シンガポール 56分)`, + icon: 'https://tvguide.myjcom.jp/monomedia/si/2022/20220114/7305523/image/7743d17b655b8d2274ca58b74f2f095c.jpg', + category: 'ドラマ' + } + ]) +}) + +it('can handle empty guide', () => { + const result = parser({ + date, + channel, + content: `{"120_200_3_20220114":[]}` + }) + expect(result).toMatchObject([]) +}) diff --git a/sites/tvguide.myjcom.jp/tvguide.myjcom.jp_jp.channels.xml b/sites/tvguide.myjcom.jp/tvguide.myjcom.jp_jp.channels.xml new file mode 100644 index 00000000..7e95f134 --- /dev/null +++ b/sites/tvguide.myjcom.jp/tvguide.myjcom.jp_jp.channels.xml @@ -0,0 +1,133 @@ + + + + Animal Planet Japan + Animax Japan + Asia Dramatic TV + AT-X + AXN Japan + AXN Mystery + BBC World News Asia Pacific + BS 11 + BS 12 + BS Asahi + BS Asahi 4K + BS Fuji + BS Fuji 4K + BS Nippon TV + BS Nippon TV 4K + BS-TBS + BS-TBS 4K + BS TV Tokyo + BS TV Tokyo 4K + Cable 4K + Cartoon Network Japan + CCTV Daifu + Channel Ginga + Channel Neco + CNN J + CNN USA + Dance Channel + Discovery Channel Japan + Disney Channel Japan + Disney Junior Japan + Eisei Gekijo + Entermei Tele + Family Gekijyo + Fighting TV Samurai! + Fishing Vision + Fox Japan + Fuji TV Next + Fuji TV One + Fuji TV Two + Gaora Sports + Golf Network + Green Channel + Green Channel 2 + GSTV + Home Drama Channel + Igo Shogi Channel + Japan Leisure Channel + J:COM Higashi Kanto + J:COM Premier Channel + J:COM TV + Jidaigeki Senmon Channel + Fuji TV (JOCX-DTV) + Tokyo MX (JOMX-DTV) + TBS (JORX-DTV) + TV Tokyo (JOTX-DTV) + J Sports 1 + J Sports 2 + J Sports 3 + J Sports 4 + Kayo Pops + KBS World Japan + Kids Station + KNTV + LaLa TV + Midnight Blue + Mnet Japan + Mondo TV + Movie Plus + MTV Japan + Music Air + Music On! TV + National Geographic Japan + NHK BS 1 + NHK BS 4K + NHK BS Premium + NHK Educational TV + NHK General TV + NHK World Japan + Nihon Eiga Senmon Channel + Nihon Jidai 4K + Nikkei CNBC + Nippon TV + Nittele G+ + Nittele Plus + NTV News 24 + Pachinko Pachislo TV + Paradise TV + Playboy Channel Japan + PPV Choice 940 + PPV Choice 941 + QVC Japan + QVC Japan 4K + Red Cherry + Shop Channel + Shop Channel 4K + Shop Channel Plus + Sky A + Space Shower TV + Space Shower TV Plus + Speed Channel 1 + Sports Live + + Star 1 + Star 2 + Star 3 + Star BS10 + Super! Drama TV + Tabi Channel + Takarazuka Sky Stage + TBS Channel 1 + TBS Channel 2 + TBS News + The Cinema + The Cinema 4K + The History Channel Japan + Toei Channel + TV5Monde Pacifique + TV Asahi + TV Asahi Channel 1 + TV Asahi Channel 2 + TV Kanagawa + TV Saitama + V Paradise + Wowow 4K + Wowow Cinema + Wowow Live + Wowow Plus + Wowow Prime + Yose Channel + + \ No newline at end of file