import org.serviio.library.online.WebResourceUrlExtractor import org.serviio.library.online.WebResourceContainer import org.serviio.library.online.PreferredQuality import groovy.json.JsonSlurper import org.serviio.library.online.WebResourceItem import org.serviio.library.online.ContentURLContainer import org.serviio.library.metadata.MediaFileType import java.text.SimpleDateFormat /** * WebResource extractor plugin for SBSonDemand (Australia only) * * @author ttguy * @version 0.1.5 0.1 This version working for featured programs - 10 on 22/9/2012. No thumbnails are sent 0.1.1 This version working for featured programs - 1-19 on 22/9/2012. No thumbnails are sent 0.1.2 This version working for feeds listed below 23/9/2012. Thumbnails are sent 0.1.3 Fixes a bug made apparent by an XML structure not previously seen 0.1.4 Branch from 0.1.3 and different to 0.2.1 which is also a branch from 0.1.3. Made it work with SBS changes of 6/10/2012 0.1.5 Fix issue with prefered quality not working and making some videos not play at all. In for eg the html in a video page like http://www.sbs.com.au/ondemand/video/2285470848 There is a json formated data section vod.cache.video and a item in that plfile$url":"http://link.theplatform.com/s/dYtmxB/dWQ_e6_x_hjMT_ISLDJ330awEgcZavEk?feed=Video%20-%20Single And when you pull that file it gives you a smil xml format file with links like