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

Fix Issue #198 #210

Closed
wants to merge 3 commits into from
Closed

Fix Issue #198 #210

wants to merge 3 commits into from

Conversation

hmsmart
Copy link

@hmsmart hmsmart commented May 12, 2024

Fixes #198

In original code there are a few issues, preventing the Series Title Language setting from operating as expected.

  1. The romaji_as_series variable is hard-coded to True
  2. There is not logic to handle the "Always" condition -- Romaji->Series when no English

There was also another issue, where after modifying settings in the UI:
save_settings() is called and updates the instance's settings
get_cinfo() is a class method and cannot read the updated saved settings. So settings update in the UI on the AniList provider but do not take effect until restart.

Solution for this was to change the get_cinfo() method to be instance based. Other class methods do not reference the settings values, and can remain class methods.

logger.debug(f"[{'Processing':13s}] Successfully deleted old file and named tempfile as the old file",
extra=self._logging_extra)
# If move_on_update setting is True, we should move the temp file to new location, then delete original file.
if Settings().get("Main", "move_on_update") == True:
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you help me understand this new code and why it would be used?

Copy link
Author

Choose a reason for hiding this comment

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

Sorry! I thought the pull was matched to commit not pulling HEAD. Was adding file management functionality on my fork to aid in library management. Lemme close this out and make sure any file management code is removed.

@hmsmart hmsmart closed this May 15, 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
2 participants