Adds country name to channel name

This commit is contained in:
freearhey 2023-11-15 12:37:20 +03:00
parent 4477d214a9
commit 615205de86
6 changed files with 22 additions and 10 deletions

View file

@ -21,6 +21,7 @@ data.categories = _.keyBy(categories, 'id')
data.streams = _.groupBy(_streams, 'channel')
data.blocklist = _.groupBy(blocklist, 'channel')
data.channels = _.keyBy(channels, channel => channel.id.toLowerCase())
data.nameIndex = _.groupBy(channels, channel => channel.name.toLowerCase())
export const csr = true
export const ssr = true

View file

@ -26,8 +26,8 @@
</script>
<svelte:head>
<title>{channel && channel.name ? `${channel.name} iptv-org` : 'iptv-org'}</title>
<meta name="description" content="Detailed description of {channel.name}." />
<title>{channel && channel.displayName ? `${channel.displayName} iptv-org` : 'iptv-org'}</title>
<meta name="description" content="Detailed description of {channel.displayName}." />
{@html schema()}
</svelte:head>
@ -50,7 +50,7 @@
class="flex justify-between items-center py-3 pl-5 pr-4 rounded-t border-b dark:border-gray-700"
>
<div class="w-1/3 overflow-hidden">
<h1 class="text-l font-medium text-gray-900 dark:text-white">{channel.name}</h1>
<h1 class="text-l font-medium text-gray-900 dark:text-white">{channel.displayName}</h1>
</div>
<div class="inline-flex w-1/3 justify-end space-x-3">
<EditButton {channel} />