Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add all supported API Fields in Movie Add to List Dialog#110

Open
evoblicec wants to merge 14 commits intoFlexget:develop from
evoblicec:MovieListWork
Open

Add all supported API Fields in Movie Add to List Dialog #110
evoblicec wants to merge 14 commits intoFlexget:develop from
evoblicec:MovieListWork

Conversation

@evoblicec
Copy link
Contributor

@evoblicec evoblicec commented May 9, 2020

Motivation for changes:

When adding movie from WebUI you can only specify the title.
API call currently support:

  • Movie title
  • Movie year
  • Movie Identifiers (IMDB_ID, TMDB_ID, etc.)

Adding year help accuracy for matching the correct movie
Adding movie ID from IMDB or TMDB allow an exact match

Detailed changes:

  • Moved all the new properties to a new structure addEntryOptionalProps as they are optional
  • Updated EntryFields to support new needed fields
  • Iterate over the new addEntryOptionalProps in the Dialog
  • Check if the properties need to be in an array for the API Call

Addressed issues:

  • Move Movie Year field as an optional field as you recent with recent change you can not add a movie without a year because all entries are initialized to ''

To Do:

  • Update Tests
  • Review how Movie Identifiers are listed

evoblicec and others added 14 commits April 8, 2020 12:57
Adding `year` field that will be forwarded to the API call
Change attribute to optional for EntryFields
Co-Authored-By: Kristen Mills <kristen@kristen-mills.com>
...m TMDB
For Movie entry display "Original Title" beside the Title when it exist and is different
Useful for non English movies with an existing title in local language
 Add year input field in Movie Add Dialog
Creating a new structurte for optionnal Properties
Adding IMDB_ID & TMDB_ID as they are already support by the API
Copy link

codecov bot commented May 9, 2020

Codecov Report

Merging #110 into develop will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@ Coverage Diff @@
## develop #110 +/- ##
===========================================
+ Coverage 90.72% 90.74% +0.01% 
===========================================
 Files 128 128 
 Lines 2738 2743 +5 
 Branches 439 442 +3 
===========================================
+ Hits 2484 2489 +5 
 Misses 250 250 
 Partials 4 4 
Impacted Files Coverage Δ
src/plugins/lists/base/hooks/api.tsx 91.66% <ø> (ø)
src/plugins/lists/base/AddFab/AddEntryDialog.tsx 100.00% <100.00%> (ø)
src/plugins/lists/movies/hooks.tsx 93.33% <100.00%> (+0.22%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6872238...7fe5f44. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /