Did I find the right examples for you? yes no Crawl my project Python Jobs
All Samples(25) | Call(25) | Derive(0) | Import(0)
src/b/l/BlueCop-XBMC-Plugins-HEAD/plugin.video.hulu/resources/lib/_home.py BlueCop-XBMC-Plugins(Download)
elif display == 'Search': thumbnail = xbmc.translatePath(os.path.join(common.imagepath,"icon_search.jpg")) common.addDirectory(display,items_url,cmtype,thumbnail,thumbnail,fanart=fanart,page='1',perpage='25',cm=cm) if common.settings['enable_login']=='true': if not os.path.isfile(common.QUEUETOKEN): common.login_queue() thumbnail = xbmc.translatePath(os.path.join(common.imagepath,"icon_queue.jpg")) cm = [ ('Add Queue to Library', "XBMC.RunPlugin(%s?mode='ForceQueueLibrary')" % ( sys.argv[0] ) ) ] cm.append( ('Clear Library Directory', "XBMC.RunPlugin(%s?mode='ClearLibrary')" % ( sys.argv[0] ) ) ) common.addDirectory('Queue' ,'http://m.hulu.com/menu/hd_user_queue' , 'Queue' ,thumbnail,thumbnail,fanart=fanart,page='1',perpage='2000',cm=cm)
cm = [ ('Add Subscriptions to Library', "XBMC.RunPlugin(%s?mode='ForceSubscriptionsLibrary')" % ( sys.argv[0] ) ) ] cm.append( ('Clear Library Directory', "XBMC.RunPlugin(%s?mode='ClearLibrary')" % ( sys.argv[0] ) ) ) common.addDirectory('Subscriptions' ,'http://m.hulu.com/menu/hd_user_subscriptions' , 'Subscriptions' ,thumbnail,thumbnail,fanart=fanart,page='1',perpage='2000',cm=cm) thumbnail = xbmc.translatePath(os.path.join(common.imagepath,"icon_history.jpg")) common.addDirectory('History' ,'http://m.hulu.com/menu/hd_user_history' , 'History' ,thumbnail,thumbnail,fanart=fanart,page='1',perpage='2000')
src/b/l/BlueCop-XBMC-Plugins-HEAD/plugin.video.hulu/resources/lib/_menu.py BlueCop-XBMC-Plugins(Download)
next_name = 'Next Page ('+str(npage_begin)+'-'+str(npage_end)+' of '+str(total_count)+')' nextthumb=xbmc.translatePath(os.path.join(common.imagepath,"next.png")) common.addDirectory(next_name,url,common.args.mode,page=str(next_page),icon=nextthumb,perpage=perpage,popular=popular,fanart=common.hulu_fanart,updatelisting='true') if prev_page > 0: ppage_begin = int(perpage)*(prev_page-1)+1 ppage_end = int(perpage)*prev_page prev_name = 'Previous Page ('+str(ppage_begin)+'-'+str(ppage_end)+' of '+str(total_count)+')' prevthumb=xbmc.translatePath(os.path.join(common.imagepath,"prev.png")) common.addDirectory(prev_name,url,common.args.mode,page=str(prev_page),icon=prevthumb,perpage=perpage,popular=popular,fanart=common.hulu_fanart,updatelisting='true')
src/b/l/BlueCop-XBMC-Plugins-HEAD/plugin.video.nbc.universal/resources/lib/_home.py BlueCop-XBMC-Plugins(Download)
def addMainHomeItems( self ): common.addDirectory("NBC", common.NBC_FULL_URL, "TV_nbc", xbmc.translatePath(os.path.join(common.imagepath,"nbc_posterart.jpg")), xbmc.translatePath(os.path.join(common.imagepath,"nbc_posterart.jpg")), genre = "list", plot = "NBC") common.addDirectory("SciFi", common.SCIFI_FULL_URL, "TV_scifi", xbmc.translatePath(os.path.join(common.imagepath,"scifi_posterart.jpg")), xbmc.translatePath(os.path.join(common.imagepath,"scifi_posterart.jpg")), genre = "list", plot = "SciFi") common.addDirectory("USA", common.USA_FULL_URL, "TV_usa", xbmc.translatePath(os.path.join(common.imagepath,"usa_posterart.jpg")), xbmc.translatePath(os.path.join(common.imagepath,"usa_posterart.jpg")), genre = "list", plot = "USA")
src/b/l/BlueCop-XBMC-Plugins-HEAD/plugin.video.nbc.universal/resources/lib/scifi_tv.py BlueCop-XBMC-Plugins(Download)
for title, thumb, id, fanart in shows: showURL="http://video.scifi.com/player/feeds/?level=%s&type=placement&showall=1" % (id) common.addDirectory(common.cleanNames(title), showURL, 'TV_Episodes_scifi', thumb=common.SCIFI_BASE_URL + thumb, fanart=common.SCIFI_BASE_URL + fanart)
# see if we want plots plot=('', common.cleanNames(plot))[common.settings['get_episode_plot']] common.addDirectory(common.cleanNames(title), watchURL, 'TV_play_scifi', thumbnail, thumbnail, common.args.fanart, plot, 'genre')
src/b/l/BlueCop-XBMC-Plugins-HEAD/plugin.video.nbc.universal/resources/lib/nbc_tv.py BlueCop-XBMC-Plugins(Download)
for showURL, title in shows: title=(title, title + ' (Vintage)')[showURL.find('Vintage_Shows') > 0] # if vintage, say so common.addDirectory(common.cleanNames(title), showURL, 'TV_Seasons_nbc')
for seasonURL, name in seasons: #common.addDirectory(name, common.NBC_BASE_URL + seasonURL, 'TV_Episodes_nbc', fanart=common.NBC_BASE_URL + fanart) common.addDirectory(name, common.NBC_BASE_URL + seasonURL, 'TV_Episodes_nbc', 'null') xbmcplugin.endOfDirectory( handle=int( sys.argv[ 1 ] ))
name="Season %s" % (seasonID) common.args.url="%s?type=episode&show_id=%s&season=%s&items_per_page=%s" % (sliderURL, show_id, seasonID, seasonEpisodeCount) common.addDirectory(name, common.args.url, 'TV_Episodes_nbc') # add clips folder if not indicated otherwise
common.args.url="%s?type=clip&show_id=%s&items_per_page=%s" % (sliderURL, show_id, clipCount) if int(episodeCount) > 0: # only add a clips folder if we have episodes, otherwise go straight to the clips common.addDirectory(xbmc.getLocalizedString(30095), common.args.url, 'TV_Clips') else: self.addClipsList()
# see if we want plots plot=('', common.cleanNames(plot))[common.settings['get_episode_plot']] common.addDirectory(common.cleanNames(seasonEpisodeHeader + title), watchURL, 'TV_play_nbc', thumbnail, thumbnail, common.args.fanart, plot, 'genre') # now loop through rest of episode pages, if any; skip the first page
src/b/l/BlueCop-XBMC-Plugins-HEAD/plugin.video.cbs/resources/lib/_shows.py BlueCop-XBMC-Plugins(Download)
thumbnail = common.BASE_URL + show.find('img')['src'] url = common.BASE + show.find('a')['href'].encode('utf-8') common.addDirectory(name, url,'Videos',thumb=thumbnail) break xbmcplugin.addSortMethod(int(sys.argv[1]), xbmcplugin.SORT_METHOD_LABEL)
src/b/l/BlueCop-XBMC-Plugins-HEAD/plugin.video.nbc.universal/resources/lib/usa_tv.py BlueCop-XBMC-Plugins(Download)
else: thumbnail='' common.addDirectory(common.cleanNames(title).title(), common.USA_BASE_URL + showURL, 'TV_Episodes_usa', thumbnail)
# see if we want plots plot=('', common.cleanNames(plot))[common.settings['get_episode_plot']] common.addDirectory(common.cleanNames(title), watchURL, 'TV_play_usa', thumbnail, thumbnail, common.args.fanart, plot, 'genre')
src/b/l/BlueCop-XBMC-Plugins-HEAD/plugin.video.cbs/resources/lib/_home.py BlueCop-XBMC-Plugins(Download)
catid = item['onclick'].replace("showDaypart('",'').replace("');",'') name = catid.title() common.addDirectory(name,catid,mode="Shows")
src/b/l/BlueCop-XBMC-Plugins-HEAD/plugin.video.cbs/resources/lib/_videolist.py BlueCop-XBMC-Plugins(Download)
name = option.string.encode('utf-8') url = common.BASE + option['href'] common.addDirectory(name,url,'Videos','1') except: print 'CBS: secondary-show-nav-wrapper failed'
moduleid = option['id'] name = option.find(attrs={'class' : 'hdr'}).string common.addDirectory(name,common.args.url,'Videos',moduleid) except: print 'CBS: vid_module failed'
moduleid = option['id'] name = option.find(attrs={'class' : 'hdr'}).string common.addDirectory(name,common.args.url,'Videos',moduleid) except: self.PAGES(tree)