Remove magnet link check
This commit is contained in:
parent
43fa1a463c
commit
f721059278
1 changed files with 1 additions and 5 deletions
|
@ -245,11 +245,7 @@ async def send_update(self, jid, num=None):
|
||||||
await mark_as_read(db_file, ix)
|
await mark_as_read(db_file, ix)
|
||||||
|
|
||||||
# Find media
|
# Find media
|
||||||
if url.startswith("magnet:"):
|
if enclosure:
|
||||||
media = action.get_magnet(url)
|
|
||||||
elif enclosure.startswith("magnet:"):
|
|
||||||
media = action.get_magnet(enclosure)
|
|
||||||
elif enclosure:
|
|
||||||
media = enclosure
|
media = enclosure
|
||||||
else:
|
else:
|
||||||
media = await action.extract_image_from_html(url)
|
media = await action.extract_image_from_html(url)
|
||||||
|
|
Loading…
Reference in a new issue