The BBC have added additional information to their XML feeds, which has
confused the BBCiPlayer plugin.

Here's a patch:


Code:
--------------------
    
  --- BBCXMLParser.pm~  2019-03-20 17:06:14.000000000 +0000
  +++ BBCXMLParser.pm   2019-05-30 14:47:14.319000022 +0100
  @@ -78,7 +78,7 @@
        my $xml = eval {
                XMLin( 
                        $http->contentRef,
  -                     KeyAttr    => { parent => 'type', link => 
'transferformat', image => 'entity_type' },
  +                     KeyAttr    => { parent => 'type', image => 
'entity_type' },
                        GroupTags  => { links => 'link', parents => 'parent' },
                        ForceArray => [ 'parent', 'link' ]
                )
  @@ -108,8 +108,15 @@
                my $title = $entry->{'title'};  
  
                # move info to top level of entry so we can filter on it
  -             $entry->{'hlsurl'} = $entry->{'links'}->{'hls'}->{'content'};
  -             $entry->{'dashurl'} = $entry->{'links'}->{'dash'}->{'content'};
  +             foreach my $transferformat ( qw(dash hls) ) {
  +                     foreach my $link ( @{$entry->{'links'}} ) {
  +                         if ( $link->{'transferformat'} eq $transferformat ) 
{
  +                                 $entry->{$transferformat. 'url'} = 
$link->{'content'};
  +                                 last;
  +                         }
  +                     }
  +             }
  +
                for my $info (keys %{$entry->{'parents'}}) {
                        $entry->{ lc($info) } = $entry->{'parents'}->{ $info 
}->{'content'};
                }
  
--------------------


------------------------------------------------------------------------
mavit's Profile: http://forums.slimdevices.com/member.php?userid=10203
View this thread: http://forums.slimdevices.com/showthread.php?t=109826

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to