[mythtv-commits] Ticket #7999: 'uk_bbc' fails to return single search results
MythTV
mythtv at cvs.mythtv.org
Sun Jan 31 09:29:19 UTC 2010
#7999: 'uk_bbc' fails to return single search results
-------------------------------------------------+--------------------------
Reporter: Mike Parker <michael.parker@…> | Owner: ijr
Type: defect | Status: new
Priority: minor | Milestone: unknown
Component: Plugin - MythWeather | Version: 0.22-fixes
Severity: medium | Mlocked: 0
-------------------------------------------------+--------------------------
The 'uk_bbc' search scripts are failing to return hits when the underlying
query of the BBC website only returns a single match.
E.g.
./bbccurrentxml.pl -l bristol
currently returns nothing since BBCLocation::parseResults is only looking
for the <p class="response"> tag associated with the return of multiple
hits. HTML data coming from the BBC does not contain such tags when only a
single search hit is found.
In contrast:
./bbccurrentxml.pl -l london
successfully returns several results since the <p class="response"> tags
are present.
The attached patch file corrects this behaviour by looking for the "Print
<location>" link within the returned HTML. This link is present
irrespective of the number of hits returned. Where multiple hits are
returned, the locationID and location extracted from the "Print" link are
added to (and overwritten by, if necessary) the results parsed from the <p
class="response"> section.
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/7999>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list