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

Improvements Phase #22

Closed
wants to merge 36 commits into from
Closed

Conversation

Nitzantomer1998
Copy link

Optimize Performances.

Updating getSubs efficiency.

Currently, when it comes to TV series, it's retrieving all subtitles associated with a particular show. However, We could enhance efficiency by fetching only the necessary subtitles for the specified season and episode, saving a significant amount of time.
@Nitzantomer1998
Copy link
Author

Solving Issue #21

@TwilightMercy
Copy link

I can confirm this is the correct method to search for tv shows through Wizdom's API
(Using same method in kodi subtitles addon)

Nitzan - Are you the dev of this? : )
https://stremio-addons.netlify.app/universal-hebrew-subtitles#

@Nitzantomer1998
Copy link
Author

Since there was no response, I decided to build a solution myself. I focused on creating better-structured code and optimizing the addon performances. Additionally, I've integrated a few more websites into the addon, making it more universal and keep going.

Soon (when i finished my exams), i will work on a configuration option that allows users to select which websites they want to use for subtitles. Currently, it utilizes the Wizdom API & OpenSubtitles API (only for Hebrew).

@maormagori
Copy link
Owner

Hey @Nitzantomer1998 ,
First off a big thank you for picking up the glove and fixing things by yourself.
Both this addon and the Ktuvit one have admittedly become somewhat neglected as I shifted my focus away from Stremio and onto other projects. Your interest, along with that of others who have reached out privately, has reminded me how stale they were.
I'll find the time this weekend to review your contributions and refactor this outdated project.
Let me know if there are any other areas I should focus on!

Again, thanks for contributing 🙌

@maormagori
Copy link
Owner

maormagori commented May 16, 2024

Btw,
I'll also revamp Ktuvit's addon while I'm at it so feel free to go over it and open issues/PR accordingly.

@Nitzantomer1998 Nitzantomer1998 changed the title Solving Issue #21 Solving Issue #21 & #23 May 17, 2024
@Nitzantomer1998
Copy link
Author

Solving Issue #23

@Nitzantomer1998 Nitzantomer1998 changed the title Solving Issue #21 & #23 Improvements Phase May 17, 2024
@Nitzantomer1998
Copy link
Author

Solved Issue #24.

I apologize if it's hard to track due to the numerous commits, as I was trying to be thorough. The project is now structured more appropriately, with services, controllers, configurations, and more, making it easier to grow and maintain.

Please note that I recommend implementing a .env file for sensitive information in the deployment (baseConfig.js).

Additionally, I couldn't understand how your logger worked, so I deleted it to test the application. If you continue using a logger, I suggest switching to Winston, as it's shorter and easier to use.

@maormagori maormagori self-requested a review May 18, 2024 14:13
@maormagori
Copy link
Owner

Hey @Nitzantomer1998,

I'm currently reviewing your PR, and as you suspected, it's quite extensive. I realize I haven't provided any contribution guidelines, so it's understandable. There are certainly some valuable suggestions within your PR, although it's apparent that you had grander plans in mind when drafting it (referring to your awesome addon project 😄).

To ensure sustainability, I've decided to close this PR for now and focus on refactoring the current project while implementing automated tests for PRs. This approach will enable us to handle PRs more efficiently. If this interests you, I'd welcome your assistance! However, if you prefer, feel free to open new, focused PRs to address specific areas of the project that you believe require updating.

I want to emphasize that this decision isn't meant to diminish the effort you've invested. It's simply about facilitating a thorough discussion of each change and maintaining the manageable scope of this project.

P.S. If you still wish I'll go over the code provided and comment my 2 cents on it, LMK!
Cheers🙏

@maormagori maormagori closed this May 18, 2024
@maormagori
Copy link
Owner

By the way,
The logger implemented was used to stream logs to a dedicated Splunk instance as the PaaS platform this addon runs doesn't persist logs : (.
That Splunk instance is long gone so I'll have to find different solution.

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.

None yet

3 participants