Delete feedhandler.py

This commit is contained in:
Schimon Jehudah 2023-11-02 12:16:13 +00:00
parent 01803de1a9
commit 9d6a211d36

View file

@ -1,18 +0,0 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from urllib.parse import urlparse
async def get_title(url, feed):
"""
Get title of feed.
:param url: URL
:param feed: Parsed feed
:return: Title or URL hostname.
"""
try:
title = feed["feed"]["title"]
except:
title = urlparse(url).netloc
return title