BlissFlixx Forum
BBC iPlayer category & search problem - Printable Version

+- BlissFlixx Forum (http://forum.blissflixx.rocks)
+-- Forum: Users (http://forum.blissflixx.rocks/forumdisplay.php?fid=1)
+--- Forum: General (http://forum.blissflixx.rocks/forumdisplay.php?fid=2)
+--- Thread: BBC iPlayer category & search problem (/showthread.php?tid=4711)



BBC iPlayer category & search problem - SteveDee - 07-27-2017

The BBC iPlayer will list and run anything from the "Most Popular" category, but for all other categories displays: There are no items for this feed.

When doing a search for a program (e.g. "top of the lake") it returns: There are no results for this query.

Also the ITV player returns "error: 500" for the category: Drama & Soaps


RE: BBC iPlayer category & search problem - SteveDee - 07-29-2017

(07-27-2017, 10:00 PM)SteveDee Wrote: ... the ITV player returns "error: 500" for the category: Drama & Soaps

The ITV Player problem is easily fixed by opening .../blissflixx/chls/bfch_itv_player/__init__.py and changing:-


  {'title':'Drama & Soaps', 'url':'http://www.itv.com/hub/categories/drama-and-soaps'},

...to:-

  {'title':'Drama & Soaps', 'url':'http://www.itv.com/hub/categories/drama-soaps'},


RE: BBC iPlayer category & search problem - MrBliss - 08-02-2017

>>>The ITV Player problem is easily fixed by opening ...

I have added this fix to the code.


RE: BBC iPlayer category & search problem - SteveDee - 08-07-2017

(08-02-2017, 12:03 PM)MrBliss Wrote: >>>The ITV Player problem is easily fixed by opening ...

I have added this fix to the code.

Thanks MrBliss. Any ideas on the BBC iPlayer issue?

I can copy each category url from .../bfch_bbc_iplayer/__init__.py into a web browser and they work fine.


RE: BBC iPlayer category & search problem - SteveDee - 08-19-2017

The reason for the iPlayer problem seems to be that the BBC recently changed the format of its Categories pages.

The solution is to open the .../blissflixx/chls/bfch_bbc_iplayer/__init__.py file and change:-
Code:
 for l in rtree:
   a = select_one(l, 'a')
   url = get_attr(a, 'href')
   if url is None or not url.startswith('/iplayer'):
     continue
   url = "http://www.bbc.co.uk" + url

...to:-

Code:
for l in rtree:
  a = select_one(l, 'a')
  url = get_attr(a, 'href')
  if url is None:
    continue
  if url.startswith('/iplayer'):    
    url = "http://www.bbc.co.uk" + url