mirror of
https://github.com/iptv-org/epg
synced 2025-12-17 10:56:57 -05:00
Update update-readme.js
This commit is contained in:
@@ -37,7 +37,8 @@ async function generateCountriesTable() {
|
|||||||
const country = countries[code]
|
const country = countries[code]
|
||||||
|
|
||||||
rows.push({
|
rows.push({
|
||||||
name: `${country.flag} ${country.name}`,
|
flag: country.flag,
|
||||||
|
name: country.name,
|
||||||
channels: item.count,
|
channels: item.count,
|
||||||
epg: `<code>https://iptv-org.github.io/epg/guides/${item.gid}/${item.site}.epg.xml</code>`
|
epg: `<code>https://iptv-org.github.io/epg/guides/${item.gid}/${item.site}.epg.xml</code>`
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -18,7 +18,10 @@ markdown.createTable = function (data, cols) {
|
|||||||
for (let [i, item] of group.entries()) {
|
for (let [i, item] of group.entries()) {
|
||||||
const rowspan = group.length > 1 ? ` rowspan="${group.length}"` : ''
|
const rowspan = group.length > 1 ? ` rowspan="${group.length}"` : ''
|
||||||
output += ' <tr>'
|
output += ' <tr>'
|
||||||
if (i === 0) output += `<td align="left" valign="top" nowrap${rowspan}>${item.name}</td>`
|
if (i === 0) {
|
||||||
|
const name = item.flag ? `${item.flag} ${item.name}` : item.name
|
||||||
|
output += `<td align="left" valign="top" nowrap${rowspan}>${name}</td>`
|
||||||
|
}
|
||||||
output += `<td align="right">${item.channels}</td>`
|
output += `<td align="right">${item.channels}</td>`
|
||||||
output += `<td align="left" nowrap>${item.epg}</td>`
|
output += `<td align="left" nowrap>${item.epg}</td>`
|
||||||
output += '</tr>\n'
|
output += '</tr>\n'
|
||||||
|
|||||||
@@ -14,9 +14,9 @@ To load a program guide, all you need to do is copy the link to one or more of t
|
|||||||
<tr><th align="left">Country</th><th align="left">Channels</th><th align="left">EPG</th></tr>
|
<tr><th align="left">Country</th><th align="left">Channels</th><th align="left">EPG</th></tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
<tr><td align="left" valign="top" nowrap>🇿🇦 South Africa</td><td align="right">1</td><td align="left" nowrap><code>https://iptv-org.github.io/epg/guides/za/dstv.com.epg.xml</code></td></tr>
|
||||||
<tr><td align="left" valign="top" nowrap rowspan="2">🇺🇸 United States</td><td align="right">372</td><td align="left" nowrap><code>https://iptv-org.github.io/epg/guides/us/tvtv.us.epg.xml</code></td></tr>
|
<tr><td align="left" valign="top" nowrap rowspan="2">🇺🇸 United States</td><td align="right">372</td><td align="left" nowrap><code>https://iptv-org.github.io/epg/guides/us/tvtv.us.epg.xml</code></td></tr>
|
||||||
<tr><td align="right">74</td><td align="left" nowrap><code>https://iptv-org.github.io/epg/guides/us/magticom.ge.epg.xml</code></td></tr>
|
<tr><td align="right">74</td><td align="left" nowrap><code>https://iptv-org.github.io/epg/guides/us/magticom.ge.epg.xml</code></td></tr>
|
||||||
<tr><td align="left" valign="top" nowrap>🇿🇦 South Africa</td><td align="right">1</td><td align="left" nowrap><code>https://iptv-org.github.io/epg/guides/za/dstv.com.epg.xml</code></td></tr>
|
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user