Generate HTML episode description only when needed.
commit0fe74c18d2298e9e8d533d6e704468c0a2f6dfee
authorauouymous <au@qzx.com>
Mon, 21 Mar 2022 01:03:46 +0000 (20 19:03 -0600)
committerauouymous <au@qzx.com>
Sun, 19 Jun 2022 17:56:12 +0000 (19 11:56 -0600)
treedba79d57e45ff0005f0d1a9de22bff7e3c0c8444
parent97d9459b90944a2309c64ad5c87b2e6f2b7013dd
Generate HTML episode description only when needed.

PR #1094 generated an HTML description for any episode that lacked one.
That however increased the database size (almost double in worst case)
because it was storing both text and html versions of each description.
This fixes that by storing the episode thumbnail URL in the database and
generating the HTML description only when shownotes are drawn.

The text description is now cleared for episodes with an HTML
description. This further reduces database size for feeds that provide
both. It also fixes an issue for feeds that provide different text and
HTML descriptions, because the short description would show the text
description and shownotes would show the HTML description. And EQL only
searched the text descriptions, which might not match what the user sees
in the shownotes.
share/gpodder/extensions/tagging.py
share/gpodder/extensions/youtube-dl.py
src/gpodder/dbusproxy.py
src/gpodder/gtkui/shownotes.py
src/gpodder/model.py
src/gpodder/plugins/soundcloud.py
src/gpodder/query.py
src/gpodder/sync.py