Merge branch 'master' into add-limit-entries

This commit is contained in:
Andros Fenollosa 2023-10-26 14:53:27 +02:00 committed by GitHub
commit 0dfb71de00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 3 deletions

View File

@ -57,6 +57,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

View File

@ -1,7 +1,7 @@
feedgen==0.9.0 feedgen==0.9.0
feedparser==6.0.10 feedparser==6.0.10
listparser==0.19.0 listparser==0.19.0
lxml==4.9.2 lxml==4.9.3
python-dateutil==2.8.2 python-dateutil==2.8.2
pyyaml==6.0 pyyaml==6.0
pyinstaller==5.13.0 pyinstaller==6.0.0

View File

@ -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..")