Added some cities and their region IDs.
This commit is contained in:
parent
8bdeacb875
commit
8b29e68200
2 changed files with 26 additions and 11 deletions
35
constants.py
35
constants.py
|
@ -1,17 +1,32 @@
|
|||
from enum import Enum
|
||||
|
||||
class CITY(Enum):
|
||||
# TODO: Add all these cities: https://c.myjcom.jp/shared/common/js/region/data/cityMaster.js?_=1735632747105
|
||||
# TODO: Change these to cities' names
|
||||
KYUSHU1 = 35
|
||||
KYUSHU2 = 36
|
||||
KYUSHU3 = 54
|
||||
MIYAGI1 = 52
|
||||
OSAKA1 = 40
|
||||
OSAKA2 = 46
|
||||
TOKYO1 = 19
|
||||
TOKYO2 = 100
|
||||
TOKYO1 = 12
|
||||
TOKYO2 = 221
|
||||
TOKYO3 = 222
|
||||
OSAKA1 = 28
|
||||
OSAKA2 = 40
|
||||
OSAKA3 = 42
|
||||
OSAKA4 = 44
|
||||
OSAKA5 = 30
|
||||
KYOTO = 46
|
||||
HYOGO = 106
|
||||
WAKAYAMA = 25
|
||||
YAMAGUCHI = 39
|
||||
FUKUOKA = 37
|
||||
KUMAMOTO = 227
|
||||
HOKKAIDO = 1
|
||||
MIYAGI = 52
|
||||
GUNMA = 13
|
||||
IBARAKI = 2
|
||||
CHIBA1 = 3
|
||||
CHIBA2 = 217
|
||||
CHIBA3 = 219
|
||||
CHIBA4 = 300
|
||||
KANAGAWA1 = 101
|
||||
KANAGAWA2 = 201
|
||||
SAITAMA1 = 3
|
||||
SAITAMA2 = 214
|
||||
|
||||
|
||||
class XMLTV:
|
||||
|
|
2
run.py
2
run.py
|
@ -43,7 +43,7 @@ def request_url() -> str:
|
|||
|
||||
|
||||
if not file_exists('data/channels.xml'):
|
||||
c_area = CITY.OSAKA1.value
|
||||
c_area = CITY.OSAKA2.value
|
||||
c_adult = 'true'
|
||||
|
||||
for c_type in [2, 3, 5, 120]: # GR / BS / BS4K / CS
|
||||
|
|
Loading…
Add table
Reference in a new issue