Fix display count of results;
Thank you. mirux.
This commit is contained in:
parent
5104919588
commit
13b7c94f17
3 changed files with 15 additions and 8 deletions
|
@ -188,13 +188,13 @@ tags = ["linux", "debian", "ubuntu", "industry"]
|
||||||
lang = "en"
|
lang = "en"
|
||||||
name = "Dig Deeper"
|
name = "Dig Deeper"
|
||||||
link = "https://diggy.club/atom.xml"
|
link = "https://diggy.club/atom.xml"
|
||||||
tags = ["linux", "health", "computer", "wisdom", "life", "industry"]
|
tags = ["linux", "health", "computer", "wisdom", "research", "life", "industry"]
|
||||||
|
|
||||||
[[feeds]]
|
[[feeds]]
|
||||||
lang = "en"
|
lang = "en"
|
||||||
name = "Earth Newspaper"
|
name = "Earth Newspaper"
|
||||||
link = "https://earthnewspaper.com/feed/atom/"
|
link = "https://earthnewspaper.com/feed/atom/"
|
||||||
tags = ["technology", "world", "war", "politics"]
|
tags = ["technology", "sports", "culture", "world", "war", "politics"]
|
||||||
|
|
||||||
[[feeds]]
|
[[feeds]]
|
||||||
lang = "en"
|
lang = "en"
|
||||||
|
@ -380,7 +380,7 @@ tags = ["design", "diy", "household"]
|
||||||
lang = "en-us"
|
lang = "en-us"
|
||||||
name = "12bytes.org"
|
name = "12bytes.org"
|
||||||
link = "https://12bytes.org/feed.xml"
|
link = "https://12bytes.org/feed.xml"
|
||||||
tags = ["conspiracy", "health", "government", "war", "world"]
|
tags = ["conspiracy", "linux", "computer", "security", "privacy", "culture", "health", "government", "war", "world"]
|
||||||
|
|
||||||
[[feeds]]
|
[[feeds]]
|
||||||
lang = "en-us"
|
lang = "en-us"
|
||||||
|
@ -430,6 +430,12 @@ name = "Disroot Journal"
|
||||||
link = "https://disroot.org/en/blog.atom"
|
link = "https://disroot.org/en/blog.atom"
|
||||||
tags = ["decentralization", "privacy"]
|
tags = ["decentralization", "privacy"]
|
||||||
|
|
||||||
|
[[feeds]]
|
||||||
|
lang = "en-us"
|
||||||
|
name = "Earthing Institute"
|
||||||
|
link = "https://earthinginstitute.net/feed/atom/"
|
||||||
|
tags = ["health", "meditation", "yoga"]
|
||||||
|
|
||||||
[[feeds]]
|
[[feeds]]
|
||||||
lang = "en-us"
|
lang = "en-us"
|
||||||
name = "F-Droid"
|
name = "F-Droid"
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
__version__ = '0.1.104'
|
__version__ = '0.1.105'
|
||||||
__version_info__ = (0, 1, 104)
|
__version_info__ = (0, 1, 105)
|
||||||
|
|
|
@ -418,7 +418,7 @@ class XmppCommands:
|
||||||
result_link = result['link']
|
result_link = result['link']
|
||||||
message += ('Title : {result_name}\n'
|
message += ('Title : {result_name}\n'
|
||||||
'Link : {result_link}\n\n')
|
'Link : {result_link}\n\n')
|
||||||
message += '```\nTotal of {len(results)} feeds.'
|
message += f'```\nTotal of {len(results)} feeds.'
|
||||||
elif result['exist']:
|
elif result['exist']:
|
||||||
result_link = result['link']
|
result_link = result['link']
|
||||||
result_name = result['name']
|
result_name = result['name']
|
||||||
|
@ -488,7 +488,7 @@ class XmppCommands:
|
||||||
"Link : {}\n"
|
"Link : {}\n"
|
||||||
"\n"
|
"\n"
|
||||||
.format(result['name'], result['link']))
|
.format(result['name'], result['link']))
|
||||||
message += f'```\nTotal of {results} feeds.'
|
message += f"```\nTotal of {len(results)} feeds."
|
||||||
elif result['exist']:
|
elif result['exist']:
|
||||||
message = ('> {}\nNews source "{}" is already '
|
message = ('> {}\nNews source "{}" is already '
|
||||||
'listed in the subscription list at '
|
'listed in the subscription list at '
|
||||||
|
@ -771,7 +771,8 @@ class XmppCommands:
|
||||||
message = Feed.view_entry(url, feed, num)
|
message = Feed.view_entry(url, feed, num)
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
result = await FeedDiscovery.probe_page(self.settings_network, self.pathnames, url, document)
|
result = await FeedDiscovery.probe_page(
|
||||||
|
self.settings_network, self.pathnames, url, document)
|
||||||
if isinstance(result, list):
|
if isinstance(result, list):
|
||||||
results = result
|
results = result
|
||||||
message = f"Syndication feeds found for {url}\n\n```\n"
|
message = f"Syndication feeds found for {url}\n\n```\n"
|
||||||
|
|
Loading…
Reference in a new issue