Skip to content

YouTube playlist addition date not always reliable #808

Description

@Markieta

Some YouTube channels recreate their playlist on each new episode release, causing all the playlist items' publishedAt to always be identical and more recent than the publication date, breaking the playlist order.

Potentially a feature request to force the use of playlist or publication date:

// Parse date added to playlist / publication date
dateStr := ""
playlistItem, ok := playlist[video.Id]
if ok && playlistItem.PublishedAt > snippet.PublishedAt {
// Use playlist item publish date if it's more recent
dateStr = playlistItem.PublishedAt
} else {
dateStr = snippet.PublishedAt
}

May be related to #61

See example below with the Answer for It! podcast:

Image

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions