cecobask / imdb-trakt-sync

Automatic sync from IMDb to Trakt (watchlist, lists, ratings and history) using GitHub actions.
MIT License
91 stars 216 forks source link

feat: enable authless sync #52

Closed cecobask closed 2 months ago

cecobask commented 2 months ago

Added an IMDb auth method that allows syncing public lists without authentication. It's called none. Since the browser session has no information about the user, there is no watchlist syncing. In other words, any public IMDb lists can be synced to a Trakt account. However, none of the lists will be categorized as a watchlist on Trakt.

Resolves #47

codecov[bot] commented 2 months ago

Codecov Report

Attention: Patch coverage is 8.33333% with 33 lines in your changes missing coverage. Please review.

Project coverage is 43.61%. Comparing base (79e5363) to head (d71b370).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #52 +/- ## ========================================== - Coverage 44.16% 43.61% -0.55% ========================================== Files 14 14 Lines 1508 1534 +26 ========================================== + Hits 666 669 +3 - Misses 821 844 +23 Partials 21 21 ``` | [Files](https://app.codecov.io/gh/cecobask/imdb-trakt-sync/pull/52?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Tsvetoslav+Dimov) | Coverage Δ | | |---|---|---| | [internal/config/config.go](https://app.codecov.io/gh/cecobask/imdb-trakt-sync/pull/52?src=pr&el=tree&filepath=internal%2Fconfig%2Fconfig.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Tsvetoslav+Dimov#diff-aW50ZXJuYWwvY29uZmlnL2NvbmZpZy5nbw==) | `68.29% <50.00%> (+0.23%)` | :arrow_up: | | [internal/syncer/syncer.go](https://app.codecov.io/gh/cecobask/imdb-trakt-sync/pull/52?src=pr&el=tree&filepath=internal%2Fsyncer%2Fsyncer.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Tsvetoslav+Dimov#diff-aW50ZXJuYWwvc3luY2VyL3N5bmNlci5nbw==) | `0.00% <0.00%> (ø)` | | | [pkg/client/imdb.go](https://app.codecov.io/gh/cecobask/imdb-trakt-sync/pull/52?src=pr&el=tree&filepath=pkg%2Fclient%2Fimdb.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Tsvetoslav+Dimov#diff-cGtnL2NsaWVudC9pbWRiLmdv) | `0.00% <0.00%> (ø)` | |