-
Notifications
You must be signed in to change notification settings - Fork 3
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
Implement a foreign language-only filter for Subscene #433
Merged
vagabondHustler
merged 8 commits into
main
from
feature/foreign_only_subscene/230601165808
Jun 2, 2023
Merged
Implement a foreign language-only filter for Subscene #433
vagabondHustler
merged 8 commits into
main
from
feature/foreign_only_subscene/230601165808
Jun 2, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Owner
vagabondHustler
commented
Jun 1, 2023
- Added a new configuration option for filtering subtitles by foreign languages only.
- Implemented the UI component for toggling the foreign language filter.
- Updated the Subscene provider to send the foreign language filter value in the request header.
- Created a new SubsceneCookie data class to store the configuration values related to Subscene.
- Updated the AppConfig data class to include the foreign_only attribute.
- Added the foreign_only attribute to the application configuration JSON file.
- Modified the JSON I/O functions to handle the new attribute.
- Added a new configuration option for filtering subtitles by foreign languages only. - Implemented the UI component for toggling the foreign language filter. - Updated the Subscene provider to send the foreign language filter value in the request header. - Created a new SubsceneCookie data class to store the configuration values related to Subscene. - Updated the AppConfig data class to include the foreign_only attribute. - Added the foreign_only attribute to the application configuration JSON file. - Modified the JSON I/O functions to handle the new attribute.
- Added a new configuration option for filtering subtitles by foreign languages only. - Implemented the UI component for toggling the foreign language filter. - Updated the Subscene provider to send the foreign language filter value in the request header. - Created a new SubsceneCookie data class to store the configuration values related to Subscene. - Updated the AppConfig data class to include the foreign_only attribute. - Added the foreign_only attribute to the application configuration JSON file. - Modified the JSON I/O functions to handle the new attribute.
…github.com/vagabondHustler/subsearch into feature/foreign_only_subscene/230601165808
- Added a new toggle button in the search tab GUI called "Foreign language only" to allow the user to toggle whether to search for foreign language subtitles only. - Modified the AppSteps class in core.py to retrieve the value of the "foreign_only" configuration key using io_json.get_json_key and store it in the foreign_only attribute. - Modified the SkipStep class in core.py to check the foreign_only attribute when skipping the opensubtitles and yifysubtitles steps. - Updated the ToggleableFrameButton class in tkinter_utils.py to accept an optional tip_text parameter and display a tooltip with the provided text when available. - Updated the SubsceneScraper class in subscene.py to skip items with the child text content "upload" to avoid selecting irrelevant links. - Updated the Subscene class in subscene.py to create a custom header using the CustomSubsceneHeader class from the generic module, and added the necessary import statement. - Updated the Subscene class to pass the custom header to the find_subtitles method when searching for subtitles. - Renamed the function io_json.create_application_config to io_json.create_application_config_json to match the file format. - Updated the function call in the AppSteps class accordingly.
- Updated the `subscene_id` for the Khmer language from null to 79.
- Updated the text displayed when hovering over the foreign language only button with the mouse.
This was referenced Jun 2, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.