From 695f543329a84219fc9d2f4d1fcfe1a3fd16c288 Mon Sep 17 00:00:00 2001 From: cvbasta75 <71543701+cvbasta75@users.noreply.github.com> Date: Sun, 12 Sep 2021 20:42:53 +0200 Subject: [PATCH] Update epg_json2xml.pl --- tvs/epg_json2xml.pl | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) 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 ) {