diff --git a/core/diyanet.py b/core/diyanet.py index 110f977..6ce1af8 100644 --- a/core/diyanet.py +++ b/core/diyanet.py @@ -1,6 +1,7 @@ import pprint from datetime import datetime from typing import List +from urllib.parse import quote import httpx from aiocache import cached, Cache @@ -37,7 +38,8 @@ async def parse_prayer_times(url: str) -> List[PrayerTimes]: def make_location_url(location_id: int) -> str: - return f'https://namazvakitleri.diyanet.gov.tr/en-US/{location_id}' + url = f'https://namazvakitleri.diyanet.gov.tr/en-US/{location_id}' + return f'https://proxy.abdusco.workers.dev?url={quote(url)}' async def get_prayer_times(location_id: int) -> List[PrayerTimes]: