#NEWLINE# def get( self , sites ) : #NEWLINE# #INDENT# data = self . http . request ( 'get' , self . url ) . text #NEWLINE# match = re . search ( 'src=(\\"|\\\')(http://www.svt.se/wd[^\\\'\\"]+)(\\"|\\\')' , data ) #NEWLINE# stream = None #NEWLINE# if match : #NEWLINE# #INDENT# url = match . group ( 2 ) #NEWLINE# for i in sites : #NEWLINE# #INDENT# if i . handles ( url ) : #NEWLINE# #INDENT# url = url . replace ( '&amp;' , '&' ) . replace ( '&#038;' , '&' ) #NEWLINE# return ( url , i ( self . options , url ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# match = re . search ( 'src=\\"(http://player.vimeo.com/video/[0-9]+)\\" ' , data ) #NEWLINE# if match : #NEWLINE# #INDENT# for i in sites : #NEWLINE# #INDENT# if i . handles ( match . group ( 1 ) ) : #NEWLINE# #INDENT# return ( match . group ( 1 ) , i ( self . options , url ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# match = re . search ( 'tv4play.se/iframe/video/(\\d+)?' , data ) #NEWLINE# if match : #NEWLINE# #INDENT# url = ( 'http://www.tv4play.se/?video_id=%s' % match . group ( 1 ) ) #NEWLINE# for i in sites : #NEWLINE# #INDENT# if i . handles ( url ) : #NEWLINE# #INDENT# return ( url , i ( self . options , url ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# match = re . search ( 'embed.bambuser.com/broadcast/(\\d+)' , data ) #NEWLINE# if match : #NEWLINE# #INDENT# url = ( 'http://bambuser.com/v/%s' % match . group ( 1 ) ) #NEWLINE# for i in sites : #NEWLINE# #INDENT# if i . handles ( url ) : #NEWLINE# #INDENT# return ( url , i ( self . options , url ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# match = re . search ( 'src="(http://tv.aftonbladet[^"]*)"' , data ) #NEWLINE# if match : #NEWLINE# #INDENT# url = match . group ( 1 ) #NEWLINE# for i in sites : #NEWLINE# #INDENT# if i . handles ( url ) : #NEWLINE# #INDENT# return ( url , i ( self . options , url ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# match = re . search ( 'a href="(http://tv.aftonbladet[^"]*)" class="abVi' , data ) #NEWLINE# if match : #NEWLINE# #INDENT# url = match . group ( 1 ) #NEWLINE# for i in sites : #NEWLINE# #INDENT# if i . handles ( url ) : #NEWLINE# #INDENT# return ( url , i ( self . options , url ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# match = re . search ( "iframe src='(http://www.svtplay[^']*)'" , data ) #NEWLINE# if match : #NEWLINE# #INDENT# url = match . group ( 1 ) #NEWLINE# for i in sites : #NEWLINE# #INDENT# if i . handles ( url ) : #NEWLINE# #INDENT# return ( url , i ( self . options , url ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# match = re . search ( 'src="(http://mm-resource-service.herokuapp.com[^"]*)"' , data ) #NEWLINE# if match : #NEWLINE# #INDENT# url = match . group ( 1 ) #NEWLINE# for i in sites : #NEWLINE# #INDENT# if i . handles ( url ) : #NEWLINE# #INDENT# return ( self . url , i ( self . options , self . url ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# match = re . search ( 'src="([^.]+\\.solidtango.com[^"+]+)"' , data ) #NEWLINE# if match : #NEWLINE# #INDENT# url = match . group ( 1 ) #NEWLINE# for i in sites : #NEWLINE# #INDENT# if i . handles ( url ) : #NEWLINE# #INDENT# return ( self . url , i ( self . options , url ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# match = re . search ( '(lemonwhale|lwcdn.com)' , data ) #NEWLINE# if match : #NEWLINE# #INDENT# url = 'http://lemonwhale.com' #NEWLINE# for i in sites : #NEWLINE# #INDENT# if i . handles ( url ) : #NEWLINE# #INDENT# return ( self . url , i ( self . options , self . url ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# match = re . search ( 's.src="(https://csp-ssl.picsearch.com[^"]+|http://csp.picsearch.com/rest[^"]+)' , data ) #NEWLINE# if match : #NEWLINE# #INDENT# url = match . group ( 1 ) #NEWLINE# for i in sites : #NEWLINE# #INDENT# if i . handles ( url ) : #NEWLINE# #INDENT# return ( self . url , i ( self . options , self . url ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# match = re . search ( '(picsearch_ajax_auth|screen9-ajax-auth)' , data ) #NEWLINE# if match : #NEWLINE# #INDENT# url = 'http://csp.picsearch.com' #NEWLINE# for i in sites : #NEWLINE# #INDENT# if i . handles ( url ) : #NEWLINE# #INDENT# return ( self . url , i ( self . options , self . url ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# match = re . search ( 'iframe src="(//csp.screen9.com[^"]+)"' , data ) #NEWLINE# if match : #NEWLINE# #INDENT# url = ( 'http:%s' % match . group ( 1 ) ) #NEWLINE# for i in sites : #NEWLINE# #INDENT# if i . handles ( url ) : #NEWLINE# #INDENT# return ( self . url , i ( self . options , self . url ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return ( self . url , stream )