e
This commit is contained in:
parent
b110aee1e8
commit
00000d9ba6
11 changed files with 121 additions and 135 deletions
|
|
@ -76,7 +76,7 @@ async def fetch_xml(url: str) -> ET.Element | None:
|
|||
r = await client.get(url)
|
||||
r.raise_for_status()
|
||||
except Exception as e:
|
||||
print(f'Failed to fetch "{url}"\n{e}')
|
||||
print(f'Failed to fetch "{url}": {e}')
|
||||
return
|
||||
|
||||
try:
|
||||
|
|
@ -85,7 +85,7 @@ async def fetch_xml(url: str) -> ET.Element | None:
|
|||
return ET.fromstring(decompressed_data)
|
||||
|
||||
except Exception as e:
|
||||
print(f'Failed to decompress and parse XML from "{url}"\n{e}')
|
||||
print(f'Failed to decompress and parse XML from "{url}": {e}')
|
||||
|
||||
|
||||
def hijack_id(
|
||||
|
|
@ -182,7 +182,7 @@ async def main() -> None:
|
|||
|
||||
tree.write(epg_file, encoding="utf-8", xml_declaration=True)
|
||||
|
||||
print(f"EPG saved to {epg_file.name}")
|
||||
print(f"EPG saved to {epg_file.resolve()}")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue