Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alter youtube published ts #67

Merged
merged 2 commits into from
Mar 30, 2022
Merged

Alter youtube published ts #67

merged 2 commits into from
Mar 30, 2022

Conversation

umputun
Copy link
Owner

@umputun umputun commented Mar 30, 2022

this PR should fix a part of #57, namely out-of-order records

I have seen both cases - published is in the future (not sure why and how youtube does it) and, more often - in past.

The only way to fix it is to assign time.Now() to entry.Published. This method will break the existing s.Store.Exist method as the key contains TS. Since #62 we also have a way to check for processed items that don't involve timestamps, but for back compatibility the old s.Store.Exist should stay, at least for time being.

@umputun umputun merged commit 384a56e into master Mar 30, 2022
@umputun umputun deleted the alter-yt-ts branch March 30, 2022 19:27
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