-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patham-epg
More file actions
executable file
·70 lines (64 loc) · 3.19 KB
/
am-epg
File metadata and controls
executable file
·70 lines (64 loc) · 3.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/bin/bash
#
declare -A _name _desc _icon
_name[AghaniAghani]="Aghani Aghani"
_desc[AghaniAghani]="Selection of the latest Arabic music."
_icon[AghaniAghani]="https://github.com/forwardcomputers/forwardcomputers.github.io/raw/main/images/tv/aghaniaghani.png"
_name[ArabicaTV]="Arabica TV"
_desc[ArabicaTV]="Selection of the latest Arabic music."
_icon[ArabicaTV]="https://github.com/forwardcomputers/forwardcomputers.github.io/raw/main/images/tv/arabicatv.png"
_name[RotanaClip]="Rotana Clip"
_desc[RotanaClip]="Selection of the latest Arabic music."
_icon[RotanaClip]="https://github.com/forwardcomputers/forwardcomputers.github.io/raw/main/images/tv/rotana-clip.png"
_name[RotanaMusic]="Rotana Music"
_desc[RotanaMusic]="Selection of the latest Arabic music."
_icon[RotanaMusic]="https://github.com/forwardcomputers/forwardcomputers.github.io/raw/main/images/tv/rotana-music.png"
_name[Wanasah]="Wanasah"
_desc[Wanasah]="Selection of the latest Arabic music."
_icon[Wanasah]="https://github.com/tv-logo/tv-logos/raw/main/countries/united-arab-emirates/wanasah-ae.png"
_name[TechnoWarehouse.us]="Techno Warehouse"
_desc[TechnoWarehouse.us]="Techno from the 24/7 Techno Warehouse Channel on the DanceTelevision"
_icon[TechnoWarehouse.us]="https://github.com/forwardcomputers/forwardcomputers.github.io/raw/main/images/tv/techno-warehouse.png"
_name[USBB1000002TK]="Loupe 4k"
_desc[USBB1000002TK]="Still images from contemporary international artists with instrumental music."
_icon[USBB1000002TK]="https://tvpmlogopus.samsungcloud.tv/platform/image/sourcelogo/vc/70/05/96/USBB1000002TK_20220621T075839.png"
_name[StingrayHitList.ca]="Stingray Hit List"
_desc[StingrayHitList.ca]="Tune in for today's hits and a preview of tomorrow's sensations. You'll know what will be the next chart-topper before everyone else."
_icon[StingrayHitList.ca]="https://github.com/forwardcomputers/forwardcomputers.github.io/raw/main/images/tv/stingray-hit-list.png"
_name[CityNewsToronto]="CityNews 24/7 Toronto"
_desc[CityNewsToronto]="Latest Toronto news."
_icon[CityNewsToronto]="https://github.com/forwardcomputers/forwardcomputers.github.io/raw/main/images/tv/citynews247.png"
_name[GlobalNews]="Global News"
_desc[GlobalNews]="Latest Canada news."
_icon[GlobalNews]="https://github.com/forwardcomputers/forwardcomputers.github.io/raw/main/images/tv/citynews247.png"
_pathName="./"
_fileName="local.xml"
_fullName="${_pathName}${_fileName}"
cat > "${_fullName}" <<-_EOF
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE tv SYSTEM "xmltv.dtd">
<tv generator-info-name="local">
_EOF
for i in "${!_name[@]}" ; do
cat >> "${_fullName}" <<-_EOF
<channel id="${i}">
<display-name>${_name[$i]}</display-name>
<icon src="${_icon[$i]}" />
</channel>
_EOF
for j in {0..6}; do
for k in {0..23}; do
_startTime=$( date -d "$k:00 today +$j days" +"%Y%m%d%H%M%S +0000")
_endTime=$( date -d "$k:00 today +$j days 60 minutes" +"%Y%m%d%H%M%S +0000")
cat >> "${_fullName}" <<-_EOF
<programme channel="${i}" start="${_startTime}" stop="${_endTime}">
<title>${_name[$i]}</title>
<desc>${_desc[$i]}</desc>
</programme>
<rating>
<value>TV-G</value>
</rating>
_EOF
done
done
done
printf '</tv>\n' >> "${_fullName}"