Created
July 12, 2022 15:14
-
-
Save FR073N/138d77f36278abdf8f8f0f5a76708761 to your computer and use it in GitHub Desktop.
ADN Catalog Sync
This file contains hidden or 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
| { | |
| "show":{ | |
| "id":1, | |
| "rating":"3", | |
| "amazonRating":"", | |
| "genre":"genre_from_db", | |
| "amazonGenre":"genre_for_amazon", | |
| "publicationDateStart":"date", | |
| "publicationDateEnd":"date", | |
| "image":"image_in_good_format", | |
| ...: "...all the other info from the show endpoint", | |
| "seasons":[ | |
| { | |
| "title":"Season 1", | |
| "description":"Description of the season", | |
| "rating":"3", | |
| "amazonRating":"", | |
| "people":"", | |
| "image":"", | |
| "genre":"", | |
| "videos":[ | |
| 1, | |
| 2, | |
| 3 | |
| ] | |
| } | |
| ] | |
| } | |
| } |
This file contains hidden or 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
| { | |
| "series":{ | |
| "1":{ | |
| "showMetadataUpdated":true, | |
| "videos":[ | |
| 1000, | |
| 12929 | |
| ] | |
| }, | |
| "2":{ | |
| "showMetadataUpdated":true, | |
| "videos":[ | |
| 1000, | |
| 12929 | |
| ] | |
| } | |
| } | |
| } | |
| // with the `showMetadataUpdated` you know if the serie was udpated | |
| // with videos you know which videos was inserted or updated | |
| // we still need to discuss when an episode is deleted, but this happens rarely. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment