dotfiles

Obligatory dotfiles repo
git clone git://git.danielmoch.com/dotfiles.git
Log | Files | Refs

commit 3f88408e00a4cd3ee213a8c41540fdc479e44523
parent 5cee235dd7ffb689026494a050d281cca428a329
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Fri, 21 Jun 2019 08:40:07 -0400

urlwatch: Fix Github filter

Diffstat:
M.config/urlwatch/hooks.py | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/.config/urlwatch/hooks.py b/.config/urlwatch/hooks.py @@ -87,7 +87,7 @@ class GitHubFilter(filters.FilterBase): def filter(self, data, subfilter=None): soup = BeautifulSoup(data, "html5lib") - releases = soup.select('h4.commit-title a') + releases = soup.select('div.release-header div.f1 a') if releases: results = [rel.text for rel in releases] @@ -107,7 +107,7 @@ def filter(self, data, subfilter=None): downloads = soup.select('table.list tr > td > span > a:nth-of-type(1)') if downloads: downloads = [dl.text for dl in downloads] - return '\n'.join(downloads) + return ''.join(downloads) else: return data @@ -121,7 +121,7 @@ def filter(self, data, subfilter=None): releases = soup.find_all('p', class_='release__version') if releases: releases = [rel.text for rel in releases] - return '\n'.join(releases) + return ''.join(releases) else: return data