Commit Graph

80 Commits

Author SHA1 Message Date
Teemu Ikonen 490d5695a9 Merge tag '3.11.2' into dev-adaptive
gPodder 3.11.2 release
2023-08-15 15:08:21 +03:00
auouymous 5224565642 Always show released time in shownotes. 2023-04-29 22:11:27 -06:00
Teemu Ikonen f00eef5e5c Merge branch 'master' into dev-adaptive 2022-12-19 23:02:01 +02:00
Teemu Ikonen 6bd0bb0530 Remove unused imports and pass statements
Fixes flake8 error F401.
Most errors were fixed by running

autoflake -i -r --remove-all-unused-imports .

which also removes unnecessary 'pass' statements, some by hand-editing.
2022-11-14 18:32:09 +02:00
Teemu Ikonen 236a4c9966 Replace is_on_mobile_screen() with have_touchscreen() 2022-11-03 15:03:52 +02:00
Teemu Ikonen b6ac9776d8 Navigate back from shownotes with 'edge-overshot' signal 2022-08-24 11:54:26 +03:00
Teemu Ikonen 2cc1a7614a Merge branch 'master' into dev-adaptive 2022-07-02 23:31:38 +03:00
auouymous 0fe74c18d2 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.
2022-06-19 11:56:12 -06:00
Teemu Ikonen 03a6aabf96 Merge branch 'master' into dev-adaptive 2022-04-30 23:48:12 +03:00
Thomas Perl 3cbb36167c Gtk UI: Handle links in HTML shownotes 2022-04-23 13:54:31 +02:00
Teemu Ikonen 52e631bc73 gPodderShownotesLabel: Double html.escape link titles 2022-03-25 23:43:18 +02:00
Teemu Ikonen cab3629813 Merge branch 'master' into dev-adaptive 2022-02-04 12:30:02 +02:00
Teemu Ikonen 011718c032 gPodderShownotesHTML: Replace Gtk.Action with Gio.SimpleAction
Gtk.Action is deprecated.
2022-02-02 09:31:27 +02:00
Teemu Ikonen 52a02a9658 gPodderShownotesLabel: Make episode heading a clickable link 2021-08-12 11:33:26 +03:00
Teemu Ikonen 7003148ec8 Merge commit '0578ba503e2dd772b6bdfa4df90ce537ed7c481f' into dev-adaptive 2021-08-12 10:02:45 +03:00
Teemu Ikonen cfc65c6c0c gPodderShownotesLabel: Reset shownotes to top when changing episodes 2021-08-12 09:59:07 +03:00
Teemu Ikonen 7179478d27 Merge commit '7e6e6c002884813c35a33429565823acd40f2cdd' into dev-adaptive 2021-08-12 09:58:29 +03:00
Teemu Ikonen 7b2a3840e5 Fix pycodestyle errors 2021-08-04 15:06:57 +03:00
Teemu Ikonen 4a5ef8eb0b gPodderShownotesLabel: Support dict-based details_fmt 2021-08-04 13:21:44 +03:00
Teemu Ikonen c660fe9517 Merge commit '8dd8b6b2cd6b6c7a0a2ef26f9a7597fcd9976437' into adaptive 2021-08-04 13:14:50 +03:00
Eric Le Lay 8f9159ebc7
Merge pull request #1098 from auouymous/make-text-shownotes-title-clickable
Make the text shownotes title a clickable and copyable link.
2021-07-26 21:13:55 +02:00
auouymous 0578ba503e Make the text shownotes title a clickable and copyable link. 2021-07-17 20:38:10 -06:00
auouymous e9353588f3 Reset shownotes to top when changing episodes.
This prevents the title from being partially clipped when moving between
episodes after scrolling the shownotes for one of them.
2021-07-16 05:16:08 -06:00
Eric Le Lay 8dd8b6b2cd fix 'msgid' format string with unnamed arguments cannot be properly localized warning 2021-06-10 10:28:54 +02:00
Teemu Ikonen fbc40e6623 Use gPodderShownotesLabel for text shownotes 2021-05-24 20:31:41 +03:00
Teemu Ikonen 9500501dfd Add gPodderShownotesLabel
A gPodderShownotes variant using GtkLabel.
2021-05-24 20:31:16 +03:00
Teemu Ikonen 4156b68f9f Merge branch 'master' into adaptive 2021-05-17 22:38:54 +03:00
Teemu Ikonen 124d7b38a2 Add more episode details to shownotes
Add a line after subheading in shownotes with episode release date,
length and size.
2021-05-10 16:37:35 +03:00
Teemu Ikonen 825e21ff17 Revert "Add Webkit context to shownotes class and initialize it"
This reverts commit 90c65a3708.

