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
Potential issue with full synchronization 'since' timestamp #17
Comments
Oh yes. The condition in line 101 should check for $since not being null. A PR would very welcome |
@JonOfUs you really don't need to go through the ordeal of filling any issue template if you clearly found the issue and can just shortly point out the bug in the code. Thanks for digging into this |
You're welcome! |
@JonOfUs I'll take this commit as the opportunity to add automated releases with github actions. Your fix will then be the first to be released in that way. Please bear with me if it takes a few days |
Okay. I'll try to find some other things, a new version for just such a small patch always sounds a bit overkill. |
Not at all. This is a bug. The fix must be released. Size doesn't matter. |
On full synchronization,
since
timestamp is set to 0 and so only episode and subscription changes from within the last week will be synchronized.Expected Behavior
Full synchronization after first synchronization
Current Behavior
Only episode actions and subscriptions from within last week will be synchronized
Possible Solution
If not intended, repair
since
-parameter or correctcreateDateTimeFromTimestamp
to be able to deal with since=0Steps to Reproduce
Context (Environment)
Using MariaDB 10.3, php8.0, Nextcloud 22, gpoddersync 1.0.9, Raspberry Pi OS 64bit, nginx 1.14.2
Detailed Description
I recognized that after deleting AntennaPod app data and re-synchronizing subscriptions and episode changes, some episode changes won't synchronize.
After some digging I found out that the full synchronization feature calls
/subscription_change/list
with since=0 and thereforecreateDateTimeFromTimestamp
will always return a timestamp from a week ago (because 0 is false).The problem with this is that episode changes and subscriptions that are older than one week won't get synchronized.
Is this behaviour intended?
nextcloud-gpodder/lib/Controller/EpisodeActionController.php
Lines 95 to 104 in a87c010
If not intended, I could PR a fix, already found one.
The text was updated successfully, but these errors were encountered: