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

Login with trakt and sync history in movies #24

Closed
wants to merge 49 commits into from

Conversation

hadi-norouzi
Copy link
Collaborator

@hadi-norouzi hadi-norouzi commented Nov 5, 2023

I've implemented these features:

  1. login with Trakt in web-view and get access token
  2. get movie history by TraktID
  3. Now user can add movies to Trakt history

if you have any feedback, I would be happy to hear it.

#16

Hadi Norouzi and others added 30 commits October 4, 2023 09:28
# Conflicts:
#	data/trakt-auth/src/main/java/io/filmtime/data/trakt/auth/TraktAuthRepository.kt
@moallemi
Copy link
Owner

Dear @hadi-norouzi, just wanted to say a big thanks for the awesome pull request you dropped in this repo. It's clear you've put a lot of effort into it, and it really stands out. Can't wait to dig into the details!

Currently, I have some urgent commitments to attend to this week, which means I won't be able to get to your PR right away. However, I want to assure you that your PR is a priority for me, and I plan to allocate dedicated time for a review as soon as possible. I expect to be able to do this by the end of next week.

Thanks again for your hard work and dedication to the project. Your contributions are really valuable to me.

@hadi-norouzi
Copy link
Collaborator Author

hadi-norouzi commented Nov 13, 2023

Dear @hadi-norouzi, just wanted to say a big thanks for the awesome pull request you dropped in this repo. It's clear you've put a lot of effort into it, and it really stands out. Can't wait to dig into the details!

Currently, I have some urgent commitments to attend to this week, which means I won't be able to get to your PR right away. However, I want to assure you that your PR is a priority for me, and I plan to allocate dedicated time for a review as soon as possible. I expect to be able to do this by the end of next week.

Thanks again for your hard work and dedication to the project. Your contributions are really valuable to me.

It's my pleasure to work with you and I hope to be more valuable to this project.

moallemi
moallemi previously approved these changes Dec 30, 2023
Copy link
Owner

@moallemi moallemi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dear @hadi-norouzi

I just wanted to say I'm really sorry for getting to your PR so late. I know you put effort into this, and it wasn't cool to keep you waiting. Thanks for your patience.

Currently, you might not be in the mood to revise and update the existing PR, so I kindly request that you simply create issues where I've noted in the comments. This way, we can enhance the code later based on these new issues.

Best,
Reza

app/src/main/java/io/filmtime/MainActivity.kt Outdated Show resolved Hide resolved
Comment on lines +20 to +25
// TODO: move check token in a function
traktAuthLocalSource.tokens.firstOrNull() ?: return Result.Failure(GeneralError.ApiError("Unauthorized", 401))
val result = traktSyncService.getWatchedHistory(
type = "movies",
accessToken = "",
)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please create another issue for extracting this code as a new function


videoDetail.isWatched?.let {
when (it) {
true -> OutlinedButton(onClick = {}) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Create an issue for handling this onClick here

val traktId = _state.value.videoDetail?.ids?.traktId ?: return@launch
val result = traktHistoryRepository.addToHistory(traktId.toString())
when (result) {
is Failure -> TODO()
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Create an issue for handling this TODO

@hadi-norouzi
Copy link
Collaborator Author

hadi-norouzi commented Dec 31, 2023

Dear @hadi-norouzi

I just wanted to say I'm really sorry for getting to your PR so late. I know you put effort into this, and it wasn't cool to keep you waiting. Thanks for your patience.

Currently, you might not be in the mood to revise and update the existing PR, so I kindly request that you simply create issues where I've noted in the comments. This way, we can enhance the code later based on these new issues.

Best, Reza

I've no problem at all. I've just waiting for your youtube videos 😄.

@moallemi
Copy link
Owner

moallemi commented Jan 4, 2024

@hadi-norouzi, could you kindly reach out to me via Telegram (@moallemi) or Discord to discuss a few matters?

moallemi pushed a commit that referenced this pull request Jan 8, 2024
@moallemi moallemi closed this Jan 8, 2024
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.

2 participants