VortX
Posts: 8
|
Posted: Fri Nov 27, 2015 12:38 pm Post subject: Network info for Web Channels (Netflix, Amazon...) |
|
|
Shows not airing on networks but on Web Channels have (obviously ) the field "Network" empty
https://www.myepisodes.com/show/id-13907/
I guess the info comes from the field "network" in the TVMaze API (http://api.tvmaze.com/shows/1370 in this case), which is empty:
Code: | {
"id" : 1370,
"url" : "http://www.tvmaze.com/shows/1370/marvels-jessica-jones",
"name" : "Marvel's Jessica Jones",
"type" : "Scripted",
"language" : "English",
"genres" : ["Action", "Crime", "Science-Fiction"],
"status" : "Running",
"runtime" : 60,
"premiered" : "2015-11-20",
"schedule" : {
"time" : "00:01",
"days" : []
},
"rating" : {
"average" : 7.8
},
"weight" : 100,
"network" : null,
"webChannel" : {
"id" : 1,
"name" : "Netflix",
"country" : {
"name" : "United States",
"code" : "US",
"timezone" : "America/New_York"
}
},
"externals" : {
"tvrage" : 38797,
"thetvdb" : 284190
},
"image" : {
"medium" : "http://tvmazecdn.com/uploads/images/medium_portrait/17/43413.jpg",
"original" : "http://tvmazecdn.com/uploads/images/original_untouched/17/43413.jpg"
},
"summary" : "<p>Krysten Ritter plays Jessica Jones, first introduced in writer Brian Michael Bendis and artist Michael Gaydos' classic <em>ALIAS </em>comic series. After a tragic ending to her short-lived superhero stint, Jones is rebuilding her personal life and career as a detective who gets pulled into cases involving people with extraordinary abilities in New York City.</p>",
"updated" : 1448595180,
"_links" : {
"self" : {
"href" : "http://api.tvmaze.com/shows/1370"
},
"previousepisode" : {
"href" : "http://api.tvmaze.com/episodes/206167"
}
}
}
|
It would be nice to have the Web Channel info in the field Network for this type of shows:
Code: | if (network == null) {
webChannel.name;
) else {
network.name;
} |
Thanks in advance! |
|