diff --git a/tvs/epg_json2xml.pl b/tvs/epg_json2xml.pl index ee7da68..8c81007 100755 --- a/tvs/epg_json2xml.pl +++ b/tvs/epg_json2xml.pl @@ -217,11 +217,6 @@ print STDERR "[ EPG WARNING ] Channel ID unknown: " . $cid . "\n"; } - # IMAGE (condition) - if( defined $broadcast->{'images'}[0]{'size4'} ) { - print " {'images'}[0]{'size4'} . "\" />\n"; - } - # TITLE (language) $title =~ s/\&/\&/g; $title =~ s/<3/love/g; @@ -269,11 +264,6 @@ print " $date\n"; } - # COUNTRY (condition) - if( defined $country ) { - print " " . uc($country) . "\n"; - } - # CATEGORIES (USE ONE CATEGORY ONLY) (condition) (language) (settings) if ( defined $genre ) { $genre =~ s/\&/\&/g; @@ -289,6 +279,15 @@ } } + # IMAGE (condition) + if( defined $broadcast->{'images'}[0]{'size4'} ) { + print " {'images'}[0]{'size4'} . "\" />\n"; + } + + # COUNTRY (condition) + if( defined $country ) { + print " " . uc($country) . "\n"; + } # SEASON/EPISODE REQUIED TO READ XML CORRECTLY if( defined $series ) {