You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding posts... Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/mapa/code/pocketrss/__main__.py", line 4, in <module>
main()
File "/home/mapa/code/pocketrss/main.py", line 22, in main
for item in get_new_items():
File "/home/mapa/code/pocketrss/feeds.py", line 24, in get_new_items
post_time = int(mktime(post['published_parsed']))
File "/usr/lib/python3/dist-packages/feedparser.py", line 364, in __getitem__
return dict.__getitem__(self, key)
KeyError: 'published_parsed'`
running Lubuntu 20.04
python 3.8.5
i've thought maybe one of the feeds was malformatted, but i checked all my feeds with liferea, and they're all working.
The text was updated successfully, but these errors were encountered:
I am not actively developing this project (nor am I actively using it, as I personally stopped using Pocket over two years ago). It's possible that at some point I will pick it up again (especially if I start using Pocket again), but at the moment it isn't a priority of mine.
The upshot of that is that I don't intend to spend the time to fix this issue. If you are able to fix it and you submit a pull request, I am more than happy to review and merge.
It looks like I'm assuming that all feeds will have this published_parsed attribute (or perhaps that's a parsed version of a published attribute from the RSS feed). You could modify the logic to handle not having a published time at all, though I'm not sure exactly what that would look like, as the program uses that timestamp to determine which items it's already fetched.
running Lubuntu 20.04
python 3.8.5
i've thought maybe one of the feeds was malformatted, but i checked all my feeds with liferea, and they're all working.
The text was updated successfully, but these errors were encountered: