Skip to content

Conversation

@tpikonen
Copy link
Contributor

Add a line after subheading in shownotes with episode release date, length and size.

I usually have just the 'Released' column visible in the episode list TreeView, so having these visible in the shownotes is useful.

The formatting and the items in the details can be discussed in this PR and changed accordingly.

@elelay
Copy link
Member

elelay commented Dec 27, 2020

Good idea! It seems maybe a bit crowded.

@elelay
Copy link
Member

elelay commented Mar 13, 2021

Here is a screenshot on my desktop:
capture

What do you think? It adds an unwanted line of contents for users with a square-ish display, but I see how it would fit a narrow display with all optional columns hidden.

@tpikonen tpikonen force-pushed the detailed-shownotes branch from 8520568 to 521e6ea Compare April 28, 2021 09:53
@tpikonen
Copy link
Contributor Author

The SailfishOS version of gPodder 4 has the episode details on the shownotes formatted like '2021-04-28 | 100.0 MiB | 35:00'.

I updated (and rebased) this PR to use this format and print the details with a smaller font. I'm going to use this on the adaptive branch, but it would be nice to have this everywhere.

@elelay
Copy link
Member

elelay commented Apr 28, 2021

Looks good 👍

condensed

@auouymous
Copy link
Member

LGTM, but 0.8 is too small to read. 0.9 is readable.

@tpikonen tpikonen force-pushed the detailed-shownotes branch from 521e6ea to deb21aa Compare May 3, 2021 11:48
@tpikonen
Copy link
Contributor Author

tpikonen commented May 3, 2021

I changed the scale to 0.9 and rebased.

@auouymous
Copy link
Member

Today | 0.00 B | 00:00

The columns use a hyphen for duration and nothing for size when they are unknown. Should this do something similar?

@elelay
Copy link
Member

elelay commented May 9, 2021

The columns use a hyphen for duration and nothing for size when they are unknown. Should this do something similar?

yes, it would be better

@tpikonen tpikonen force-pushed the detailed-shownotes branch from deb21aa to fbf59cf Compare May 9, 2021 19:03
@tpikonen
Copy link
Contributor Author

tpikonen commented May 9, 2021

The formatting is now the same as in columns. I'm somewhat itching to replace the "" for unknown size with a "-" though.

@auouymous
Copy link
Member

I agree with the "-", it looks better with or without a duration.

@tpikonen tpikonen force-pushed the detailed-shownotes branch from fbf59cf to 9208a98 Compare May 10, 2021 13:33
@tpikonen
Copy link
Contributor Author

Unknown size is now displayed as "-".

Add a line after subheading in shownotes with episode release date,
length and size.
@tpikonen tpikonen force-pushed the detailed-shownotes branch from 9208a98 to 124d7b3 Compare May 10, 2021 13:38
@tpikonen
Copy link
Contributor Author

Also added html.escape() to the HTML version.

@elelay elelay merged commit 76b8b85 into gpodder:master May 10, 2021
@elelay
Copy link
Member

elelay commented May 10, 2021

Merged, thanks 👍

@auouymous
Copy link
Member

What about the unresolved if-else code review?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants