-
-
Notifications
You must be signed in to change notification settings - Fork 239
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
feat: add tvdb indexer #899
base: develop
Are you sure you want to change the base?
Conversation
This pull request has merge conflicts. Please resolve the conflicts so the PR can be successfully reviewed and merged. |
Any update on this feature? 👀 I think this would help with the issue described here #648 |
Sorry, I've got a lot of work at the moment but I've continued to work on it, I'm trying to use directly the api that sonarr uses, skyhook. |
# Conflicts: # server/routes/tv.ts # src/components/TvDetails/index.tsx
Looks like half of the tests are failing. Could you take a look and try to fix them? And add some for TVDB? |
Hello, indeed, I solved the problem of the existing tests and I added tests for tvdb. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't go into detail, but the overall looks good.
I'll make a more in-depth review later.
data.episodes = data.episodes.map((episode) => { | ||
if (episode.still_path != null && episode.still_path !== '') { | ||
episode.still_path = `https://image.tmdb.org/t/p/original/${episode.still_path}`; | ||
} | ||
return episode; | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you made this change?
For src/components/TvDetails/Season/index.tsx?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's right, since episodes can differ between tvdb and tmdb, images from tvdb are used in some cases and those from tmdb in others. I had to move the url creation to the indexer classes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense.
You could write your if condition like this (and you shouldn't use loose equality !=
or ==
).
data.episodes = data.episodes.map((episode) => { | |
if (episode.still_path != null && episode.still_path !== '') { | |
episode.still_path = `https://image.tmdb.org/t/p/original/${episode.still_path}`; | |
} | |
return episode; | |
}); | |
data.episodes = data.episodes.map((episode) => { | |
if (episode.still_path) { | |
episode.still_path = `https://image.tmdb.org/t/p/original/${episode.still_path}`; | |
} | |
return episode; | |
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
This pull request has merge conflicts. Please resolve the conflicts so the PR can be successfully reviewed and merged. |
Description
Screenshot (if UI-related)
To-Dos
pnpm build
pnpm i18n:extract
Issues Fixed or Closed