I didn't see a part of my Instapaper-downloading recipe that talked about cornercontrols. I tried substituting 'title_row' for 'secondaryControls' here:
Code:
# The 'secondaryControls' div (in the grandparent of the
# 'Text' button) contains a bunch of class="host" spans:
# source site, date added, Share, Edit, [Move,] Delete
secondary = item.parent.parent.find('div', attrs={'class':'secondaryControls'})
if secondary:
spans = secondary('span', attrs={'class':'host'})
if len(spans) >= 2:
source = spans[0].string.strip()
article['description'] = source
article['date'] = self.parse_instapaper_date(spans[1].string.strip())
But this gave me the same error as previously:
Code:
Python function terminated unexpectedly
'NoneType' object is not iterable (Error Code: 1)
Traceback (most recent call last):
File "site.py", line 132, in main
File "site.py", line 109, in run_entry_point
File "site-packages\calibre\utils\ipc\worker.py", line 186, in main
File "site-packages\calibre\gui2\convert\gui_conversion.py", line 25, in gui_convert
File "site-packages\calibre\ebooks\conversion\plumber.py", line 989, in run
File "site-packages\calibre\customize\conversion.py", line 239, in __call__
File "site-packages\calibre\ebooks\conversion\plugins\recipe_input.py", line 109, in convert
File "site-packages\calibre\web\feeds\news.py", line 891, in download
File "site-packages\calibre\web\feeds\news.py", line 1060, in build_index
File "site-packages\calibre\web\feeds\__init__.py", line 346, in feeds_from_index
TypeError: 'NoneType' object is not iterable