add image exception
This commit is contained in:
parent
7c1a99dde8
commit
437cabf303
@ -197,6 +197,7 @@ class UpstreamHandler():
|
||||
try:
|
||||
embed_url = f'https://noembed.com/embed?url={self.upstream_safe}'
|
||||
async with self.proxy.session() as session:
|
||||
try:
|
||||
resp_embed_future = session.get(embed_url)
|
||||
resp_upstream_future = session.get(self.upstream)
|
||||
resp_embed = await resp_embed_future
|
||||
@ -236,6 +237,8 @@ class UpstreamHandler():
|
||||
data["og:image"] = standard_image
|
||||
except Exception as e:
|
||||
logger.info(e)
|
||||
except Exception as e:
|
||||
logger.info(e)
|
||||
return data
|
||||
|
||||
if icecast_server is not None and stream_server is not None:
|
||||
|
Loading…
x
Reference in New Issue
Block a user