zs

Zeitungsschau rss to email converter
git clone git://r-36.net/zs
Log | Files | Refs | LICENSE

commit 95de7da12a3e61233385fdcf452827b91dd34e61
parent 6931d72c70b47e9feb2be879260718592d0148e0
Author: Christoph Lohmann <20h@r-36.net>
Date:   Tue, 21 Mar 2017 19:44:49 +0100

Add youtube.com support. Stupid google.

Diffstat:
zeitungsschau/feed.py | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/zeitungsschau/feed.py b/zeitungsschau/feed.py @@ -206,6 +206,13 @@ def parse(astr): article["uuid"] = "" else: article["uuid"] = "%s" % (article["updated"]) + + # Certain websites need exceptions due to their + # »programmers« being stupid. + if "link" in feed: + if "youtube.com" in feed["link"]: + article["uuid"] = "" + for e in ("id", "title", "file"): if e in article: article["uuid"] = "%s-%s" % \