switching to invidious.errexe.xyz
This commit is contained in:
parent
ce85315363
commit
b5d9bb127f
@ -143,7 +143,7 @@ async def index():
|
||||
results = None
|
||||
try:
|
||||
async with aiohttp.ClientSession() as session:
|
||||
url = f"https://invidious.reallyaweso.me/api/v1/search?q={query}" if query else "https://invidious.reallyaweso.me/api/v1/trending"
|
||||
url = f"https://invidious.errexe.xyz/api/v1/search?q={query}" if query else "https://invidious.errexe.xyz/api/v1/trending"
|
||||
async with session.get(url, timeout=3) as response:
|
||||
data = await response.json()
|
||||
if response.status == 200 and isinstance(data, list):
|
||||
@ -456,7 +456,7 @@ async def channel_m():
|
||||
channel_name = info.get('uploader', 'Unknown')
|
||||
|
||||
async with aiohttp.ClientSession() as session:
|
||||
async with session.get(f"https://invidious.materialio.us/channel/{channel_id}", timeout=10) as response:
|
||||
async with session.get(f"https://invidious.errexe.xyz/channel/{channel_id}", timeout=10) as response:
|
||||
if response.status != 200:
|
||||
return "Failed to fetch channel page.", 500
|
||||
soup = BeautifulSoup(await response.text(), "html.parser")
|
||||
|
Loading…
x
Reference in New Issue
Block a user