def sourcesDirect(self,service, meta): u=None meta = json.loads(meta) #control.log('ZZZZ: %s' % service) if service == 'pierwsza': try: u = pierwsza.getstream(meta['id']) except: pass if service == 'videostar': try: u = videostar.getstream(meta['id']) except: pass if service == 'yoy': try: u = yoy.getstream(meta['id']) except: pass if service == 'weeb': try: u = weeb.getstream(meta['id']) except: pass if service == 'wizja': try: u = wizja.getstream(meta['id']) except: pass #control.log('XYZ: %s' % u) return u
def sourcesDirect(self, service, meta): u = None meta = json.loads(meta) #control.log('ZZZZ: %s' % service) if service == 'pierwsza': try: u = pierwsza.getstream(meta['id']) except: pass if service == 'videostar': try: u = videostar.getstream(meta['id']) except: pass if service == 'yoy': try: u = yoy.getstream(meta['id']) except: pass if service == 'weeb': try: u = weeb.getstream(meta['id']) except: pass if service == 'wizja': try: u = wizja.getstream(meta['id']) except: pass #control.log('XYZ: %s' % u) return u
def sourcesDirect(self, service, meta): u = None meta = json.loads(meta) #control.log('ZZZZ: %s' % service) if service == 'itivi': try: control.infoDialog(control.lang(30493).encode('utf-8'), time=1500) u = itivi.getstream(meta['id']) except: pass if service == 'eskago': try: u = meta['id'] except: pass if service == 'pierwsza': try: control.infoDialog(control.lang(30489).encode('utf-8'), time=500) u = pierwsza.getstream(meta['id']) except: pass if service == 'videostar': try: u = videostar.getstream(meta['id']) except: pass if service == 'yoy': try: u = yoy.getstream(meta['id']) except: pass if service == 'weeb': try: u = weeb.getstream(meta['id']) except: pass if service == 'wizja': try: control.infoDialog(control.lang(30492).encode('utf-8'), time=500) u = wizja.getstream(meta['id']) except: pass #control.log('XYZ: %s' % u) return u
def sourcesDirect(self,service, meta): u=None meta = json.loads(meta) #control.log('ZZZZ: %s' % service) if service == 'ipla': try: #control.infoDialog(control.lang(30493).encode('utf-8'), time=1000) u = ipla.getstream(meta['id']) except: pass if service == 'itivi': try: #control.infoDialog(control.lang(30493).encode('utf-8'), time=1000) u = itivi.getstream(meta['id']) except: pass if service == 'looknij': try: u = looknij.getstream(meta['id']) except: pass if service == 'eskago': try: u = meta['id'] except: pass if service == 'telewizjadanet': try: control.infoDialog(control.lang(30498).encode('utf-8'), time=500) u = telewizjadanet.getstream(meta['id']) except: pass if service == 'videostar': try: control.infoDialog(control.lang(30494).encode('utf-8'), time=500) u = videostar.getstream(meta['id']) except: pass if service == 'yoy': try: u = yoy.getstream(meta['id']) except: pass if service == 'weeb': try: u = weeb.getstream(meta['id']) except: pass if service == 'wizja': try: control.infoDialog(control.lang(30492).encode('utf-8'), time=500) u = wizja.getstream(meta['id']) except: pass if service == 'pierwsza': try: control.infoDialog(control.lang(30489).encode('utf-8'), time=500) u = pierwsza.getstream(meta['id']) except: pass #control.log('XYZ: %s' % u) return u
def sourcesDirect(self, service, meta): u = None meta = json.loads(meta) #control.log('ZZZZ: %s' % service) if service == 'ipla': try: #control.infoDialog(control.lang(30493).encode('utf-8'), time=1000) u = ipla.getstream(meta['id']) except: pass if service == 'itivi': try: #control.infoDialog(control.lang(30493).encode('utf-8'), time=1000) u = itivi.getstream(meta['id']) except: pass if service == 'looknij': try: u = looknij.getstream(meta['id']) except: pass if service == 'eskago': try: result = client.request(meta['id']) result = re.compile( 'post\([\'"]https://api.stream.smcdn.pl/api/secureToken.php[\'"], { streamUri:\s*[\'"]([^\'"]+)[\'"]' ).findall(result) control.log('Meta %s' % result[0]) headers = {} headers['Referer'] = meta['id'] #headers['Content-Type'] == 'application/json' myurl = client.request( 'https://api.stream.smcdn.pl/api/secureToken.php', post={"streamUri": result[0]}, headers=headers) control.log('Meta2 %s' % myurl) u = myurl except: pass if service == 'telewizjadanet': try: control.infoDialog(control.lang(30498).encode('utf-8'), time=500) u = telewizjadanet.getstream(meta['id']) except: pass if service == 'videostar': try: control.infoDialog(control.lang(30494).encode('utf-8'), time=500) u = videostar.getstream(meta['id']) except: pass if service == 'yoy': try: u = yoy.getstream(meta['id']) except: pass if service == 'weeb': try: u = weeb.getstream(meta['id']) except: pass if service == 'wizja': try: control.infoDialog(control.lang(30492).encode('utf-8'), time=500) u = wizja.getstream(meta['id']) except: pass if service == 'pierwsza': try: control.infoDialog(control.lang(30489).encode('utf-8'), time=500) u = pierwsza.getstream(meta['id']) except: pass #control.log('XYZ: %s' % u) return u