Skip to content

feat(youtube): display channel/playlist item duration, description and date#40

Open
Bnyro wants to merge 1 commit into
recloudstream:masterfrom
Bnyro:yt-cleanup-episodes
Open

feat(youtube): display channel/playlist item duration, description and date#40
Bnyro wants to merge 1 commit into
recloudstream:masterfrom
Bnyro:yt-cleanup-episodes

Conversation

@Bnyro

@Bnyro Bnyro commented Jul 15, 2026

Copy link
Copy Markdown

This also does some refactoring to get rid of the duplicated newEpisode logic.

Comment on lines +204 to +205
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
date = this@toEpisode.uploadDate?.instant?.toEpochMilli()

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't particularly like this for 2 reasons:

  • toEpochMilli (and all other java.time methods) only work on Android SDK 26+, so we currently don't show the date for SDK < 26, which is ugly.
  • I wanted to use addDate, but it only works with kotlinx.datetime types, not java.time types as we get from NewPipeExtractor

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.

1 participant