#NEWLINE# def _get_clip_info( self , vid ) : #NEWLINE# #INDENT# show = self . _get_showname ( self . url ) #NEWLINE# page = 1 #NEWLINE# assets = ( page * 1000 ) #NEWLINE# run = True #NEWLINE# while run : #NEWLINE# #INDENT# data = self . http . request ( 'get' , ( 'http://webapi.tv4play.se/play/video_assets?type=clips&is_live=false&platform=web&node_nids=%s&per_page=1000&page=%s' % ( show , page ) ) ) . text #NEWLINE# jsondata = json . loads ( data ) #NEWLINE# for i in total [ 'results' ] : #NEWLINE# #INDENT# if ( vid == i [ 'id' ] ) : #NEWLINE# #INDENT# return i [ 'title' ] #NEWLINE# #UNINDENT# #UNINDENT# if ( not run ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# total = jsondata [ 'total_hits' ] #NEWLINE# if ( assets > total ) : #NEWLINE# #INDENT# run = False #NEWLINE# #UNINDENT# page += 1 #NEWLINE# assets = ( page * 1000 ) #NEWLINE# #UNINDENT# return None