mirror of
https://github.com/iptv-org/epg.git
synced 2025-05-10 00:50:09 -04:00
commit
426c2a864c
6 changed files with 95 additions and 3 deletions
3
.github/workflows/auto-update.yml
vendored
3
.github/workflows/auto-update.yml
vendored
|
@ -33,7 +33,8 @@ jobs:
|
|||
ontvtonight.com,
|
||||
tv.yandex.ru,
|
||||
tvtv.ca,
|
||||
tvtv.us
|
||||
tvtv.us,
|
||||
tv.lv
|
||||
]
|
||||
steps:
|
||||
- name: Checkout
|
||||
|
|
|
@ -35,6 +35,7 @@ To load a program guide, all you need to do is copy the link to one of the guide
|
|||
<tr><td align="left" nowrap>🇮🇹 Italy</td><td align="left" nowrap><code>https://iptv-org.github.io/epg/guides/guidatv.sky.it.guide.xml</code></td></tr>
|
||||
<tr><td align="left" nowrap>🇮🇪 Ireland</td><td align="left" nowrap><code>https://iptv-org.github.io/epg/guides/ontvtonight.com.guide.xml</code></td></tr>
|
||||
<tr><td align="left" nowrap>🇰🇿 Kazakhstan</td><td align="left" nowrap><code>https://iptv-org.github.io/epg/guides/tv.yandex.ru.guide.xml</code></td></tr>
|
||||
<tr><td align="left" nowrap>🇱🇻 Latvia</td><td align="left" nowrap><code>https://iptv-org.github.io/epg/guides/tv.lv.guide.xml</code></td></tr>
|
||||
<tr><td align="left" nowrap>🇲🇾 Malaysia</td><td align="left" nowrap><code>https://iptv-org.github.io/epg/guides/astro.com.my.guide.xml</code></td></tr>
|
||||
<tr><td align="left" nowrap>🇲🇽 Mexico</td><td align="left" nowrap><code>https://iptv-org.github.io/epg/guides/mi.tv.guide.xml</code></td></tr>
|
||||
<tr><td align="left" nowrap>🇵🇾 Paraguay</td><td align="left" nowrap><code>https://iptv-org.github.io/epg/guides/mi.tv.guide.xml</code></td></tr>
|
||||
|
|
48
sites/tv.lv.channels.xml
Executable file
48
sites/tv.lv.channels.xml
Executable file
|
@ -0,0 +1,48 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<site site="tv.lv">
|
||||
<channels>
|
||||
<channel site_id="3-1" xmltv_id="3Plus.lv">3+</channel>
|
||||
<channel site_id="duo-3-latvija" xmltv_id="Duo3.lv">Duo 3</channel>
|
||||
<channel site_id="duo-6-baltic-1" xmltv_id="Duo6.lv">Duo 6</channel>
|
||||
<channel site_id="epic-drama-cee" xmltv_id="EpicDrama.se">Epic Drama</channel>
|
||||
<channel site_id="eurosport-1" xmltv_id="Eurosport1.fr">Eurosport 1</channel>
|
||||
<channel site_id="eurosport-2" xmltv_id="Eurosport2.fr">Eurosport 2</channel>
|
||||
<channel site_id="filmzone-1" xmltv_id="Filmzone.lv">Filmzone</channel>
|
||||
<channel site_id="filmzone" xmltv_id="FilmzonePlus.lv">Filmzone+</channel>
|
||||
<channel site_id="fox-life" xmltv_id="FoxLifeLatvia.us">Fox Life Latvia</channel>
|
||||
<channel site_id="history-europe" xmltv_id="HistoryEurope.us">History Europe</channel>
|
||||
<channel site_id="kidzone-latvija" xmltv_id="KidZoneTV.ee">KidZone TV</channel>
|
||||
<channel site_id="kidzone" xmltv_id="KidzonePlus.ee">Kidzone+</channel>
|
||||
<channel site_id="lolo-tv-lv" xmltv_id="LoloTV.lv">Lolo TV</channel>
|
||||
<channel site_id="ltv1" xmltv_id="LTV1.lv">LTV1</channel>
|
||||
<channel site_id="ltv7" xmltv_id="LTV7.lv">LTV7</channel>
|
||||
<channel site_id="mvk" xmltv_id="MVK.lv">MVK</channel>
|
||||
<channel site_id="national-geographic-baltic" xmltv_id="NationalGeographicLatvija.us">National Geographic Latvija</channel>
|
||||
<channel site_id="nickelodeon-latvia" xmltv_id="NickelodeonLatvia.us">Nickelodeon Latvia</channel>
|
||||
<channel site_id="retv" xmltv_id="ReTV.lv">Re:TV</channel>
|
||||
<channel site_id="rentv-baltic" xmltv_id="RENTVBaltic.ru">REN TV Baltic</channel>
|
||||
<channel site_id="riga-tv24" xmltv_id="RigaTV24.lv">Rīga TV24</channel>
|
||||
<channel site_id="smartzone-tv" xmltv_id="Smartzone.ee">Smartzone</channel>
|
||||
<channel site_id="sport-1" xmltv_id="Sport1.lt">Sport1</channel>
|
||||
<channel site_id="sportacentrs" xmltv_id="Sportacentrscom.lv">Sportacentrs.com</channel>
|
||||
<channel site_id="tv-kurzeme" xmltv_id="TVKurzeme.lv">TV Kurzeme</channel>
|
||||
<channel site_id="tv-21" xmltv_id="TVXXI.lv">TV XXI</channel>
|
||||
<channel site_id="tv1000-action-cee" xmltv_id="TV1000ActionCEE.se">TV1000 Action CEE</channel>
|
||||
<channel site_id="tv1000-cee" xmltv_id="TV1000CEE.se">TV1000 CEE</channel>
|
||||
<channel site_id="tv1000-kino" xmltv_id="TV1000Russkoekino.se">TV1000 Русское кино</channel>
|
||||
<channel site_id="tv3-1" xmltv_id="TV3.lv">TV3</channel>
|
||||
<channel site_id="tv3-film" xmltv_id="TV3Film.lv">TV3 Film</channel>
|
||||
<channel site_id="tv3-life" xmltv_id="TV3Life.lv">TV3 Life</channel>
|
||||
<channel site_id="tv3-mini" xmltv_id="TV3Mini.lv">TV3 Mini</channel>
|
||||
<channel site_id="tv3-sport" xmltv_id="TV3Sport.lv">TV3 Sport</channel>
|
||||
<channel site_id="tv3-sport-2" xmltv_id="TV3Sport2.lv">TV3 Sport 2</channel>
|
||||
<channel site_id="tv6-1" xmltv_id="TV6.lv">TV6</channel>
|
||||
<channel site_id="viasat-explore-nordic" xmltv_id="ViasatExploreEast.se">Viasat Explore East</channel>
|
||||
<channel site_id="viasat-history-cee" xmltv_id="ViasatHistory.se">Viasat History</channel>
|
||||
<channel site_id="viasat-nature-cee" xmltv_id="ViasatNatureEast.se">Viasat Nature East</channel>
|
||||
<channel site_id="pbk-1" xmltv_id="Pervyykanal.ru">Первый канал</channel>
|
||||
<channel site_id="rtr-planeta" xmltv_id="RTRPlaneta.ru">РТР-Планета</channel>
|
||||
<channel site_id="rtr-planeta-baltiya" xmltv_id="RTRPlanetaBaltiya.ru">РТР-Планета Балтия</channel>
|
||||
<channel site_id="sts-baltiya" xmltv_id="STSBaltiya.ru">СТС Балтия</channel>
|
||||
</channels>
|
||||
</site>
|
42
sites/tv.lv.config.js
Normal file
42
sites/tv.lv.config.js
Normal file
|
@ -0,0 +1,42 @@
|
|||
const dayjs = require('dayjs')
|
||||
|
||||
module.exports = {
|
||||
lang: 'lv',
|
||||
site: 'tv.lv',
|
||||
channels: 'tv.lv.channels.xml',
|
||||
output: '.gh-pages/guides/tv.lv.guide.xml',
|
||||
url: function ({ date, channel }) {
|
||||
return `https://www.tv.lv/programme/listing/none/${date.format(
|
||||
'DD-MM-YYYY'
|
||||
)}?filter=channel&subslug=${channel.site_id}`
|
||||
},
|
||||
logo: function ({ content }) {
|
||||
const data = JSON.parse(content)
|
||||
const logo = data.schedule.programme.length ? data.schedule.programme[0].channel.logo_64 : null
|
||||
|
||||
return logo ? `https://cdn.tvstart.com/img/channel/${logo}` : null
|
||||
},
|
||||
parser: function ({ content }) {
|
||||
const programs = []
|
||||
const data = JSON.parse(content)
|
||||
const items = data.schedule.programme
|
||||
if (!items.length) return programs
|
||||
|
||||
items.forEach(item => {
|
||||
if (item.title && item.start_unix && item.stop_unix) {
|
||||
const start = dayjs.unix(item.start_unix)
|
||||
const stop = dayjs.unix(item.stop_unix)
|
||||
programs.push({
|
||||
title: item.title,
|
||||
description: item.description_long,
|
||||
category: item.categorystring,
|
||||
icon: item.image,
|
||||
start: start.toString(),
|
||||
stop: stop.toString()
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
return programs
|
||||
}
|
||||
}
|
|
@ -396,7 +396,7 @@
|
|||
<channel site_id="213#tv-3-17" xmltv_id="TV3.ru">ТВ-3</channel>
|
||||
<channel site_id="213#tv-brics-1268" xmltv_id="TVBRICSRussian.ru">TV BRICS Russian</channel>
|
||||
<channel site_id="213#tv-centr-32" xmltv_id="TVCentr.ru">ТВ Центр</channel>
|
||||
<channel site_id="213#tv-xxi-492" xmltv_id="TVXXI.ru">TV XXI</channel>
|
||||
<channel site_id="213#tv-xxi-492" xmltv_id="TVXXI.lv">TV XXI</channel>
|
||||
<channel site_id="213#tv1000-427" xmltv_id="TV1000.se">TV1000</channel>
|
||||
<channel site_id="213#tv1000-action-426" xmltv_id="TV1000Action.se">TV1000 Action</channel>
|
||||
<channel site_id="213#tv1000-russkoe-kino-475" xmltv_id="TV1000Russkoekino.se">TV1000 Русское кино</channel>
|
||||
|
|
|
@ -128,7 +128,7 @@
|
|||
<channel site_id="tv_1000_action_east" xmltv_id="TV1000ActionEast.se">TV1000 Action East</channel>
|
||||
<channel site_id="tv_4" xmltv_id="TV4.ua">TV-4</channel>
|
||||
<channel site_id="tv_5" xmltv_id="TV5Zaporozhe.ua">TV5 (Запорожье)</channel>
|
||||
<channel site_id="tv_xxi" xmltv_id="TVXXI.ru">TV XXI</channel>
|
||||
<channel site_id="tv_xxi" xmltv_id="TVXXI.lv">TV XXI</channel>
|
||||
<channel site_id="tvp1" xmltv_id="TVP1.pl">TVP1</channel>
|
||||
<channel site_id="tvp2" xmltv_id="TVP2.pl">TVP2</channel>
|
||||
<channel site_id="u" xmltv_id="Yu.ru">Ю</channel>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue