2011-03-06, 16:57
I have written a plugin for Disney Junior, however I have run into an issue where I can not identify streams that have multiple parts. Unfortunately, the videos are not consistent, so full episodes can have one, two or three parts. Here are some examples:
One part video
Two part video
Three part video
Right now I am identifying them directly when I build my stack (i.e. if it is Chuggington, build a 3 part stack. If it is Little Einsteins, build a one part stack). This method isn't robust so if new shows get added in the future or they change how many parts a particular episode uses it will break.
I would prefer to have it check if the stream is valid before it adds it to the stack. Does anyone know how this can be done?
EDIT: I found a way to scrape what I need to get the different parts for this site. However, I'd still be interested if there is a way to validate a stream before adding it to an item.
One part video
Two part video
Three part video
Right now I am identifying them directly when I build my stack (i.e. if it is Chuggington, build a 3 part stack. If it is Little Einsteins, build a one part stack). This method isn't robust so if new shows get added in the future or they change how many parts a particular episode uses it will break.
I would prefer to have it check if the stream is valid before it adds it to the stack. Does anyone know how this can be done?
EDIT: I found a way to scrape what I need to get the different parts for this site. However, I'd still be interested if there is a way to validate a stream before adding it to an item.