Skip to content

Instantly share code, notes, and snippets.

@FR073N
Created July 12, 2022 15:14
Show Gist options
  • Save FR073N/138d77f36278abdf8f8f0f5a76708761 to your computer and use it in GitHub Desktop.
Save FR073N/138d77f36278abdf8f8f0f5a76708761 to your computer and use it in GitHub Desktop.
ADN Catalog Sync
{
"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
]
}
]
}
}
{
"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