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

Implement automatic sync #63

Merged
merged 48 commits into from
May 26, 2021
Merged
Changes from 1 commit
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
f808f59
Fix endless state loop in history pages
rafaelgomesxyz May 10, 2021
7433dc7
Add percentage watched for Netflix
rafaelgomesxyz May 10, 2021
a044f47
Fix Netflix watched date
rafaelgomesxyz May 10, 2021
c547b5b
Fix HBO Go scrobble/sync
rafaelgomesxyz May 10, 2021
8d4f7fe
Make saving/loading models easier
rafaelgomesxyz May 10, 2021
925d4d0
Add support for max value in number inputs
rafaelgomesxyz May 10, 2021
1bbbd38
Add option to filter history items by minimum percentage watched
rafaelgomesxyz May 10, 2021
003dd42
Change header buttons style
rafaelgomesxyz May 10, 2021
513a217
Implement rotating browser action icon
rafaelgomesxyz May 10, 2021
759a2a0
Allow enabling scrobble/sync separately
rafaelgomesxyz May 10, 2021
c6e63e5
Add option to enable automatic sync
rafaelgomesxyz May 10, 2021
e4149f3
Implement automatic sync cache
rafaelgomesxyz May 10, 2021
aa664c3
Allow loading items from different services in a single history page
rafaelgomesxyz May 10, 2021
779bad7
Remove item from the Trakt history when correcting an item that was a…
rafaelgomesxyz May 10, 2021
f5a8934
Allow adding missing watched date to multiple items at the same time
rafaelgomesxyz May 10, 2021
067a39e
Store options globally
rafaelgomesxyz May 16, 2021
b64834b
Replace regular tooltips with Material tooltips
rafaelgomesxyz May 12, 2021
4eaa446
Implement automatic sync
rafaelgomesxyz May 10, 2021
819d7fd
NB translations
MrMamen May 16, 2021
cb222c0
Fix bug that happens when enabling/disabling streaming service options
rafaelgomesxyz May 16, 2021
0f88463
Fix bug that does not show checkbox for items
rafaelgomesxyz May 17, 2021
3cdb7e5
Use initial last sync date for as long as the history page is open
rafaelgomesxyz May 17, 2021
00c5a96
Show better message when reaching the end of the history
rafaelgomesxyz May 17, 2021
d361b56
Fix bug that happens when clearing storage
rafaelgomesxyz May 19, 2021
0401a3f
Improve options layout
rafaelgomesxyz May 19, 2021
2fc0f42
Correct README
rafaelgomesxyz May 20, 2021
d87271c
Render empty auto sync page instead of rendering a blank page
rafaelgomesxyz May 20, 2021
2f9ca6d
Add button to continue loading history past last sync date
rafaelgomesxyz May 21, 2021
6f2d11d
Use hash history instead of browser history
rafaelgomesxyz May 22, 2021
b8bfe60
Improve options layout
rafaelgomesxyz May 22, 2021
0e3de3c
Store date format globally
rafaelgomesxyz May 23, 2021
6f56342
Show last sync date when hovering over the Clear Last Sync button
rafaelgomesxyz May 23, 2021
abf3478
Improve how models are saved/loaded
rafaelgomesxyz May 23, 2021
938ff1e
Store release date as moment instead of string
rafaelgomesxyz May 23, 2021
d6a8eb2
Change how adding with release date works
rafaelgomesxyz May 24, 2021
a150c4b
Add option to add with release date only for items that are missing t…
rafaelgomesxyz May 24, 2021
0883148
Fix bug that only checks services to sync if a scrobbler is enabled
rafaelgomesxyz May 24, 2021
afd49dc
Show that the auto sync is happening when hovering over the browser a…
rafaelgomesxyz May 24, 2021
f394175
NB translations
MrMamen May 24, 2021
bbafc5d
Ignore translation keys for specific files
rafaelgomesxyz May 25, 2021
dd4b8df
Implement logic to upgrade/downgrade storage if necessary
rafaelgomesxyz May 25, 2021
6c90334
Remove all items of a service from sync cache when clearing last sync…
rafaelgomesxyz May 26, 2021
cefe734
Fix bug that does not save last sync date when syncing
rafaelgomesxyz May 26, 2021
58c37fe
Trigger auto sync check when enabling/disabling auto sync or changing…
rafaelgomesxyz May 26, 2021
771f2a5
Save current date instead of the item watched date during auto sync
rafaelgomesxyz May 26, 2021
95799e0
Fix bug that duplicates auto sync cache
rafaelgomesxyz May 26, 2021
f65fc8a
Refresh options component when they change in another tab
rafaelgomesxyz May 26, 2021
ed93331
Fix errors
rafaelgomesxyz May 26, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/streaming-services/common/AutoSync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class _AutoSync {
...BrowserStorage.options.streamingServices,
[serviceId]: {
...BrowserStorage.options.streamingServices[serviceId],
lastSync: items[0]?.watchedAt?.unix() ?? now,
lastSync: now,
rafaelgomesxyz marked this conversation as resolved.
Show resolved Hide resolved
lastSyncId:
items[0]?.id ?? BrowserStorage.options.streamingServices[serviceId].lastSyncId,
},
Expand Down