mirror of
https://github.com/tanrax/RSSingle.git
synced 2024-11-14 04:55:40 +01:00
commit
124a57c033
@ -56,6 +56,12 @@ A file called `rss.xml` will be created.
|
|||||||
|
|
||||||
## Development
|
## Development
|
||||||
|
|
||||||
|
Activate Debug messages by console.
|
||||||
|
|
||||||
|
```
|
||||||
|
export SR_LOG_LEVEl=DEBUG
|
||||||
|
```
|
||||||
|
|
||||||
### Compiling
|
### Compiling
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
|
@ -96,7 +96,7 @@ def main():
|
|||||||
for feed in CONFIG["feeds"]:
|
for feed in CONFIG["feeds"]:
|
||||||
rss = parse_rss_feed(feed)
|
rss = parse_rss_feed(feed)
|
||||||
entries = rss.get("entries")
|
entries = rss.get("entries")
|
||||||
log.debug("Iterating over [input] feed entries..")
|
log.debug(f"Iterating over {feed} feed entries..")
|
||||||
for entry in entries:
|
for entry in entries:
|
||||||
log.debug("New feed entry created.")
|
log.debug("New feed entry created.")
|
||||||
|
|
||||||
@ -171,7 +171,7 @@ def main():
|
|||||||
fe.published("1970-01/01T00:00:00+00:00")
|
fe.published("1970-01/01T00:00:00+00:00")
|
||||||
fe.updated("1970-01/01T00:00:00+00:00")
|
fe.updated("1970-01/01T00:00:00+00:00")
|
||||||
continue
|
continue
|
||||||
except KeyError:
|
except Exception:
|
||||||
# Sometimes feeds don't even provide a publish date, so we default to
|
# Sometimes feeds don't even provide a publish date, so we default to
|
||||||
# the start date &time of the Unix epoch.
|
# the start date &time of the Unix epoch.
|
||||||
log.warning("Empty publish attribute, defaulting..")
|
log.warning("Empty publish attribute, defaulting..")
|
||||||
|
Loading…
Reference in New Issue
Block a user