Sort playlists by language name
This commit is contained in:
parent
f3cb48ee78
commit
5b50b72fd1
|
@ -25,7 +25,7 @@ Or select one of the playlists from the list below.
|
|||
|
||||
## Playlists by language
|
||||
|
||||
<table><thead><tr><th align="left">Language</th><th align="right">Channels</th><th align="left">Playlist</th></tr></thead><tbody><tr><td align="left">Albanian</td><td align="right">6</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/sq.m3u</code></td></tr><tr><td align="left">English</td><td align="right">178</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/en.m3u</code></td></tr><tr><td align="left">Dutch</td><td align="right">7</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/nl.m3u</code></td></tr><tr><td align="left">Serbian</td><td align="right">5</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/sr.m3u</code></td></tr><tr><td align="left">Croatian</td><td align="right">2</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/hr.m3u</code></td></tr><tr><td align="left">Portuguese</td><td align="right">51</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/pt.m3u</code></td></tr><tr><td align="left">Bulgarian</td><td align="right">7</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/bg.m3u</code></td></tr><tr><td align="left">Chinese</td><td align="right">839</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/zh.m3u</code></td></tr><tr><td align="left">Greek</td><td align="right">11</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/el.m3u</code></td></tr><tr><td align="left">Czech</td><td align="right">16</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/cs.m3u</code></td></tr><tr><td align="left">Danish</td><td align="right">8</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/da.m3u</code></td></tr><tr><td align="left">Arabic</td><td align="right">20</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/ar.m3u</code></td></tr><tr><td align="left">Estonian</td><td align="right">9</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/et.m3u</code></td></tr><tr><td align="left">Finnish</td><td align="right">2</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/fi.m3u</code></td></tr><tr><td align="left">Persian</td><td align="right">4</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/fa.m3u</code></td></tr><tr><td align="left">Hebrew</td><td align="right">10</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/he.m3u</code></td></tr><tr><td align="left">Maltese</td><td align="right">2</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/mt.m3u</code></td></tr><tr><td align="left">Norwegian Bokmål</td><td align="right">1</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/nb.m3u</code></td></tr><tr><td align="left">Spanish</td><td align="right">26</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/es.m3u</code></td></tr><tr><td align="left">Turkish</td><td align="right">39</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/tr.m3u</code></td></tr><tr><td align="left">Undefined</td><td align="right">5448</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/undefined.m3u</code></td></tr></tbody></table>
|
||||
<table><thead><tr><th align="left">Language</th><th align="right">Channels</th><th align="left">Playlist</th></tr></thead><tbody><tr><td align="left">Albanian</td><td align="right">6</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/sq.m3u</code></td></tr><tr><td align="left">Arabic</td><td align="right">20</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/ar.m3u</code></td></tr><tr><td align="left">Bulgarian</td><td align="right">7</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/bg.m3u</code></td></tr><tr><td align="left">Chinese</td><td align="right">839</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/zh.m3u</code></td></tr><tr><td align="left">Croatian</td><td align="right">2</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/hr.m3u</code></td></tr><tr><td align="left">Czech</td><td align="right">16</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/cs.m3u</code></td></tr><tr><td align="left">Danish</td><td align="right">8</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/da.m3u</code></td></tr><tr><td align="left">Dutch</td><td align="right">7</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/nl.m3u</code></td></tr><tr><td align="left">English</td><td align="right">178</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/en.m3u</code></td></tr><tr><td align="left">Estonian</td><td align="right">9</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/et.m3u</code></td></tr><tr><td align="left">Finnish</td><td align="right">2</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/fi.m3u</code></td></tr><tr><td align="left">Greek</td><td align="right">11</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/el.m3u</code></td></tr><tr><td align="left">Hebrew</td><td align="right">10</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/he.m3u</code></td></tr><tr><td align="left">Maltese</td><td align="right">2</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/mt.m3u</code></td></tr><tr><td align="left">Norwegian Bokmål</td><td align="right">1</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/nb.m3u</code></td></tr><tr><td align="left">Persian</td><td align="right">4</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/fa.m3u</code></td></tr><tr><td align="left">Portuguese</td><td align="right">51</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/pt.m3u</code></td></tr><tr><td align="left">Serbian</td><td align="right">5</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/sr.m3u</code></td></tr><tr><td align="left">Spanish</td><td align="right">26</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/es.m3u</code></td></tr><tr><td align="left">Turkish</td><td align="right">39</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/tr.m3u</code></td></tr><tr><td align="left">Undefined</td><td align="right">5448</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/undefined.m3u</code></td></tr></tbody></table>
|
||||
|
||||
## Playlists by country
|
||||
|
||||
|
|
|
@ -138,7 +138,16 @@ function main() {
|
|||
}
|
||||
}
|
||||
|
||||
const languagesTable = util.generateTable(Object.values(repo.languages), {
|
||||
const languages = Object.values(repo.languages)
|
||||
const lastRow = languages.splice(languages.length - 1, 1)[0]
|
||||
languages.sort((a, b) => {
|
||||
if(a.language < b.language) { return -1 }
|
||||
if(a.language > b.language) { return 1 }
|
||||
return 0
|
||||
})
|
||||
languages.push(lastRow)
|
||||
|
||||
const languagesTable = util.generateTable(languages, {
|
||||
columns: [
|
||||
{ name: 'Language', align: 'left' },
|
||||
{ name: 'Channels', align: 'right' },
|
||||
|
|
|
@ -1 +1 @@
|
|||
<table><thead><tr><th align="left">Language</th><th align="right">Channels</th><th align="left">Playlist</th></tr></thead><tbody><tr><td align="left">Albanian</td><td align="right">6</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/sq.m3u</code></td></tr><tr><td align="left">English</td><td align="right">178</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/en.m3u</code></td></tr><tr><td align="left">Dutch</td><td align="right">7</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/nl.m3u</code></td></tr><tr><td align="left">Serbian</td><td align="right">5</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/sr.m3u</code></td></tr><tr><td align="left">Croatian</td><td align="right">2</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/hr.m3u</code></td></tr><tr><td align="left">Portuguese</td><td align="right">51</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/pt.m3u</code></td></tr><tr><td align="left">Bulgarian</td><td align="right">7</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/bg.m3u</code></td></tr><tr><td align="left">Chinese</td><td align="right">839</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/zh.m3u</code></td></tr><tr><td align="left">Greek</td><td align="right">11</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/el.m3u</code></td></tr><tr><td align="left">Czech</td><td align="right">16</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/cs.m3u</code></td></tr><tr><td align="left">Danish</td><td align="right">8</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/da.m3u</code></td></tr><tr><td align="left">Arabic</td><td align="right">20</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/ar.m3u</code></td></tr><tr><td align="left">Estonian</td><td align="right">9</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/et.m3u</code></td></tr><tr><td align="left">Finnish</td><td align="right">2</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/fi.m3u</code></td></tr><tr><td align="left">Persian</td><td align="right">4</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/fa.m3u</code></td></tr><tr><td align="left">Hebrew</td><td align="right">10</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/he.m3u</code></td></tr><tr><td align="left">Maltese</td><td align="right">2</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/mt.m3u</code></td></tr><tr><td align="left">Norwegian Bokmål</td><td align="right">1</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/nb.m3u</code></td></tr><tr><td align="left">Spanish</td><td align="right">26</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/es.m3u</code></td></tr><tr><td align="left">Turkish</td><td align="right">39</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/tr.m3u</code></td></tr><tr><td align="left">Undefined</td><td align="right">5448</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/undefined.m3u</code></td></tr></tbody></table>
|
||||
<table><thead><tr><th align="left">Language</th><th align="right">Channels</th><th align="left">Playlist</th></tr></thead><tbody><tr><td align="left">Albanian</td><td align="right">6</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/sq.m3u</code></td></tr><tr><td align="left">Arabic</td><td align="right">20</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/ar.m3u</code></td></tr><tr><td align="left">Bulgarian</td><td align="right">7</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/bg.m3u</code></td></tr><tr><td align="left">Chinese</td><td align="right">839</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/zh.m3u</code></td></tr><tr><td align="left">Croatian</td><td align="right">2</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/hr.m3u</code></td></tr><tr><td align="left">Czech</td><td align="right">16</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/cs.m3u</code></td></tr><tr><td align="left">Danish</td><td align="right">8</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/da.m3u</code></td></tr><tr><td align="left">Dutch</td><td align="right">7</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/nl.m3u</code></td></tr><tr><td align="left">English</td><td align="right">178</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/en.m3u</code></td></tr><tr><td align="left">Estonian</td><td align="right">9</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/et.m3u</code></td></tr><tr><td align="left">Finnish</td><td align="right">2</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/fi.m3u</code></td></tr><tr><td align="left">Greek</td><td align="right">11</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/el.m3u</code></td></tr><tr><td align="left">Hebrew</td><td align="right">10</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/he.m3u</code></td></tr><tr><td align="left">Maltese</td><td align="right">2</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/mt.m3u</code></td></tr><tr><td align="left">Norwegian Bokmål</td><td align="right">1</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/nb.m3u</code></td></tr><tr><td align="left">Persian</td><td align="right">4</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/fa.m3u</code></td></tr><tr><td align="left">Portuguese</td><td align="right">51</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/pt.m3u</code></td></tr><tr><td align="left">Serbian</td><td align="right">5</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/sr.m3u</code></td></tr><tr><td align="left">Spanish</td><td align="right">26</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/es.m3u</code></td></tr><tr><td align="left">Turkish</td><td align="right">39</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/tr.m3u</code></td></tr><tr><td align="left">Undefined</td><td align="right">5448</td><td align="left"><code>https://iptv-org.github.io/iptv/languages/undefined.m3u</code></td></tr></tbody></table>
|
Loading…
Reference in New Issue