From 9d6a211d36bd23dc8be328024510039223aaafdf Mon Sep 17 00:00:00 2001 From: Schimon Jehudah Date: Thu, 2 Nov 2023 12:16:13 +0000 Subject: [PATCH] Delete feedhandler.py --- slixfeed/feedhandler.py | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 slixfeed/feedhandler.py diff --git a/slixfeed/feedhandler.py b/slixfeed/feedhandler.py deleted file mode 100644 index 10ae3f0..0000000 --- a/slixfeed/feedhandler.py +++ /dev/null @@ -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 \ No newline at end of file