From 21af0635fc3fecaf23b97cc2eaf2abc1ca6e4bc7 Mon Sep 17 00:00:00 2001 From: Yuuki Date: Thu, 2 Jan 2025 16:05:43 +0900 Subject: [PATCH] Fix PyCharm's formatting... --- run.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/run.py b/run.py index 7e96422..b06cebd 100644 --- a/run.py +++ b/run.py @@ -33,11 +33,8 @@ if not file_exists('data/channels.xml'): c_adult = 'true' for c_type in [2, 3, 5, 120]: # GR / BS / BS4K / CS - req_channels = Request( - 'https://tvguide.myjcom.jp/api/mypage/getEpgChannelList/?channelType={}&area={}&channelGenre=&course=&chart=&is_adult={}'.format( - c_type, c_area, c_adult)) - req_channels.add_header('user-agent', - 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36') # This is required, otherwise we get a 403: Forbidden error. + req_channels = Request('https://tvguide.myjcom.jp/api/mypage/getEpgChannelList/?channelType={}&area={}&channelGenre=&course=&chart=&is_adult={}'.format(c_type, c_area, c_adult)) + req_channels.add_header('user-agent', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36') # This is required, otherwise we get a 403: Forbidden error. channel_data = urlopen(req_channels).read() channel_data = json.loads(channel_data)