def main(): url = "http://pastebin.com/raw.php?i=muKxz417" link = get_url(url) soup = BeautifulSOAP(link, convertEntities=BeautifulStoneSoup.XML_ENTITIES) items = soup.findAll("item") for item in items: try: videoTitle=item.title.string except: pass try: if item.thumbnail.string == 'none': thumbnail = icon elif 'http://' in item.thumbnail.string: thumbnail = item.thumbnail.string else: thumbnail = icons + item.thumbnail.string except: thumbnail = icon try: url= item.link.string except: pass add_video_item(videoTitle,url,thumbnail) xbmcplugin.endOfDirectory(plugin_handle) sys.exit(0)
def main(): xcat = 0 if 'xcat1' in mode: url = "http://pastebin.com/raw.php?i=vzM7hxjn" elif 'xcat2' in mode: url = "http://pastebin.com/raw.php?i=vzM7hxjn" elif 'xcat3' in mode: url = "http://pastebin.com/raw.php?i=7dbMT1uL" elif 'xcat4' in mode: url = "http://pastebin.com/raw.php?i=mWk8R9ZU" elif 'xcat5' in mode: url = "http://pastebin.com/raw.php?i=uviee7uU" elif 'xcat6' in mode: url = "http://pastebin.com/raw.php?i=vzM7hxjn" elif 'xcat7' in mode: url = "http://pastebin.com/raw.php?i=vzM7hxjn" elif 'xcat8' in mode: url = "http://pastebin.com/raw.php?i=vzM7hxjn" elif 'xcat9' in mode: url = "http://pastebin.com/raw.php?i=RgSGn43e" else: categorie() sys.exit(0) link = get_url(url) soup = BeautifulSOAP(link, convertEntities=BeautifulStoneSoup.XML_ENTITIES) items = soup.findAll("item") for item in items: try: videoTitle = item.title.string except: pass try: if item.thumbnail.string == 'none': thumbnail = icon elif 'http://' in item.thumbnail.string: thumbnail = item.thumbnail.string else: thumbnail = icons + item.thumbnail.string except: thumbnail = icon try: url = item.link.string except: pass add_video_item(videoTitle, url, thumbnail) xbmcplugin.endOfDirectory(plugin_handle) sys.exit(0)
def main(): xcat = 0 if 'xcat1' in mode: url = "http://pastebin.com/raw.php?i=zqE3rHCm" elif 'xcat2' in mode: url = "http://pastebin.com/raw.php?i=vzM7hxjn" elif 'xcat3' in mode: url = "http://pastebin.com/raw.php?i=YEJmDKr1" elif 'xcat4' in mode: url = "http://pastebin.com/raw.php?i=qCNucALk" elif 'xcat5' in mode: url = "http://pastebin.com/raw.php?i=8DdvqiFg" elif 'xcat6' in mode: url = "http://pastebin.com/raw.php?i=sKiKMWjf" elif 'xcat7' in mode: url = "http://pastebin.com/raw.php?i=nm0P5tGe" elif 'xcat8' in mode: url = "http://pastebin.com/raw.php?i=vzM7hxjn" elif 'xcat9' in mode: url = "http://pastebin.com/raw.php?i=pj9XRyzK" else: categorie() sys.exit(0) link = get_url(url) soup = BeautifulSOAP(link, convertEntities=BeautifulStoneSoup.XML_ENTITIES) items = soup.findAll("item") for item in items: try: videoTitle = item.title.string except: pass try: if item.thumbnail.string == 'none': thumbnail = icon elif 'http://' in item.thumbnail.string: thumbnail = item.thumbnail.string else: thumbnail = icons + item.thumbnail.string except: thumbnail = icon try: url = item.link.string except: pass add_video_item(videoTitle, url, thumbnail) xbmcplugin.endOfDirectory(plugin_handle) sys.exit(0)
def main(): soup = BeautifulSOAP(auth(), convertEntities=BeautifulStoneSoup.XML_ENTITIES) items = soup.findAll("item") for item in items: try: videoTitle=item.title.string except: pass try: url=item.link.string except: pass try: thumbnail=item.thumbnail.string except: pass add_video_item(url,videoTitle,thumbnail) xbmcplugin.endOfDirectory(int(sys.argv[1]))
def main(): xcat = 0 if 'xcat1' in mode: url = "http://pastebin.com/raw.php?i=S0dhY72L" elif 'xcat2' in mode: url = "http://pastebin.com/raw.php?i=tqDBrFQb" elif 'xcat3' in mode: url = "http://pastebin.com/raw.php?i=pmjj1sBX" elif 'xcat4' in mode: url = "http://pastebin.com/raw.php?i=r3cjchek" elif 'xcat5' in mode: url = "http://pastebin.com/raw.php?i=muKxz417" elif 'xcat6' in mode: url = "http://pastebin.com/raw.php?i=9zxGjSDH" elif 'xcat7' in mode: url = "http://pastebin.com/raw.php?i=wDphWaFz" else: categorie() sys.exit(0) link = get_url(url) soup = BeautifulSOAP(link, convertEntities=BeautifulStoneSoup.XML_ENTITIES) items = soup.findAll("item") for item in items: try: videoTitle = item.title.string except: pass try: if item.thumbnail.string == 'none': thumbnail = icon elif 'http://' in item.thumbnail.string: thumbnail = item.thumbnail.string else: thumbnail = icons + item.thumbnail.string except: thumbnail = icon try: url = item.link.string except: pass add_video_item(videoTitle, url, thumbnail) xbmcplugin.endOfDirectory(plugin_handle) sys.exit(0)
def main(): xcat = 0 if 'xcat1' in mode: url = "http://pastebin.com/raw.php?i=vzM7hxjn" elif 'xcat2' in mode: url = "http://pastebin.com/raw.php?i=vzM7hxjn" elif 'xcat3' in mode: url = "http://pastebin.com/raw.php?i=7dbMT1uL" elif 'xcat4' in mode: url = "http://pastebin.com/raw.php?i=mWk8R9ZU" elif 'xcat5' in mode: url = "http://pastebin.com/raw.php?i=uviee7uU" elif 'xcat6' in mode: url = "http://pastebin.com/raw.php?i=vzM7hxjn" elif 'xcat7' in mode: url = "http://pastebin.com/raw.php?i=vzM7hxjn" elif 'xcat8' in mode: url = "http://pastebin.com/raw.php?i=vzM7hxjn" elif 'xcat9' in mode: url = "http://pastebin.com/raw.php?i=RgSGn43e" else: categorie() sys.exit(0) link = get_url(url) soup = BeautifulSOAP(link, convertEntities=BeautifulStoneSoup.XML_ENTITIES) items = soup.findAll("item") for item in items: try: videoTitle=item.title.string except: pass try: if item.thumbnail.string == 'none': thumbnail = icon elif 'http://' in item.thumbnail.string: thumbnail = item.thumbnail.string else: thumbnail = icons + item.thumbnail.string except: thumbnail = icon try: url= item.link.string except: pass add_video_item(videoTitle,url,thumbnail) xbmcplugin.endOfDirectory(plugin_handle) sys.exit(0)
def main(): xcat = 0 if 'xcat1' in mode: url = "http://pastebin.com/raw.php?i=S0dhY72L" elif 'xcat2' in mode: url = "http://pastebin.com/raw.php?i=tqDBrFQb" elif 'xcat3' in mode: url = "http://pastebin.com/raw.php?i=pmjj1sBX" elif 'xcat4' in mode: url = "http://pastebin.com/raw.php?i=r3cjchek" elif 'xcat5' in mode: url = "http://pastebin.com/raw.php?i=muKxz417" elif 'xcat6' in mode: url = "http://pastebin.com/raw.php?i=9zxGjSDH" elif 'xcat7' in mode: url = "http://pastebin.com/raw.php?i=wDphWaFz" else: categorie() sys.exit(0) link = get_url(url) soup = BeautifulSOAP(link, convertEntities=BeautifulStoneSoup.XML_ENTITIES) items = soup.findAll("item") for item in items: try: videoTitle=item.title.string except: pass try: if item.thumbnail.string == 'none': thumbnail = icon elif 'http://' in item.thumbnail.string: thumbnail = item.thumbnail.string else: thumbnail = icons + item.thumbnail.string except: thumbnail = icon try: url= item.link.string except: pass add_video_item(videoTitle,url,thumbnail) xbmcplugin.endOfDirectory(plugin_handle) sys.exit(0)
def main(): xcat = 0 if 'xcat1' in mode: url = "http://185.62.188.116/xbmc/xml/turk2.xml" elif 'xcat2' in mode: url = "http://185.62.188.116/xbmc/xml/turk.xml" elif 'xcat0' in mode: url = "http://melart.de/tv/turk3.xml" #url = "http://185.62.188.116/xbmc/xml/turk3.xml" else: categorie() sys.exit(0) link = get_url(url) soup = BeautifulSOAP(link, convertEntities=BeautifulStoneSoup.XML_ENTITIES) items = soup.findAll("item") for item in items: try: videoTitle = item.title.string videoTitle = videoTitle except: pass try: if item.thumbnail.string == 'none': thumbnail = icon elif 'http://' in item.thumbnail.string: thumbnail = item.thumbnail.string else: thumbnail = icons + item.thumbnail.string except: thumbnail = icon try: url = item.link.string if not url: url = 'http://none.stream' if url == '': url = 'http://none.stream' except: url = 'http://none.stream' add_video_item(videoTitle, url, thumbnail) xbmcplugin.endOfDirectory(plugin_handle) sys.exit(0)
def main(): soup = BeautifulSOAP(auth(), convertEntities=BeautifulStoneSoup.XML_ENTITIES) items = soup.findAll("item") for item in items: try: videoTitle = item.title.string except: pass try: url = item.link.string except: pass try: thumbnail = item.thumbnail.string except: pass add_video_item(url, videoTitle, thumbnail) xbmcplugin.endOfDirectory(int(sys.argv[1]))
def main(): xcat = 0 if 'xcat1' in mode: url = "http://185.62.188.116/xbmc/xml/turk2.xml" elif 'xcat2' in mode: url = "http://185.62.188.116/xbmc/xml/turk.xml" elif 'xcat0' in mode: url = "http://melart.de/tv/turk3.xml" #url = "http://185.62.188.116/xbmc/xml/turk3.xml" else: categorie() sys.exit(0) link = get_url(url) soup = BeautifulSOAP(link, convertEntities=BeautifulStoneSoup.XML_ENTITIES) items = soup.findAll("item") for item in items: try: videoTitle=item.title.string videoTitle = videoTitle except: pass try: if item.thumbnail.string == 'none': thumbnail = icon elif 'http://' in item.thumbnail.string: thumbnail = item.thumbnail.string else: thumbnail = icons + item.thumbnail.string except: thumbnail = icon try: url = item.link.string if not url: url = 'http://none.stream' if url == '': url = 'http://none.stream' except: url = 'http://none.stream' add_video_item(videoTitle,url,thumbnail) xbmcplugin.endOfDirectory(plugin_handle) sys.exit(0)
def main(): xcat = 0 if 'xcat1' in mode: file = get_status(1) xcat = 1 file = file.replace('arabien.xml','arabien1.xml') addLink('in this category operate about 70% of the channels','',icon) elif 'xcat2' in mode: file = get_status(2) xcat = 2 file = file.replace('arabien.xml','arabien2.xml') elif 'xcat3' in mode: file = get_status(3) xcat = 3 file = file.replace('arabien.xml','arabien3.xml') elif 'xcat4' in mode: file = get_status(4) xcat = 4 file = file.replace('arabien.xml','arabien4.xml') elif 'xcat5' in mode: file = get_status(10) xcat = 5 file = file.replace('arabien.xml','salem.xml') # elif 'xcat6' in mode: # file = get_status(6) # xcat = 6 # file = file.replace('arabien.xml','sport.xml') else: categorie() sys.exit(0) link = get_url(file) soup = BeautifulSOAP(link, convertEntities=BeautifulStoneSoup.XML_ENTITIES) items = soup.findAll("item") for item in items: try: videoTitle=item.title.string except: pass try: thumbnail=item.thumbnail.string if thumbnail == 'none': thumbnail = icon #elif xcat == 5: thumbnail = 'http://srv1.iptvxtra.net/_Salem/img/' + thumbnail #elif xcat == 6: thumbnail = 'http://srv1.iptvxtra.net/_Salem/img/' + thumbnail except: thumbnail = icon try: url = (item.link.string).replace('|','###').replace("?", "#x#") url= 'plugin://plugin.video.iptvxtra-arabien/?runstream=' + url + '***' + videoTitle + '***' + thumbnail except: pass addLink(videoTitle,url,thumbnail) xbmcplugin.endOfDirectory(int(sys.argv[1])) try: if not os.path.isfile(xbmc.translatePath("special://temp/0_ar.fi")): open(xbmc.translatePath("special://temp/0_ar.fi"), "a").close() xbmc.executebuiltin("Container.SetViewMode("+views+")") except: pass sys.exit(0)
def main(): xcat = 0 if 'xcat1' in mode: file = get_status(1) xcat = 1 file = file.replace('arabien.xml', 'arabien1.xml') addLink('in this category operate about 70% of the channels', '', icon) elif 'xcat2' in mode: file = get_status(2) xcat = 2 file = file.replace('arabien.xml', 'arabien2.xml') elif 'xcat3' in mode: file = get_status(3) xcat = 3 file = file.replace('arabien.xml', 'arabien3.xml') elif 'xcat4' in mode: file = get_status(4) xcat = 4 file = file.replace('arabien.xml', 'arabien4.xml') elif 'xcat5' in mode: file = get_status(10) xcat = 5 file = file.replace('arabien.xml', 'salem.xml') # elif 'xcat6' in mode: # file = get_status(6) # xcat = 6 # file = file.replace('arabien.xml','sport.xml') else: categorie() sys.exit(0) link = get_url(file) soup = BeautifulSOAP(link, convertEntities=BeautifulStoneSoup.XML_ENTITIES) items = soup.findAll("item") for item in items: try: videoTitle = item.title.string except: pass try: thumbnail = item.thumbnail.string if thumbnail == 'none': thumbnail = icon #elif xcat == 5: thumbnail = 'http://srv1.iptvxtra.net/_Salem/img/' + thumbnail #elif xcat == 6: thumbnail = 'http://srv1.iptvxtra.net/_Salem/img/' + thumbnail except: thumbnail = icon try: url = (item.link.string).replace('|', '###').replace("?", "#x#") url = 'plugin://plugin.video.iptvxtra-arabien/?runstream=' + url + '***' + videoTitle + '***' + thumbnail except: pass addLink(videoTitle, url, thumbnail) xbmcplugin.endOfDirectory(int(sys.argv[1])) try: if not os.path.isfile(xbmc.translatePath("special://temp/0_ar.fi")): open(xbmc.translatePath("special://temp/0_ar.fi"), "a").close() xbmc.executebuiltin("Container.SetViewMode(" + views + ")") except: pass sys.exit(0)
def main(): if epg_on == 'true': xmltv_dl() mode = sys.argv[2] free = get_status() if not 'xcat' in mode and free == 2: view = 'k' categorie() sys.exit(0) elif 'xcat' in mode and free == 2: mode = mode.partition('cat_') chxml = 'http://xbmc.streamnetwork.tv/xml/'+mode[2]+'.xml' view = 's' elif free == 1: chxml = 'http://xbmc.streamnetwork.tv/xml/regtv.xml' view = 's' else: free = 0 chxml = 'http://xbmc.streamnetwork.tv/xml/freetv.xml' view = 's' if epg_on == 'true': iptvepg = xmltv() description = 'keine Sender Information verfügbar' chxml = get_url(chxml) soup = BeautifulSOAP(chxml, convertEntities=BeautifulStoneSoup.XML_ENTITIES) items = soup.findAll("item") for item in items: if not item.srv.string or item.srv.string <> 'none': try: videoTitle=item.title.string except: 'kein Titel vorhanden' try: url= 'plugin://plugin.video.streamnetwork/?runstream=' + user + '***' + pwd + '***' + item.link.string + '***' + item.srv.string + '***' + videoTitle + '***' + item.thumbnail.string except: pass try: thumbnail=item.thumbnail.string except: thumbnail = icon try: description = item.description.string xmlepg = item.xmlepg.string if not description and not 'none' in xmlepg: if epg_on == "true": description = '' zx = 0 for text in iptvepg: text0 = text[0].strip() if xmlepg == text0 and int(text[4]) > int(time.time()): laenge = len(text[5]) + len(text[6]) + 3 if laenge < 60: description = description + timestamp(text[8]) +' '+ text[5] if text[6] != 'no Info': description = description + ' - ' + text[6] description = description + '\n' else: description = description + timestamp(text[8]) +' '+ text[5] if text[6] != 'no Info': if len(text[6]) > 50 : kuerz = len(text[6]) - 50 text[6] = text[6][:-kuerz] + ' ...' description = description + '\n'+''+ text[6] description = description + '\n' if zx == 0 and epg_title == "true": if ' - ' in text[5]: text5 = text[5].partition(" - ") videoTitle = videoTitle +' - '+ text5[0] else: videoTitle = videoTitle +' - '+ text[5] zx += 1 if zx == int(epg_info): break else: if description and '.....' in description: ex = description.split('.....') description = '' for i in range(len(ex)): description = description + ex[i].strip() + '\n' except: description = 'keine EPG Information' addLink(videoTitle,url,thumbnail,description) xbmcplugin.endOfDirectory(int(sys.argv[1])) if view == 's' and int(views_s) > 0: xbmc.executebuiltin("Container.SetViewMode("+views_s+")") try: if int(views_kg) > 0 and view == 'k' and not os.path.isfile(viewfile): open(viewfile, "a").close() xbmc.executebuiltin("Container.SetViewMode("+views_kg+")") except: pass sys.exit(0)
def main(): if epg_on == 'true': xmltv_dl() mode = sys.argv[2] free = get_status() if not 'xcat' in mode and free == 2: view = 'k' categorie() sys.exit(0) elif 'xcat' in mode and free == 2: mode = mode.partition('cat_') chxml = 'http://xbmc.streamnetwork.tv/xml/' + mode[2] + '.xml' view = 's' elif free == 1: chxml = 'http://xbmc.streamnetwork.tv/xml/regtv.xml' view = 's' else: free = 0 chxml = 'http://xbmc.streamnetwork.tv/xml/freetv.xml' view = 's' if epg_on == 'true': iptvepg = xmltv() description = 'keine Sender Information verfügbar' chxml = get_url(chxml) soup = BeautifulSOAP(chxml, convertEntities=BeautifulStoneSoup.XML_ENTITIES) items = soup.findAll("item") for item in items: if not item.srv.string or item.srv.string <> 'none': try: videoTitle = item.title.string except: 'kein Titel vorhanden' try: url = 'plugin://plugin.video.streamnetwork/?runstream=' + user + '***' + pwd + '***' + item.link.string + '***' + item.srv.string + '***' + videoTitle + '***' + item.thumbnail.string except: pass try: thumbnail = item.thumbnail.string except: thumbnail = icon try: description = item.description.string xmlepg = item.xmlepg.string if not description and not 'none' in xmlepg: if epg_on == "true": description = '' zx = 0 for text in iptvepg: text0 = text[0].strip() if xmlepg == text0 and int(text[4]) > int( time.time()): laenge = len(text[5]) + len(text[6]) + 3 if laenge < 60: description = description + timestamp( text[8]) + ' ' + text[5] if text[6] != 'no Info': description = description + ' - ' + text[ 6] description = description + '\n' else: description = description + timestamp( text[8]) + ' ' + text[5] if text[6] != 'no Info': if len(text[6]) > 50: kuerz = len(text[6]) - 50 text[6] = text[6][:-kuerz] + ' ...' description = description + '\n' + '' + text[ 6] description = description + '\n' if zx == 0 and epg_title == "true": if ' - ' in text[5]: text5 = text[5].partition(" - ") videoTitle = videoTitle + ' - ' + text5[ 0] else: videoTitle = videoTitle + ' - ' + text[ 5] zx += 1 if zx == int(epg_info): break else: if description and '.....' in description: ex = description.split('.....') description = '' for i in range(len(ex)): description = description + ex[i].strip() + '\n' except: description = 'keine EPG Information' addLink(videoTitle, url, thumbnail, description) xbmcplugin.endOfDirectory(int(sys.argv[1])) if view == 's' and int(views_s) > 0: xbmc.executebuiltin("Container.SetViewMode(" + views_s + ")") try: if int(views_kg) > 0 and view == 'k' and not os.path.isfile(viewfile): open(viewfile, "a").close() xbmc.executebuiltin("Container.SetViewMode(" + views_kg + ")") except: pass sys.exit(0)