Merge pull request #150 from aspacca/patch-1
Send only text notification without art
This commit is contained in:
commit
d212dcf2bd
|
@ -44,14 +44,12 @@ async def send_entry(bot, room, entry):
|
||||||
if plexpy:
|
if plexpy:
|
||||||
pms = plexpy.pmsconnect.PmsConnect()
|
pms = plexpy.pmsconnect.PmsConnect()
|
||||||
pms_image = pms.get_image(entry["art"], 600, 300)
|
pms_image = pms.get_image(entry["art"], 600, 300)
|
||||||
if not pms_image:
|
if pms_image:
|
||||||
return
|
(blob, content_type) = pms_image
|
||||||
|
matrix_uri = await bot.upload_and_send_image(room, blob, "", True, content_type)
|
||||||
|
|
||||||
(blob, content_type) = pms_image
|
if matrix_uri is not None:
|
||||||
matrix_uri = await bot.upload_and_send_image(room, blob, "", True, content_type)
|
await bot.send_image(room, matrix_uri, "")
|
||||||
|
|
||||||
if matrix_uri is not None:
|
|
||||||
await bot.send_image(room, matrix_uri, "")
|
|
||||||
|
|
||||||
fmt_params = {
|
fmt_params = {
|
||||||
"title": entry["title"],
|
"title": entry["title"],
|
||||||
|
|
Loading…
Reference in New Issue