kittyghost1234 / bluecop-xbmc-repo

Automatically exported from code.google.com/p/bluecop-xbmc-repo
0 stars 0 forks source link

The Daily Show - Site Change For "Guests" #24

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. http://www.thedailyshow.com/guests does not use <option> tags, so nothing 
shows up in XBMC when you go under the directory "Guests"

If it helps, I rewrote the GUESTS function for my personal use.  Instead of 
scraping the guests page, I went straight to the feeds search since that is 
where the page gets its content from anyways and you already had the LISTVIDEOS 
function which did all the work.  I also included directories for going through 
the pages of search results since there are well over a thousand guest 
interview videos:

def GUESTS(page):
    gurl = "http://www.thedailyshow.com/feeds/search?keywords=&tags=interviews&sortOrder=desc&sortBy=original_air_date_d&page="+page
    data = getURL(gurl)
    lastPage = re.compile('<span> \.\.\. </span>.+?<span>(.+?)</span>', re.DOTALL).findall(data)

    if int(page) != 1:
        addDir('First Page','1',3)
        addDir('Previous Page ('+str(int(page) - 1)+')',str(int(page) - 1),3)
    if int(lastPage[0]) > int(page):
        addDir('Next Page ('+str(int(page) + 1)+')',str(int(page) + 1),3)
        addDir('Last Page ('+lastPage[0]+')',lastPage[0],3)

    LISTVIDEOS(gurl)

    xbmcplugin.endOfDirectory(pluginhandle)

Original issue reported on code.google.com by dbac.pho...@gmail.com on 21 Feb 2011 at 5:50

GoogleCodeExporter commented 8 years ago
Thanks for the code. I will test it out later.

I tend to only watch full episodes so didn't notice the problem. thanks again.

Original comment by bluecop...@gmail.com on 22 Feb 2011 at 10:14

GoogleCodeExporter commented 8 years ago
i have been having difficulty opening the daily show stream this week. i wil 
check back in with the log next time i try to open it.
by the way...
Bluecop, your repo is THE BEST!!!
take care my friend!
byron

Original comment by sons...@gmail.com on 11 Mar 2011 at 12:53