mirror of
https://github.com/ReviveMii/revivetube
synced 2025-09-04 04:20:59 +02:00
switching to invidious.errexe.xyz
This commit is contained in:
parent
ce85315363
commit
b5d9bb127f
@ -143,7 +143,7 @@ async def index():
|
|||||||
results = None
|
results = None
|
||||||
try:
|
try:
|
||||||
async with aiohttp.ClientSession() as session:
|
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:
|
async with session.get(url, timeout=3) as response:
|
||||||
data = await response.json()
|
data = await response.json()
|
||||||
if response.status == 200 and isinstance(data, list):
|
if response.status == 200 and isinstance(data, list):
|
||||||
@ -456,7 +456,7 @@ async def channel_m():
|
|||||||
channel_name = info.get('uploader', 'Unknown')
|
channel_name = info.get('uploader', 'Unknown')
|
||||||
|
|
||||||
async with aiohttp.ClientSession() as session:
|
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:
|
if response.status != 200:
|
||||||
return "Failed to fetch channel page.", 500
|
return "Failed to fetch channel page.", 500
|
||||||
soup = BeautifulSoup(await response.text(), "html.parser")
|
soup = BeautifulSoup(await response.text(), "html.parser")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user