tv_grab_zz_sdjson patches » tv_grab_zz_sdjson_sqlite.patch
tv_grab_zz_sdjson_sqlite 2017-08-17 23:39:21.319147939 -0700 → tv_grab_zz_sdjson_sqlite 2017-08-19 22:18:27.781095306 -0700 | ||
---|---|---|
1775 | 1775 | |
1776 | 1776 |
# XMLTV uses their standardized dates, while Schedules |
1777 | 1777 |
# Direct uses YYYY-MM-DD |
1778 |
if (defined($programDetails->{'originalAirDate'})) |
|
1778 |
# If "new", then do not generate previously-shown |
|
1779 |
if (defined($scheduleDetails->{'new'})) |
|
1780 |
{ |
|
1781 |
my $new = $scheduleDetails->{'new'}; |
|
1782 |
$w->emptyTag('new'); |
|
1783 |
} |
|
1784 |
elsif (defined($programDetails->{'originalAirDate'})) |
|
1779 | 1785 |
{ |
1780 | 1786 |
my $originalAirDate = $programDetails->{'originalAirDate'}; |
1781 | 1787 |
my $offset = ' +0000'; |
... | ... | |
1791 | 1797 |
my $start = substr($originalAirDate, 0, 4) . substr($originalAirDate, 5, 2) . substr($originalAirDate, 8, 2) . $offset; |
1792 | 1798 |
$w->emptyTag('previously-shown', start => $start); |
1793 | 1799 |
} |
1794 |
else |
|
1795 |
{ |
|
1796 |
my $new = 0; |
|
1797 |
$new = $scheduleDetails->{'new'} if (defined($scheduleDetails->{'new'})); |
|
1798 |
$w->emptyTag('previously-shown') if (!$new); |
|
1799 |
} |
|
1800 | 1800 | |
1801 | 1801 |
# XMLTV premiere/last-chance is sort of arbitrarily |
1802 | 1802 |
# defined, so we decide on our own mapping (while |
- « Previous
- 1
- 2
- Next »