Fixes #972.
2021-03-07 10:38:17 +02:00
Teemu Ikonen f0f1a21646 Hack a fix to shownotes key event propagation 2021-02-15 22:02:10 +02:00
Teemu Ikonen 90c65a3708 Add Webkit context to shownotes class and initialize it 2021-02-15 13:43:33 +02:00
Eric Le Lay c119c45fcf html_shownotes: restore translation and fix margins 2020-12-26 15:19:09 +01:00
Teemu Ikonen 0e3b8aff9d Refactor shownotes
Use GtkOverlay to show link destination in both HTML and text shownotes.

Remove GtkTextView from HTML shownote pane and write a HTML header from
episode title and other data. The title section now scrolls with the
rest of the description text. Plain text descriptions are converted to
HTML by adding <br> tags on newlines.
2020-12-25 00:24:16 +02:00
Eric Le Lay b18fa6674d fix linter warnings 2020-05-13 08:36:22 +02:00
Eric Le Lay 233d4adf48 remove dark-theme detection 2020-05-10 16:56:19 +02:00
Eric Le Lay 5340667b82 use TextView foreground, background, link colors 2020-05-10 16:55:47 +02:00
Eric Le Lay 241aa360a9 smaller episode shownotes font size 2020-05-09 16:31:02 +02:00
Eric Le Lay 834367e25c use the label's colors; can't get the link color
but it returns the same color as the foreground, which is not bad
2020-05-09 16:30:53 +02:00
Eric Le Lay 0e7ba56643 don't use blue hyperlinks on dark themes 2020-05-08 20:10:42 +02:00
Eric Le Lay 1f99e166fb fix jumping webview when hovering a link with long url
the label showing the URL at the bottom of the screen then expands the view
horizontally, causing a relayout.
2019-05-27 21:09:59 +02:00
Eric Le Lay 28e2ef0a06 use channel auth in html shownotes 2019-05-05 17:03:59 +02:00
Eric Le Lay 76feaa7117 fix has_website_link() usage as attribute 2019-05-05 16:47:23 +02:00
Eric Le Lay 48ac787af9 fix #412 let html shownote title spill to next line instead of hzscroll 2018-08-15 16:34:26 +02:00
Eric Le Lay 3d2e7822be add missing require_version 2018-08-02 22:40:33 +02:00
MarkusHackspacher 82f41f4c21 sorting imports
with isort -y -rc
see #393
2018-07-24 11:08:10 +02:00
MarkusHackspacher 0e32494b94 fix codestyle
recognized by travis CI
2018-07-23 11:17:47 +02:00
Eric Le Lay e4334eafb4 gPodderShownotesText prefer description_html to show hyperlinks
fixes #414 comment
2018-07-21 22:01:38 +02:00
Eric Le Lay f8a06d025b gPodderShownotesText shows target and change cursor when mouse pointer is over an hyperlink 2018-07-21 21:58:32 +02:00
Eric Le Lay 031b56f532 shownotes color theme: fix undefined variable stylesheet 2018-02-18 19:22:33 +01:00
Eric Le Lay 444647b23d theme-aware shownotes color in webview
fixes #369
2018-02-15 23:11:41 +01:00