Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement episode and season search templates (#3732)
* Added the episode and season search templates to the tv_shows table. Implemented basic parsing of the templates for searching providers. * Mako changes for start using Vue for editShow.mako. * Small fixes to existing Vue.js code in config. * Moved sceneExceptions table from cache to main.db. * Fixed tvmaze debug log. ! Should be cherry picked to develop. * Fixed old bug where trakt is not using indexer to compare. * Fix bug in artwork, passing indexer_id while should pass object. ! Could be cherry picked. * Refactored sceneExceptions, returning now a named tuple in stead of tuple. This is needed because we add episode_search_template and season_search_template to the sceneExceptions. * Refactored get_scene_exceptions_by_name to use the exception_cache, and not hit the db. Made sure it returned a set of TitleExceptions (named tuples). * Fix typo * Changed most of the editShow.mako to use vue for form handling. * Added some show config items to apiv2. * Added indexer config items. * Updated theme slim src. * Added apiv2 routes for patching ignored and required words. * Added new vue.js component to editShow, for configuring lists of strings. * Added pencil_add.png img. * Disabled some css. Need to clean this up. * Moved anidb to helper. * Added anidb exception handling. * Added dogpile for anidb get release groups. * editShow.mako: Replacing get seriesObj from mako python to use apiv2. * Fixed quotes and removed json.dumps. * Styled the anidbReleaseGroupUi.mako component. Connected anidbReleaseGroupUi component properly to editShow.mako. * Fixed the propagation of the list of strings for the requiredWords and ignoredWords ui select list component. * cleaned up vue and removed python imports * Remove old components. * Add convert method to main.mako, so it can be used in other templates using namespaces. * Added new vue component name-pattern. * No need to create a new variable here. * Make use of the namespace for the convert method. * Remove the fillExamples methods, as i'm in the process of changing that to native vue. * config_Postprocessing.mako: Started implementing vue for the episode naming tab. * Replaced all the different custom naming types (sports, air by date, anime) with one component. * Add axios clients for apiv1 and webRout rest calls. * Move convert method in mako to namespace. * Get exceptions from show. * Api changes maps. * Introduced a new component for name patterns. * Remove token from api client. Will get overwritten by commit later. * Added onChangePattern method, to process name-pattern component updates. * Added postprocessing items to the apiv2 config. * Updated apiv2 config attributes for postprocessing. * Added MultiEp style select. * Improved name-pattern component for use with anime. * Made sure values are passed as properties. * Fixed emit object. * Also update animeNamingType (add absolute number) support to naming-pattern component. * Update muli-ep exaples when changing multi-ep style. * Fix db migration bugs after conflicts. * Added search_templates.py * Initialize an object on Series.py * Create search_template strings * Get search_template strings from main.db * Fix duplicate creation of strings * Separated read_from_db from generate method. This is needed, to create default search strings, but also to prevent overwriting the "enabled" property. * Add search_templates to apiv2 series result * Update table search_templates * Updated the fields * Fix regression in name_parser/parser.py * Move db connection to constructor. * Added save method * Added update method * Add config.templates and config.searchTemplates to apiv2. For saving new values. * Added @properties for the templates. Used for performing actions on saving through apiv2. * Added first UI's for creating search templates. * Add property aliases_to_json because of the new structure of exceptions. * Fix aliases in edit-show.vue because of new structure. * Yarn dev and eslint --fix * Fix enabling/disabling and saving default search templates. Fix saving scene exceptions * Add flag to templates for specifying season searches. * Add new tab to editShow "search templates" * Add new component for adding search templates. * Create new component for managing scene exceptions. * Component has support for adding season scene exceptions. * Remove unused import. * Add seasoned scene exceptions. * Fixed a number of small bugs, related to the renaming of seriesName (and series_name) to title. * Fixed issue for deleting scene exceptions. * Fix adding/removing scene exceptions. * removeEmpty is not used anymore. * Added newnlines between class. * Remove getAllSceneExceptions, as this is replaced by aliases. * Fixed display of Scene names in the show-header.vue * Fixed display of season scene names in display-show.vue (table headers) * Fixed bug in NameParser. * Updated api-description. * Updated apiv2 * Removed allSceneExceptions, as this is replaced by aliases. * Updated api-description.yml * Updated show-detailed.json * updated fixture with alias examples. * Added newline. * Fix stylelint * Fix test use TitleException. * yarn dev * Fix test_parse_anime tests. * Fix api-description * Fix flake warnings * Utilize the field "custom" to specify if a scene exception is a custom added exception. * Do not allow to remove non-custom added exceptions. * Small visual enhancement. * Add custom field for guessit tests. * Fix flake warnings * Fix typo * Flake indentation? * Let's try this * Show Medusa icon for exceptions that are not custom. * Show tooltip with more info. * Vue lint and css-lint fixes. * Flake, we keep trying. * Try to fix api tests. * hanging indent * Finally fixing this sh$t. * Hail to vis code with py (and decent flake8) support! * Change tooltip message * yarn dev * Add db constraint: Make sure template + season is always unique. * Rename show_name to title. * Add template_id. * Re-generate search templates on modifactions to scene_exceptions. * Prevent adding scene_exceptions that already exist. * This was previously a combination of scene_exception + season. But that doesn't make sense. * Add id to search_templates. * Do not pass search_templates, as it's already included in show.config... * Fix lint errors * hide/show templates tab. Bundle runtime and vendors * Fix merge conflicts and linting * Fix adding custom search templates. * Fixed merge conflicts * Make sure added search templates are not cleaned after restart * Decect duplicate template combinations * Add first version of basic searching using the search templates * Don't search irrelevant scene seasons * Improve default template creation for season scene exceptions * Remove debounce, not needed. * Fix debounced error * Place back debounce * yarn dev * Remove unique constraint * Use %0XE * No need to re-recreate all default templates when requesting from api. * Added info for displaying info on show / season exception. * Only get search_templates when detailed. * Add test-guessit component * Fixed show merging errors * Asume season 1, when no season number parsed * Add parsing of special episodes by episode title. * Fixed issue with scene_numbering for special episodes. * Change to staticmethod * Change check to startsWith * Rename remove -> remove_custom. * Add animation to red cross * update snapshot * Fix linting issues * Fix flake * this image is not used * Update changelog Co-authored-by: Alexis Tyler <xo@wvvw.me>
- Loading branch information