Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Tuple or struct_time argument required #95

Closed
georf opened this issue Nov 17, 2017 · 1 comment
Closed

TypeError: Tuple or struct_time argument required #95

georf opened this issue Nov 17, 2017 · 1 comment
Labels

Comments

@georf
Copy link

georf commented Nov 17, 2017

Hello again,

I tried to add some of my favorite podcasts and got this error:

$ poca-subscribe --config /media/freigabe-ohne-backup/samba/podcasts/ add
Press enter to skip setting (except * mandatory)
* Url of subscription? http://www.ard.de/static/radio/radiofeature/rss/podcast.xml

Traceback (most recent call last):
  File "/usr/local/bin/poca-subscribe", line 43, in <module>
    main()
  File "/usr/local/bin/poca-subscribe", line 26, in main
    sub_dic, sub_category = poco.subscribe.user_input_add_sub()
  File "/usr/local/lib/python3.4/dist-packages/poco/subscribe.py", line 120, in user_input_add_sub
    url_stats = Feedstats(sub_dic['url'])
  File "/usr/local/lib/python3.4/dist-packages/poco/feedstats.py", line 26, in __init__
    self.entries = [x for x in self.doc.entries if \
  File "/usr/local/lib/python3.4/dist-packages/poco/feedstats.py", line 27, in <listcomp>
    age(x['published_parsed']) < 35]
  File "/usr/local/lib/python3.4/dist-packages/poco/feedstats.py", line 25, in <lambda>
    age = lambda x: (time.mktime(now) - time.mktime(x)) / (24*3600)
TypeError: Tuple or struct_time argument required
@brokkr brokkr added the bug label Nov 18, 2017
@brokkr
Copy link
Owner

brokkr commented Nov 18, 2017

Well spotted. Apparently they forgot to put a date on the the most recent episode which I presumed all episodes had. Fixing it.

@brokkr brokkr closed this as completed in 270eacb Nov 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants