• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Python main.addPlay函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中resources.libs.main.addPlay函数的典型用法代码示例。如果您正苦于以下问题:Python addPlay函数的具体用法?Python addPlay怎么用?Python addPlay使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了addPlay函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。

示例1: LISTINT

def LISTINT(name,url):
        MainUrl = "http://www.einthusan.com/movies/"
        urllist=['http://www.einthusan.com/movies/index.php?lang=hindi','http://www.einthusan.com/movies/index.php?lang=hindi&organize=Activity&filtered=RecentlyPosted&org_type=Activity&page=2','http://www.einthusan.com/movies/index.php?lang=hindi&organize=Activity&filtered=RecentlyPosted&org_type=Activity&page=3',
                 'http://www.einthusan.com/movies/index.php?lang=hindi&organize=Activity&filtered=RecentlyPosted&org_type=Activity&page=4','http://www.einthusan.com/movies/index.php?lang=hindi&organize=Activity&filtered=RecentlyPosted&org_type=Activity&page=5',
                 'http://www.einthusan.com/movies/index.php?lang=hindi&organize=Activity&filtered=RecentlyPosted&org_type=Activity&page=6','http://www.einthusan.com/movies/index.php?lang=hindi&organize=Activity&filtered=RecentlyPosted&org_type=Activity&page=7',
                 'http://www.einthusan.com/movies/index.php?lang=hindi&organize=Activity&filtered=RecentlyPosted&org_type=Activity&page=8','http://www.einthusan.com/movies/index.php?lang=hindi&organize=Activity&filtered=RecentlyPosted&org_type=Activity&page=9','http://www.einthusan.com/movies/index.php?lang=hindi&organize=Activity&filtered=RecentlyPosted&org_type=Activity&page=10','http://www.einthusan.com/movies/index.php?lang=hindi&organize=Activity&filtered=RecentlyPosted&org_type=Activity&page=11']
        dialogWait = xbmcgui.DialogProgress()
        ret = dialogWait.create('Please wait until Movie list is cached.')
        totalLinks = len(urllist)
        loadedLinks = 0
        remaining_display = 'Pages loaded :: [B]'+str(loadedLinks)+' / '+str(totalLinks)+'[/B].'
        dialogWait.update(0,'[B]Loading....[/B]',remaining_display)
        for murl in urllist:
                link=main.OPENURL(murl)
                match = re.compile('<a class="movie-cover-wrapper" href="(.+?)"><img src="(.+?)" alt="(.+?)"').findall(link)
                for url,thumb,name in match:
                        name = name.replace('hindi movie online','')
                        main.addPlay(name,MainUrl+url,38,MainUrl+thumb)
                loadedLinks = loadedLinks + 1
                percent = (loadedLinks * 100)/totalLinks
                remaining_display = 'Pages loaded :: [B]'+str(loadedLinks)+' / '+str(totalLinks)+'[/B].'
                dialogWait.update(percent,'[B]Loading....[/B]',remaining_display)
                if (dialogWait.iscanceled()):
                        return False   
        dialogWait.close()
        del dialogWait
        main.GA("INT","Einthusan")
开发者ID:Segfaulter,项目名称:mash2k3-repository,代码行数:27,代码来源:einthusan.py


示例2: iWatchToday

def iWatchToday(murl):
        main.GA("Tvshows","TodaysList")
        link=main.OPENURL(murl)
        link=link.replace('\r','').replace('\n','').replace('\t','').replace('&nbsp;','')
        match=re.compile('<img src="([^<]+)" alt="" class=".+?"><br /><a href="(.+?)">(.+?)</a>  </td>  <td style=".+?" width=".+?">(.+?)</td>  <td style=".+?" width=".+?">(.+?)</td>').findall(link)
        for thumb,url,name,episea,epiname in match:    
                main.addPlay(name+' '+episea+' '+epiname,url,588,thumb)
开发者ID:Segfaulter,项目名称:mash2k3-repository,代码行数:7,代码来源:iwatchonline.py


示例3: UFCNEW

def UFCNEW():
    try:
        urllist = ["http://newmyvideolinks.com/index.php?s=ufc", "http://newmyvideolinks.com/page/2/?s=ufc"]
    except:
        urllist = ["http://newmyvideolinks.com/index.php?s=ufc"]
    for surl in urllist:
        link = main.OPENURL(surl)
        match = re.compile(
            '<a href="(.+?)" rel=".+?" title=".+?"> <img src="(.+?)" width=".+?" height=".+?" title="(.+?)" class=".+?"></a>'
        ).findall(link)
        if len(match) > 0:
            for url, thumb, name in match:
                match = re.compile("UFC").findall(name)
                if len(match) > 0:
                    main.addPlay(name, url, 35, thumb)

        else:
            match = re.compile(
                'href="(.+?)" title="(.+?)"><img src="(.+?)" alt=".+?" width=".+?" height=".+?" class=".+?" />'
            ).findall(link)
            for url, name, thumb in match:
                match = re.compile("UFC").findall(name)
                if len(match) > 0:
                    main.addPlay(name, url, 35, thumb)
    main.GA("Newmyvideolinks", "UFC")
开发者ID:nadav1110,项目名称:mash2k3-repository,代码行数:25,代码来源:newmyvideolinks.py


示例4: LISTTV3

def LISTTV3(murl):
        urllist=['http://oneclickwatch.org/category/tv-shows/','http://oneclickwatch.org/category/tv-shows/page/2/','http://oneclickwatch.org/category/tv-shows/page/3/','http://oneclickwatch.org/category/tv-shows/page/4/','http://oneclickwatch.org/category/tv-shows/page/5/']
        dialogWait = xbmcgui.DialogProgress()
        ret = dialogWait.create('Please wait until Show list is cached.')
        totalLinks = len(urllist)
        loadedLinks = 0
        remaining_display = 'Pages loaded :: [B]'+str(loadedLinks)+' / '+str(totalLinks)+'[/B].'
        dialogWait.update(0,'[B]Will load instantly from now on[/B]',remaining_display)
        for murl in urllist:
                link=main.OPENURL(murl)
                link=link.replace('\r','').replace('\n','').replace('\t','').replace('&nbsp;','')
                match=re.compile('title=".+?">([^<]+)</a></h2>.+?href=".+?<a href="(.+?)" .+?href=".+?>.+?src="(.+?)"').findall(link)
                for name,url,thumb in match:
                        name=name.replace('\xc2\xa0','').replace('" ','').replace(' "','').replace('"','').replace("&#039;","'").replace("&amp;","and").replace("&#8217;","'").replace("amp;","and").replace("#8211;","-")
                        main.addPlay(name,url,134,thumb)
                
                loadedLinks = loadedLinks + 1
                percent = (loadedLinks * 100)/totalLinks
                remaining_display = 'Pages loaded :: [B]'+str(loadedLinks)+' / '+str(totalLinks)+'[/B].'
                dialogWait.update(percent,'[B]Will load instantly from now on[/B]',remaining_display)
                if (dialogWait.iscanceled()):
                        return False   
        dialogWait.close()
        del dialogWait
        main.GA("TV","Oneclickwatch")
开发者ID:Segfaulter,项目名称:mash2k3-repository,代码行数:25,代码来源:oneclickwatch.py


示例5: LISTSP4

def LISTSP4(murl):
    urllist = [
        "http://oneclickmoviez.com/category/bluray/",
        "http://oneclickmoviez.com/category/bluray/page/2/",
        "http://oneclickmoviez.com/category/bluray/page/3/",
        "http://oneclickmoviez.com/category/bluray/page/4/",
        "http://oneclickmoviez.com/category/bluray/page/5/",
    ]
    dialogWait = xbmcgui.DialogProgress()
    ret = dialogWait.create("Please wait until Movie list is cached.")
    totalLinks = len(urllist)
    loadedLinks = 0
    remaining_display = "Pages loaded :: [B]" + str(loadedLinks) + " / " + str(totalLinks) + "[/B]."
    dialogWait.update(0, "[B]Loading....[/B]", remaining_display)
    for xurl in urllist:
        link = main.OPENURL(xurl)
        match = re.compile(
            'href="(.+?)" rel="bookmark" title=".+?">(.+?)</a></h2>\n</div>\n<div class="cover">\n<div class="entry">\n\t\t\t\t\t<p style="text-align: center;"><img class="alignnone" title="poster" src="(.+?)" '
        ).findall(link)
        for url, name, thumb in match:
            main.addPlay(name, url, 56, thumb)
        loadedLinks = loadedLinks + 1
        percent = (loadedLinks * 100) / totalLinks
        remaining_display = "Pages loaded :: [B]" + str(loadedLinks) + " / " + str(totalLinks) + "[/B]."
        dialogWait.update(percent, "[B]Loading....[/B]", remaining_display)
        if dialogWait.iscanceled():
            return False
    dialogWait.close()
    del dialogWait
    main.GA("HD", "Oneclickmoviez")
开发者ID:nadav1110,项目名称:mash2k3-repository,代码行数:30,代码来源:oneclickmoviez.py


示例6: LISTTV2

def LISTTV2(murl):
        if murl=='movintv':
            main.addDir('Search Movie1k','www.movie1k.org',132,"%s/art/search.png"%selfAddon.getAddonInfo("path"))
            urllist=['http://www.movie1k.org/category/tv-show/','http://www.movie1k.org/category/tv-show/page/2/','http://www.movie1k.org/category/tv-show/page/3/','http://www.movie1k.org/category/tv-show/page/4/','http://www.movie1k.org/category/tv-show/page/5/']
        elif murl=='movin':
            urllist=['http://www.movie1k.org/category/hindi-movies/','http://www.movie1k.org/category/hindi-movies/page/2/','http://www.movie1k.org/category/hindi-movies/page/3/','http://www.movie1k.org/category/hindi-movies/page/4/','http://www.movie1k.org/category/hindi-movies/page/5/','http://www.movie1k.org/category/hindi-movies/page/6/','http://www.movie1k.org/category/hindi-movies/page/7/']
        elif murl=='movindub':
            urllist=['http://www.movie1k.org/category/hindi-dubbed-movies/','http://www.movie1k.org/category/hindi-dubbed-movies/page/2/','http://www.movie1k.org/category/hindi-dubbed-movies/page/3/','http://www.movie1k.org/category/hindi-dubbed-movies/page/4/','http://www.movie1k.org/category/hindi-dubbed-movies/page/5/','http://www.movie1k.org/category/hindi-dubbed-movies/page/6/','http://www.movie1k.org/category/hindi-dubbed-movies/page/7/']
            murl=murl
        dialogWait = xbmcgui.DialogProgress()
        ret = dialogWait.create('Please wait until Show list is cached.')
        totalLinks = len(urllist)
        loadedLinks = 0
        remaining_display = 'Pages loaded :: [B]'+str(loadedLinks)+' / '+str(totalLinks)+'[/B].'
        dialogWait.update(0,'[B]Will load instantly from now on[/B]',remaining_display)
        for murl in urllist:
                link=main.OPENURL(murl)
                match=re.compile('href="(.+?)"><img width=".+?" height=".+?" src="(.+?)" class=".+?" alt="Watch.+?" title="(.+?)" />').findall(link)
                for url,thumb,name in match:
                        name=name.replace('\xc2\xa0','').replace('" ','').replace(' "','').replace('"','').replace("&#039;","'").replace("&amp;","and").replace("&#8217;","'").replace("amp;","and").replace("#8211;","-")
                        main.addPlay(name,url,31,thumb)
                
                loadedLinks = loadedLinks + 1
                percent = (loadedLinks * 100)/totalLinks
                remaining_display = 'Pages loaded :: [B]'+str(loadedLinks)+' / '+str(totalLinks)+'[/B].'
                dialogWait.update(percent,'[B]Will load instantly from now on[/B]',remaining_display)
                if (dialogWait.iscanceled()):
                        return False   
        dialogWait.close()
        del dialogWait
        main.GA("TV-INT","Movie1k")
开发者ID:nadav1110,项目名称:mash2k3-repository,代码行数:31,代码来源:movie1k.py


示例7: LISTDOCPOP

def LISTDOCPOP(murl):
    if murl=='search':
        keyb = xbmc.Keyboard('', 'Search Documentaries')
        keyb.doModal()
        if (keyb.isConfirmed()):
                search = keyb.getText()
                encode=urllib.quote(search)
                surl='http://documentaryheaven.com/?s='+encode
                link=main.OPENURL(surl)
        match=re.compile('<a href="(.+?)" title="" rel=".+?"><img class=".+?" src="(.+?)" alt="(.+?)".+?</a>\n                            </div>     \n                            <div id="postDis">\n                            \t(.+?)[...]').findall(link)
        if (len(match)==0):
            match=re.compile('href="(.+?)" title="" rel=".+?"><img class=".+?" src="(.+?)" alt="(.+?)".+?</a>\n                            </div>     \n                            <div id="postDis">\n                            \t(.+?)[...]').findall(link)
        for url,thumb,name,desc in match:
            main.addSport(name,url,88,thumb,desc,'','')

        paginate=re.compile("<span class=\'page current\'>1</span></li><li><a href=\'http://documentaryheaven.com/page/2/.?s=.+?\'").findall(link)
        if (len(paginate)>0):
            main.addDir('[COLOR blue]Page 2[/COLOR]','http://documentaryheaven.com/page/2/?s='+encode,9,"%s/art/next2.png"%selfAddon.getAddonInfo("path"))
    elif murl=='rec':
        rurl='http://topdocumentaryfilms.com/'
        link=main.OPENURL(rurl)
        match=re.compile('href="([^<]+)">([^<]+)</a></li><li><a').findall(link)
        for url,name in match:
            main.addPlay(name,url,88,'')
    else:
        link=main.OPENURL(murl)
        match=re.compile("<li><a href='(.+?)'>(.+?)</a></li>").findall(link)
        for url,name in match:
            main.addPlay(name,url,88,'')
开发者ID:nadav1110,项目名称:mash2k3-repository,代码行数:29,代码来源:documentary.py


示例8: LINKINT2

def LINKINT2(name,murl):
        MainUrl = "http://www.dramacrazy.net"
        sources = []
        link=main.OPENURL(murl)
        match=re.compile('<a class=".+?" href="(.+?)">(.+?)</a>\r\n\t\t\t\t\t\t\t\t<p class=".+?">.+?</p>\r\n\t\t\t\t<div class=".+?"></div>\r\n\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t<div class=".+?">\r\n\t\t\t\t\t\t<div class=".+?">').findall(link)
        for url, name in match:
                url =MainUrl+url
                link=main.OPENURL(url)
                link = ''.join(link.splitlines()).replace('\t','').replace('\'','"')

                streamingLinksModule=re.compile('<!-- Small Div alternate streaming mirros -->(.+?)<!--End of alternate streaming mirrors -->').findall(link)
                streamingLinks=re.compile('<div class="row">(.+?)<div class="clear"></div></div>').findall(streamingLinksModule[0])
                for stramingLinkRow in streamingLinks:
                        parts = re.compile('<a (.+?) onclick="return encLink\("/(.+?)"\);" (.+?)>').findall(stramingLinkRow.replace(')"',');"'))
                        streamingName = re.compile('Watch(.+?)\)').findall(stramingLinkRow)
                        streamingName= str(streamingName)
                        streamingName=streamingName.replace('with English Subs ','').replace("[' ","").replace("']","").replace("Speedy Joe","VideoDorm")   
                        streamTypeName = streamingName + ')'
                        linkname=streamTypeName.replace("(","").replace(")","")
                        imagename=str(linkname)
                        main.addLink('[COLOR blue]'+linkname+' Links[/COLOR]','',selfAddon.getAddonInfo("path")+'/art/'+imagename+'.png')
                        if re.search('\(Wat\)', streamTypeName):
                                continue
                
                        matchCount = len(parts)
                        if(matchCount > 1):
                                i = 0
                                playList = ''
                                for temp1, partLink, temp2 in parts:
                                        i = i + 1
                                        print ' - PART: '+str(i)+' PART link = '+partLink
                                        partName = streamTypeName + ' - PART: '+str(i)
                                        main.addPlay(name+'  '+partName,'http://www.dramacrazy.net/' + partLink,42,selfAddon.getAddonInfo("path")+'/art/'+imagename+'.png')
开发者ID:Segfaulter,项目名称:mash2k3-repository,代码行数:33,代码来源:dramacrazy.py


示例9: CastalbaList

def CastalbaList(murl):
        try:
            urllist=['http://castalba.tv/channels/p=1','http://castalba.tv/channels/p=2']
        except:
            urllist=['http://castalba.tv/channels/p=1','http://castalba.tv/channels/p=2']
        dialogWait = xbmcgui.DialogProgress()
        ret = dialogWait.create('Please wait until channel list is loaded.')
        totalLinks = len(urllist)
        loadedLinks = 0
        remaining_display = 'Pages loaded :: [B]'+str(loadedLinks)+' / '+str(totalLinks)+'[/B].'
        dialogWait.update(0,'[B]Loading.....[/B]',remaining_display)
        for durl in urllist:
                link=main.OPENURL(durl)
                link=link.replace('\r','').replace('\n','').replace('\t','').replace('&nbsp;','')
                match=re.compile('<a href=".+?"><img src="..([^<]+)" alt="" />                                <span class=".+?">.+?</span>                                </a>                            <a href=".+?" class=".+?"><img src=".+?" alt="" /></a>                            </div>                        <div class=".+?"></div>                        <h4><a class=".+?"  href="..(.+?)">(.+?)</a></h4><p class=".+?" >In: <a href=".+?" class=".+?">(.+?)</a></p>').findall(link)
                for thumb,url,name,section in match:
                    if name != 'Playboy TV':
                        main.addPlay(name+'   [COLOR red]'+section+'[/COLOR]','http://castalba.tv'+url,123,'http://castalba.tv'+thumb)
                loadedLinks = loadedLinks + 1
                percent = (loadedLinks * 100)/totalLinks
                remaining_display = 'Pages loaded :: [B]'+str(loadedLinks)+' / '+str(totalLinks)+'[/B].'
                dialogWait.update(percent,'[B]Loading.....[/B]',remaining_display)
                if (dialogWait.iscanceled()):
                        return False   
        dialogWait.close()
        del dialogWait
        main.GA("Castalba","List")
开发者ID:Segfaulter,项目名称:mash2k3-repository,代码行数:27,代码来源:castalba.py


示例10: LISTTV4

def LISTTV4(murl):
        main.addDir('Search Rlsmix','rlsmix',136,"%s/art/search.png"%selfAddon.getAddonInfo("path"))
        main.addLink('[COLOR red]First turbobit Link could be HD[/COLOR]','',"%s/art/tvb.png"%selfAddon.getAddonInfo("path"))
        urllist=['http://www.rlsmix.net/category/tv-shows/','http://www.rlsmix.net/category/tv-shows/page/2/','http://www.rlsmix.net/category/tv-shows/page/3/','http://www.rlsmix.net/category/tv-shows/page/4/','http://www.rlsmix.net/category/tv-shows/page/5/']
        dialogWait = xbmcgui.DialogProgress()
        ret = dialogWait.create('Please wait until Show list is cached.')
        totalLinks = 5
        loadedLinks = 0
        remaining_display = 'Pages loaded :: [B]'+str(loadedLinks)+' / '+str(totalLinks)+'[/B].'
        dialogWait.update(0,'[B]Will load instantly from now on[/B]',remaining_display)
        for murl in urllist:
                link=main.OPENURL(murl)
                match=re.compile('<a href="(.+?)" title="Permanent Link to (.+?)">').findall(link)
                for url,name in match:
                        match2=re.compile('TV Round Up').findall(name)
                        name=name.replace('\xc2\xa0','').replace('" ','').replace(' "','').replace('"','').replace("&#039;","'").replace("&amp;","and").replace("&#8217;","'").replace("amp;","and").replace("#8211;","-")
                        if len(match2)==0:
                            main.addPlay(name,url,62,'')
                
                loadedLinks = loadedLinks + 1
                percent = (loadedLinks * 100)/totalLinks
                remaining_display = 'Pages loaded :: [B]'+str(loadedLinks)+' / '+str(totalLinks)+'[/B].'
                dialogWait.update(percent,'[B]Will load instantly from now on[/B]',remaining_display)
                if (dialogWait.iscanceled()):
                        return False   
        dialogWait.close()
        del dialogWait
        main.GA("TV","Rlsmix")
开发者ID:nadav1110,项目名称:mash2k3-repository,代码行数:28,代码来源:rlsmix.py


示例11: MUSICSTREAMS

def MUSICSTREAMS():
        main.GA("MUSIC-Streams","List")
        link=main.OPENURL('https://nkjtvt.googlecode.com/svn/trunk/playlists/musicstreams2.xml')
        link=link.replace('\r','').replace('\n','').replace('\t','').replace('&nbsp;','')
        match=re.compile('<item><titl[^>]+>([^<]+)</title><link>(.+?)</link><thumbnail>(.+?)</thumbnail></item>').findall(link)
        for name,url,thumb in sorted(match):
            main.addPlay(name,url,184,thumb)
开发者ID:Segfaulter,项目名称:mash2k3-repository,代码行数:7,代码来源:musicstreams.py


示例12: LISTEpiSG

def LISTEpiSG(murl):
    link=main.OPENURL(murl)
    match=re.compile('<a href="(.+?)"><div  class=".+?"><img  class=".+?" src=""  data-original ="(.+?)" width=".+?" height=".+?"  alt=".+?" title = "(.+?)" /><div class=".+?"><span style=".+?">(.+?)</span><div class=".+?"></div><span>(.+?)</span><div class=".+?">').findall(link)
    for url,thumb,epiname, showname, seep in match:
        durl = url+'more_sources/'
        main.addPlay(showname+' [COLOR red]'+seep+'[/COLOR]'+" "+'"'+epiname+'"',durl,609,thumb)
    main.GA("SeriesGate","Latest-list")
开发者ID:nadav1110,项目名称:mash2k3-repository,代码行数:7,代码来源:seriesgate.py


示例13: LISTTV

def LISTTV(murl):
        Tvurl='http://www.iwatchonline.org/tv-show'
        link=main.OPENURL(murl)
        match=re.compile('<a href="(.+?)" ><img src="(.+?)"  border=".+?"  alt=.+?  title=(.+?)  id=".+?"  style').findall(link)
        for url,thumb,name in match:
                name=name.replace('\xc2\xa0','').replace('" ','').replace(' "','').replace('"','').replace("&#039;","'").replace("&amp;","and").replace("&#8217;","'").replace("amp;","and").replace("#8211;","-")
                namelen=len(name)     
                main.addPlay(name,url,29,thumb)
        paginate=re.compile('http://www.iwatchonline.org/tv-show/(.+?).?limit=18').findall(murl)
        paginate2=re.compile('http://www.iwatchonline.org/tv-show/(.+?).?page=(.+?)&limit=18').findall(murl)
        for section in paginate:
                if (len(paginate) > 0)and (len(paginate2) == 0) :
                        purl = Tvurl + '/'+section+'?page=2&limit=18'
                        main.addDir('[COLOR blue]Page 2[/COLOR]',purl,28,"%s/art/next2.png"%selfAddon.getAddonInfo("path"))
                
        paginate=re.compile('http://www.iwatchonline.org/tv-show/(.+?).?page=(.+?)&limit=18').findall(murl)
        for section, page in paginate:
                if (len(paginate) > 0):
                        pg= int(page) +1
                        purl = Tvurl + '/'+section+'?page='+str(pg)+'&limit=18'
                        main.addDir('[COLOR red]Home[/COLOR]','http://www.iwatchonline.org',0,"%s/art/home.png"%selfAddon.getAddonInfo("path"))
                        main.addDir('[COLOR blue]Page '+ str(pg)+'[/COLOR]',purl,28,"%s/art/next2.png"%selfAddon.getAddonInfo("path"))
        xbmcplugin.setContent(int(sys.argv[1]), 'Movies')
        main.VIEWS()
        main.GA("TV","iWatchonline")
开发者ID:Segfaulter,项目名称:mash2k3-repository,代码行数:25,代码来源:iwatchonline.py


示例14: LIST

def LIST(murl):
        link=main.OPENURL(murl)
        link=link.replace('\r','').replace('\n','').replace('\t','').replace('&nbsp;','')
        match= re.compile("""<title type='text'>([^<]+)</title><.+?>.+?div class=".+?" style=".+?".+?href="(.+?)" imageanchor=".+?" .+?href='.+?'.+?href='([^<]+).html' title='.+?'/><author>""").findall(link)
        for name,thumb,url in match:
                main.addPlay(name,url+'.html',216,thumb)
        main.GA("HD","Pencurimovie")
开发者ID:Segfaulter,项目名称:mash2k3-repository,代码行数:7,代码来源:pencurimovie.py


示例15: ViceList

def ViceList(murl):
    main.GA("Vice","Vice-list")
    link=main.OPENURL(murl)
    match=re.compile('<img src="(.+?)" alt="" width=".+?" height=".+?">\n                    <span class=".+?"></span>\n            </a>\n    <h2><a onClick=".+?" href="(.+?)">(.+?)</a></h2>').findall(link)
    for thumb,url,name in match:
        url='http://www.vice.com'+url
        main.addPlay(name,url,106,thumb)
开发者ID:Segfaulter,项目名称:mash2k3-repository,代码行数:7,代码来源:vice.py


示例16: LISTWT

def LISTWT(murl):
        main.GA("Wildtv","Wildtv-list")
        link=main.OPENURL(murl)
        match=re.compile('alt="Video: (.+?)" href="(.+?)">\r\n<img class=".+?" src="(.+?)"').findall(link)
        for name, url, thumb in match:
            thumb='https:'+thumb
            url='https://www.wildtv.ca/' +url
            main.addPlay(name,url,94,thumb)
