linuxgaming

This is my own Linux gaming aggregate web app I built for personal use.
git clone git://git.beardyjay.co.uk/linuxgaming
Log | Files | Refs | README

commit f5e84a1b80c99dcce4549ce91e4a7cd7567237a1
parent 725328b87ea1839b36e0518d16a3d7168740693c
Author: Jay Scott <jay@beardyjay.co.uk>
Date:   Wed, 18 Jul 2018 00:10:50 +0100

added new source and error checking

Diffstat:
MCHANGELOG | 9+++++++--
MTODO.md | 5++---
Mconfig/feed_config.yaml | 12++++++++++--
Dlinuxgaming/static/images/icons/gog.jpg | 0
Alinuxgaming/static/images/icons/large_xpenguin.png | 0
Alinuxgaming/static/images/icons/xpenguin.png | 0
Mlinuxgaming/update.py | 7++++++-
7 files changed, 25 insertions(+), 8 deletions(-)

diff --git a/CHANGELOG b/CHANGELOG @@ -1,7 +1,11 @@ +Wed 18 Jul +--- + - Added new source "Xpenguin" + - RSS description check added. Tue 17 Jul --- @@ -13,4 +17,5 @@ Tue 17 Jul - Added type object to MongoDB - Added new type "podcast" - Added new search path - - Added new source, "Mostly Linux Podcast"- \ No newline at end of file + - Added new source, "Mostly Linux Podcast" + - Added GoG source and test page+ \ No newline at end of file diff --git a/TODO.md b/TODO.md @@ -12,5 +12,4 @@ - Add menu with source info / about etc - Move updates to AWS Lambda function - Add Itch.io games - - Add Steam games - - Add GoG- \ No newline at end of file + - Add Steam games+ \ No newline at end of file diff --git a/config/feed_config.yaml b/config/feed_config.yaml @@ -72,4 +72,12 @@ MostlyLinux: rss: website: "http://mostlylinux.libsyn.com" type: "podcast" - url: "http://mostlylinux.libsyn.com/rss"- \ No newline at end of file + url: "http://mostlylinux.libsyn.com/rss" + +XPenguin: + icon: "xpenguin.png" + about: "A weekly Linux gaming podcast hosted by HexDSL and HamishTPB." + rss: + website: "http://xpenguin.club/" + type: "podcast" + url: "http://xpenguin.club/rss.xml"+ \ No newline at end of file diff --git a/linuxgaming/static/images/icons/gog.jpg b/linuxgaming/static/images/icons/gog.jpg Binary files differ. diff --git a/linuxgaming/static/images/icons/large_xpenguin.png b/linuxgaming/static/images/icons/large_xpenguin.png Binary files differ. diff --git a/linuxgaming/static/images/icons/xpenguin.png b/linuxgaming/static/images/icons/xpenguin.png Binary files differ. diff --git a/linuxgaming/update.py b/linuxgaming/update.py @@ -35,10 +35,15 @@ def rss_update(): for feed in feeds: trimtitle = feed.title[0:150] + + if not hasattr(feed, 'description'): + description = "" + else: + description = feed.description data = {"name": section, "icon": feed_config[section]['icon'], "title": trimtitle, - "description": feed.description, + "description": description, "url": feed.link, "type": feed_config[section]['rss']['type'], "date": dateutil.parser.parse(feed.updated)}