Add youtube.com support. Stupid google. - zs - Zeitungsschau rss to email converter
       
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) LICENSE
       ---
 (DIR) commit 95de7da12a3e61233385fdcf452827b91dd34e61
 (DIR) parent 6931d72c70b47e9feb2be879260718592d0148e0
 (HTM) 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(-)
       ---
 (DIR) 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" % \