def YOUList(mname,durl): murl='http://gdata.youtube.com/feeds/api/users/'+durl+'/uploads?start-index=1&max-results=50' link=main.OPENURL(murl) match=re.compile("http\://www.youtube.com/watch\?v\=([^\&]+)\&.+?<media\:descriptio[^>]+>([^<]+)</media\:description>.+?<media\:thumbnail url='([^']+)'.+?<media:title type='plain'>(.+?)/media:title>").findall(link) for url,desc,thumb,name in match: name=name.replace('<','') main.addPlayMs(name,url,48,thumb,desc,'','','','') main.GA(mname,"Youtube-List")
def YOUList(mname, durl): murl = 'http://gdata.youtube.com/feeds/api/users/' + durl + '/uploads?start-index=1&max-results=50' link = main.OPENURL(murl) match = re.compile( "http\://www.youtube.com/watch\?v\=([^\&]+)\&.+?<media\:descriptio[^>]+>([^<]+)</media\:description>.+?<media\:thumbnail url='([^']+)'.+?<media:title type='plain'>(.+?)/media:title>" ).findall(link) for url, desc, thumb, name in match: name = name.replace('<', '') main.addPlayMs(name, url, 48, thumb, desc, '', '', '', '') main.GA(mname, "Youtube-List")
def YOUList(mname,durl): if 'gdata' in durl: murl=durl else: murl='http://gdata.youtube.com/feeds/api/users/'+durl+'/uploads?start-index=1&max-results=50' link=main.OPENURL(murl) match=re.compile("http\://www.youtube.com/watch\?v\=([^\&]+)\&.+?<media\:descriptio[^>]+>([^<]+)</media\:description>.+?<media\:thumbnail url='([^']+)'.+?<media:title type='plain'>(.+?)/media:title>").findall(link) for url,desc,thumb,name in match: name=name.replace('<','') main.addPlayMs(name,url,48,thumb,desc,'','','','') if len(match) >=49: paginate=re.compile('http://gdata.youtube.com/feeds/api/users/(.+?)/uploads.?start-index=(.+?)&max-results=50').findall(murl) for id, page in paginate: i=int(page)+50 purl='http://gdata.youtube.com/feeds/api/users/'+id+'/uploads?start-index='+str(i)+'&max-results=50' main.addDir('[COLOR blue]Next[/COLOR]',purl,47,art+'/next2.png')
def YOUList(mname,durl): if 'gdata' in durl: murl=durl else: murl='https://gdata.youtube.com/feeds/api/playlists/'+durl+'?start-index=1&max-results=50' link=main.OPENURL(murl) match=re.compile("href='https://m.youtube.com/details.?v=(.+?)'/.+?<media\:descriptio[^>]+>([^<]+)</media\:description>.+?<media\:thumbnail url='([^']+)'.+?<media:title type='plain'>(.+?)/media:title>",re.DOTALL).findall(link) for url,desc,thumb,name in reversed(match): name=name.replace('<','') main.addPlayMs(name,url,206,thumb,desc,'','','','') match2=re.compile("<title type=\'text\'>.+?</title><link rel=\'alternate\' type=\'text/html\' href=\'https://www.youtube.com/watch.?v=(.+?)&feature=youtube_gdata\'/>.+?<media:title type=\'plain\'>(.+?)</media:title>").findall(link) for url,name in reversed(match2): name=name.replace('<','') main.addPlayMs(name,url,206,'','','','','','') tot=len(match)+len(match2) if tot >=49: paginate=re.compile('https://gdata.youtube.com/feeds/api/playlists/(.+?).?start-index=(.+?)&max-results=50').findall(murl) for id, page in paginate: i=int(page)+50 purl='https://gdata.youtube.com/feeds/api/playlists/'+id+'?start-index='+str(i)+'&max-results=50' main.addDir('[COLOR blue]Next[/COLOR]',purl,205,art+'/next2.png')
def YOUList(mname,durl): if 'gdata' in durl: murl=durl else: murl='https://gdata.youtube.com/feeds/api/playlists/'+durl+'?start-index=1&max-results=50' link=main.OPENURL(murl) match=re.compile("href='https://m.youtube.com/details.?v=(.+?)'/.+?<media\:descriptio[^>]+>([^<]+)</media\:description>.+?<media\:thumbnail url='([^']+)'.+?<media:title type='plain'>(.+?)/media:title>").findall(link) for url,desc,thumb,name in match: name=name.replace('<','') main.addPlayMs(name,url,206,thumb,desc,'','','','') match2=re.compile("<title type=\'text\'>.+?</title><link rel=\'alternate\' type=\'text/html\' href=\'https://www.youtube.com/watch.?v=(.+?)&feature=youtube_gdata\'/>.+?<media:title type=\'plain\'>(.+?)</media:title>").findall(link) for url,name in match2: name=name.replace('<','') main.addPlayMs(name,url,206,'','','','','','') tot=len(match)+len(match2) if tot >=49: paginate=re.compile('https://gdata.youtube.com/feeds/api/playlists/(.+?).?start-index=(.+?)&max-results=50').findall(murl) for id, page in paginate: i=int(page)+50 purl='https://gdata.youtube.com/feeds/api/playlists/'+id+'?start-index='+str(i)+'&max-results=50' main.addDir('[COLOR blue]Next[/COLOR]',purl,205,art+'/next2.png') main.GA(mname,"Youtube-List")
def YOUList(mname, durl): if 'gdata' in durl: murl = durl else: murl = 'http://gdata.youtube.com/feeds/api/users/' + durl + '/uploads?start-index=1&max-results=50' link = main.OPENURL(murl) match = re.compile( "http\://www.youtube.com/watch\?v\=([^\&]+)\&.+?<media\:descriptio[^>]+>([^<]+)</media\:description>.+?<media\:thumbnail url='([^']+)'.+?<media:title type='plain'>(.+?)/media:title>" ).findall(link) for url, desc, thumb, name in match: name = name.replace('<', '') main.addPlayMs(name, url, 48, thumb, desc, '', '', '', '') if len(match) >= 49: paginate = re.compile( 'http://gdata.youtube.com/feeds/api/users/(.+?)/uploads.?start-index=(.+?)&max-results=50' ).findall(murl) for id, page in paginate: i = int(page) + 50 purl = 'http://gdata.youtube.com/feeds/api/users/' + id + '/uploads?start-index=' + str( i) + '&max-results=50' main.addDir('[COLOR blue]Next[/COLOR]', purl, 47, art + '/next2.png') main.GA(mname, "Youtube-List")