Module Import alias ImportFrom alias TryExcept body Import alias identifier handlers ExceptHandler type NameLoad body Import alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Dict Str Str Str Str Str Str Num Num Num Num Num Num Assign NameStore Call AttributeLoad NameLoad attr Str ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr BoolOpAnd NameLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body If CompareIn AttributeLoad NameLoad attr NameLoad body Return SubscriptLoad NameLoad Index AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body If CompareNotIn AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr If NameLoad body Return SubscriptLoad NameLoad Index Num decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str Str Str Str Str Str Call AttributeLoad Str attr Call NameLoad NameLoad Str Str Str Str Str NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str If UnaryOpNot NameLoad body Return NameLoad Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Dict For NameStore Call AttributeLoad NameLoad attr Str body Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr Str attr Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad BinOpAdd BinOpAdd SubscriptLoad AttributeLoad NameLoad attr Slice Num Str AttributeLoad NameLoad attr attr Str Assign NameStore CompareEq NameLoad Str Assign NameStore Call NameLoad keyword Call AttributeLoad Str attr keyword NameLoad keyword Call AttributeLoad NameLoad attr Str keyword NameLoad keyword IfExp NameLoad NameLoad NameLoad keyword Num If NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Assign NameStore BinOpDiv Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Num Assign NameStore Call AttributeLoad Str attr NameLoad Assign SubscriptStore NameLoad Index NameLoad Call NameLoad AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad BinOpMod Str TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad NameLoad NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad NameLoad NameLoad Str decorator_list Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str Expr Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call NameLoad NameLoad Str Assign NameStore Call NameLoad NameLoad Str Assign NameStore Call NameLoad NameLoad Str Assign NameStore Call NameLoad NameLoad Str Assign NameStore Call NameLoad NameLoad Str If NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore Call NameLoad NameLoad Str attr Call AttributeLoad Call NameLoad Call NameLoad attr Assign NameStore Call NameLoad NameLoad Str Assign NameStore Call NameLoad NameLoad Str Assign AttributeStore Call NameLoad NameLoad Str attr Str If NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad Str attr NameLoad Assign NameStore Call NameLoad NameLoad Str Assign AttributeStore Call NameLoad NameLoad Str attr Str Assign AttributeStore Call NameLoad NameLoad Str attr Str Expr Call NameLoad NameLoad Str Expr Call NameLoad NameLoad Str Expr Call NameLoad NameLoad Str Assign NameStore Call NameLoad NameLoad Str Assign AttributeStore Call NameLoad NameLoad Str attr Str Assign AttributeStore Call NameLoad NameLoad Str attr Str Assign AttributeStore Call NameLoad NameLoad Str attr Str Assign AttributeStore Call NameLoad NameLoad Str attr Str Expr Call NameLoad NameLoad Str Assign AttributeStore Call NameLoad NameLoad Str attr Str Assign AttributeStore Call NameLoad NameLoad Str attr Str Assign NameStore Call NameLoad NameLoad Str Assign AttributeStore Call NameLoad NameLoad Str attr Str Assign NameStore Call NameLoad NameLoad Str Assign AttributeStore Call NameLoad NameLoad Str attr Str Return Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list Assign NameStore NameLoad
N/A N/A re uuid uuid4 N/A N/A N/A xml.etree.cElementTree ET N/A N/A N/A ImportError N/A N/A xml.etree.ElementTree ET livestreamer.plugin Plugin livestreamer.plugin.api http livestreamer.stream RTMPStream livestreamer.compat urlparse N/A ITV_PLAYER_USER_AGENT Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.107 Safari/537.36 N/A LIVE_SWF_URL http://www.itv.com/mediaplayer/ITVMediaPlayer.swf N/A ONDEMAND_SWF_URL http://www.itv.com/mercury/Mercury_VideoPlayer.swf N/A CHANNEL_MAP N/A itv itv2 itv3 itv4 itvbe citv 1 2 3 4 8 7 N/A _url_re N/A N/A re compile https://(?:www.)?itv.com/itvplayer/(?P<stream>.+) ITVPlayer N/A Plugin N/A __init__ N/A N/A self url N/A N/A N/A N/A N/A Plugin __init__ self url N/A match N/A N/A _url_re match url N/A N/A self _stream N/A match N/A N/A N/A match groupdict N/A stream N/A can_handle_url N/A N/A self url N/A N/A N/A match N/A N/A _url_re match url N/A match N/A classmethod channel_id N/A N/A self N/A N/A N/A N/A N/A self _stream CHANNEL_MAP N/A N/A N/A CHANNEL_MAP N/A N/A self _stream N/A property production_id N/A N/A self N/A N/A N/A N/A N/A self _stream CHANNEL_MAP N/A N/A res N/A N/A http get N/A self url verify False N/A production_id_match N/A N/A re findall "productionId":"(.*?)", N/A res text flags N/A re DOTALL N/A production_id_match N/A N/A N/A production_id_match N/A 0 N/A property _get_streams N/A N/A self N/A N/A N/A 
            Find all the streams for the ITV url
            :return: Mapping of quality to stream
         N/A soap_message N/A N/A self _soap_request N/A headers N/A Content-Length Content-Type Host Origin Referer SOAPAction User-Agent X-Requested-With N/A N/A {0:d} format N/A len soap_message text/xml; charset=utf-8 mercury.itv.com http://www.itv.com http://www.itv.com/Mercury/Mercury_VideoPlayer.swf?v=null http://tempuri.org/PlaylistService/GetPlaylist ITV_PLAYER_USER_AGENT ShockwaveFlash/16.0.0.305 N/A res N/A N/A http post http://mercury.itv.com/PlaylistService.svc?wsdl headers headers data soap_message N/A xmldoc N/A N/A http xml res N/A mediafiles N/A N/A xmldoc find .//VideoEntries//MediaFiles N/A N/A mediafiles N/A N/A None N/A rtmp N/A N/A mediafiles attrib N/A base N/A streams N/A N/A mediafile N/A N/A mediafiles findall MediaFile N/A N/A playpath N/A N/A N/A mediafile find URL text N/A rtmp_url N/A urlparse rtmp N/A app N/A N/A N/A N/A N/A N/A rtmp_url path N/A 1 ? N/A rtmp_url query rstrip ? N/A live N/A app live N/A params N/A dict rtmp N/A N/A {u.scheme}://{u.netloc}{u.path} format u rtmp_url app N/A N/A app rstrip ? playpath playpath swfVfy N/A live LIVE_SWF_URL ONDEMAND_SWF_URL timeout 10 N/A live N/A N/A N/A params N/A live True N/A bitrate N/A N/A int N/A N/A mediafile attrib N/A bitrate 1000 N/A quality N/A N/A {0}k format bitrate N/A N/A streams N/A quality N/A RTMPStream N/A self session params N/A streams N/A _soap_request N/A N/A self N/A N/A sub_ns N/A N/A parent tag ns N/A N/A N/A N/A N/A ET SubElement parent N/A {%s}%s N/A ns tag N/A sub_common N/A N/A parent tag N/A N/A N/A N/A sub_ns parent tag http://schemas.itv.com/2009/05/Common N/A sub_soap N/A N/A parent tag N/A N/A N/A N/A sub_ns parent tag http://schemas.xmlsoap.org/soap/envelope/ N/A sub_item N/A N/A parent tag N/A N/A N/A N/A sub_ns parent tag http://tempuri.org/ N/A sub_itv N/A N/A parent tag N/A N/A N/A N/A sub_ns parent tag http://schemas.datacontract.org/2004/07/Itv.BB.Mercury.Common.Types N/A N/A production_id N/A self production_id N/A channel_id N/A self channel_id N/A N/A N/A ET register_namespace com http://schemas.itv.com/2009/05/Common N/A N/A N/A ET register_namespace soapenv http://schemas.xmlsoap.org/soap/envelope/ N/A N/A N/A ET register_namespace tem http://tempuri.org/ N/A N/A N/A ET register_namespace itv http://schemas.datacontract.org/2004/07/Itv.BB.Mercury.Common.Types N/A root N/A N/A ET Element {http://schemas.xmlsoap.org/soap/envelope/}Envelope N/A N/A sub_soap root Header N/A body N/A sub_soap root Body N/A get_playlist N/A sub_item body GetPlaylist N/A request N/A sub_item get_playlist request N/A prode N/A sub_itv request ProductionId N/A production_id N/A N/A N/A prode text production_id N/A N/A N/A sub_itv request RequestGuid text N/A N/A N/A str N/A uuid4 upper N/A vodcrid N/A sub_itv request Vodcrid N/A vod_id N/A sub_common vodcrid Id N/A N/A N/A sub_common vodcrid Partition text itv.com N/A channel_id N/A N/A N/A vod_id text N/A N/A sim{0} format channel_id N/A userinfo N/A sub_item get_playlist userInfo N/A N/A N/A sub_itv userinfo Broadcaster text Itv N/A N/A N/A sub_itv userinfo RevenueScienceValue text ITVPLAYER.2.14.1.+build.4a9166f0ba N/A N/A sub_itv userinfo SessionId N/A N/A sub_itv userinfo SsoToken N/A N/A sub_itv userinfo UserToken N/A siteinfo N/A sub_item get_playlist siteInfo N/A N/A N/A sub_itv siteinfo AdvertisingRestriction text None N/A N/A N/A sub_itv siteinfo AdvertisingSite text ITV N/A N/A N/A sub_itv siteinfo AdvertisingType text Any N/A N/A N/A sub_itv siteinfo Area text ITVPLAYER.VIDEO N/A N/A sub_itv siteinfo Category N/A N/A N/A sub_itv siteinfo Platform text DotCom N/A N/A N/A sub_itv siteinfo Site text ItvCom N/A deviceinfo N/A sub_item get_playlist deviceInfo N/A N/A N/A sub_itv deviceinfo ScreenSize text Big N/A playerinfo N/A sub_item get_playlist playerInfo N/A N/A N/A sub_itv playerinfo Version text 2 N/A N/A N/A ET tostring root N/A N/A N/A __plugin__ ITVPlayer