开发者ID:Segfaulter,项目名称:mash2k3-repository,代码行数:8,代码来源:wildtv.py


示例17: COUNTRIESList

def COUNTRIESList(mname,murl):
        main.GA("Countries-"+mname,"Watched")
        link=main.OPENURL(murl)
        link=link.replace('\r','').replace('\n','').replace('\t','').replace('&nbsp;','').replace('type=playlistname=Sorted by user-assigned order','').replace('name=Sorted [COLOR=FF00FF00]by user-assigned order[/COLOR]','').replace('name=Live Tv Channels Twothumb','')
        match=re.compile('<title>(.+?)</title><link>(.+?)</link><thumbnail>(.+?)</thumbnail>').findall(link)
        for name,url,thumb in sorted(match):
            main.addPlay(name,url,204,thumb)
        main.VIEWSB()
开发者ID:Segfaulter,项目名称:mash2k3-repository,代码行数:8,代码来源:countries.py


示例18: LivestationList

def LivestationList(murl):
        main.GA("LiveStreams","Livestation")
        link=main.OPENURL(murl)
        main.addLink('BBC News','http://akamedia2.lsops.net/live/bbcworld1_en.smil/playlist.m3u8','http://beta.cdn.livestation.com/uploads/channel/ident/10/medium_bbcworld_en.jpg')
        main.addLink('CNN News','http://akamedia2.lsops.net/live/cnn_en.smil/playlist.m3u8','http://beta.cdn.livestation.com/uploads/channel/ident/84/medium_cnn.jpeg')
        main.addLink('Euronews','http://akamedia10.lsops.net/live/smil:euronews_ar.smil/playlist.m3u8','http://beta.cdn.livestation.com/uploads/channel/ident/1/medium_euronews.jpg')
        match=re.compile('<a href="(.+?)"><img alt=".+?" src="(.+?)" /></a>\n</div>\n<h3>\n<a href=".+?">(.+?)</a>').findall(link)
        for url,thumb,name in match:
            main.addPlay(name,'http://mobile.livestation.com'+url,117,thumb)
开发者ID:nadav1110,项目名称:mash2k3-repository,代码行数:9,代码来源:livestation.py


示例19: LISTEpilistSG

def LISTEpilistSG(mname,murl):
    link=main.OPENURL(murl)
    #match=re.compile('<div class=".+?" style=".+?" >(.+?)- <span><a href = ".+?">.+?</a></span></div><div class=".+?" >(.+?)</div><div class = ".+?"></div><div style=".+?"><a href="(.+?)"><img src="(.+?)" width=".+?" height=".+?"  alt=".+?" title = "(.+?)" ></a></div><div class = ".+?" style = ".+?"><div class="s_page_season_description">(.+?)</div>').findall(link)
    #if len(match) == 0:
    match=re.compile('<div class=".+?" style=".+?" >(.+?)- <span><a href = ".+?">.+?</a></span></div><div class=".+?" >(.+?)</div><div class = ".+?"></div><div style=".+?"><a href="(.+?)"><img src="(.+?)" width=".+?" height=".+?"  alt=".+?" title = "(.+?)" ></a>').findall(link)
    for seep, airdate, url, thumb, epiname in match:
        durl = 'http://seriesgate.tv'+url+'more_sources/'
        main.addPlay(seep+" "+'"'+epiname+'"',durl,609,thumb,)
    main.GA("SeriesGate","Epi-list")
开发者ID:nadav1110,项目名称:mash2k3-repository,代码行数:9,代码来源:seriesgate.py


示例20: LivestationLink

def LivestationLink(mname,murl):
        link=main.OPENURL(murl)
        link=link.replace('href="/en/sessions/new','')
        match= re.compile('\n<li>\n<a href="(.+?)">(.+?)</a>\n</li>').findall(link)
        if len(match)>1:
            for url, name in match:
                main.addPlay(name,'http://mobile.livestation.com'+url,118,'')
        else:
            LivestationLink2(mname,murl)
开发者ID:nadav1110,项目名称:mash2k3-repository,代码行数:9,代码来源:livestation.py



注:本文中的resources.libs.main.addPlay函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python main.addPlayL函数代码示例发布时间:2022-05-26
下一篇:
Python main.addLink函数代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap