-
Notifications
You must be signed in to change notification settings - Fork 55
/
icons.py
59 lines (56 loc) · 1.92 KB
/
icons.py
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
static_icons = (('La 1', 'rtve.png'),
('La 2', 'la2.png'),
('Antena 3', 'antena3.png'),
('La Sexta', 'a3-lasexta.jpg'),
('A3Series', 'a3media.png'),
('Nova', 'A3_Nova.min.png'),
('Neox', 'A3_Neox.min.png'),
('Mega', 'a3-mega.jpg'),
('Real Madrid TV', 'realmadridtv.jpg'),
('24h', None),
('Teledeporte', 'Teledeporte.min.png'),
('TVE 60 aniversario', None),
('13TV', 'tv-13tv.jpg'),
('DKiss', 'DKISS.min.png'),
('Aragon TV - Aragon (AR)', 'aragontv.png'),
('TPA - Asturias (AS)', None),
('IB3 - Baleares (IB)', 'ib3.png'),
('RTVC net - Canarias (CN)', None),
('Popular TV - Cantabria (CB)', None),
('TV3 - Catalu\xc3\xb1a (CT)', 'tv3.png'),
('324 - Catalu\xc3\xb1a (CT)', None),
('C33 - Catalu\xc3\xb1a (CT)', None),
('8TV - Catalu\xc3\xb1a (CT)', None),
('C. Extremadura - Extramadura (EX)', 'extremaduratv.png'),
('Telemadrid - Madrid (MD)', 'telemadrid.png'),
('Canal Parlamento - Madrid (MD)', None),
('Navarra TV - Navarra (NC)', None),
('Vaughan TV - Navarra (NC)', None),
('Eitb - P.Vasco (PV)', 'eitb.png'),
('RTV Ceuta - Ceuta (CE)', None),
('Ceuta TV - Ceuta (CE)', None),
('Onda Algeciras TV - C\xc3\xa1diz (AN)', None),
('TV Ibiza-Formentera - Baleares(IB)', None),
('Popular TV - Cantabria (CB)', None),
('Diocesano TV - Toledo (CM)', None),
('BTV/Betev\xc3\xa9 - Barcerlona (CT)', None),
('VOTV - Barcelona (CT)', None),
('Andorra TV - Lleida (CT)', None),
('Ribera TV - Valencia (VC)', None),
('Sevilla F.C.', None),
('Cordoba Internacional', 'CordobaInternacional.png'),
('HispanTV', 'hispantv.png'),
('Russia Today Espa\xc3\xb1ol', 'rt-esp.jpg')
)
def getIcon(channelName, method='static'):
if method == 'static':
for channel in static_icons:
if channel[0] == channelName:
return channel[1]
else:
return None
return None
if __name__ == "__main__":
print(getIcon('Cordoba Internacional'))
print(getIcon('Sevilla F.C.'))
print(getIcon('Vallmoll TV'))