<s> '''<STR_LIT>''' <EOL> import re , urlparse , json <EOL> from resources . lib . libraries import client <EOL> def resolve ( url ) : <EOL> try : <EOL> channel = re . compile ( '<STR_LIT>' ) . findall ( url ) [ - <NUM_LIT:1> ] <EOL> url = '<STR_LIT>' % channel <EOL> result = client . request ( url , mobile = True ) <EOL> url = json . loads ( result ) <EOL> m3u8 = url [ '<STR_LIT>' ] <EOL> url = client . request ( m3u8 ) . splitlines ( ) <EOL> url = [ i for i in url if '<STR_LIT>' in i ] <EOL> if len ( url ) == <NUM_LIT:0> : return m3u8 <EOL> url = urlparse . urljoin ( m3u8 , url [ <NUM_LIT:0> ] ) <EOL> return url <EOL> except : <EOL> return </s>
