Skip to content

Commit

Permalink
Revert "add subcategories after the main categories in the 'catergori…
Browse files Browse the repository at this point in the history
…es' property"

This reverts commit 97bd46d.
  • Loading branch information
dinkypumpkin committed Nov 3, 2014
1 parent 97bd46d commit c28a32d
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions get_iplayer
Original file line number Diff line number Diff line change
Expand Up @@ -5979,15 +5979,6 @@ sub get_metadata {
$genre =~ s/\b(\w)/\U$1/g;
push @cats, $genre unless grep(/$genre/i, @cats);
}
# parse subcategories
for (split /<po:genre/, $entry) {
my $genre = $1 if /\/programmes\/genres\/\w+\/(\w+)/;
next unless $genre;
$genre =~ s/northernireland/northern ireland/;
$genre =~ s/(\w)and(\w)/$1 & $2/;
$genre =~ s/\b(\w)/\U$1/g;
push @cats, $genre unless grep(/$genre/i, @cats);
}
$categories = join ',', @cats;
# capture first category, skip generic values
foreach my $cat ( @cats ) {
Expand Down

0 comments on commit c28a32d

Please sign in to comment.