commit 5e8b5054c9318e28ec65347472f4fc7b4321a282
Author: Gary Buhrmaster <gary.buhrmaster(a)gmail.com>
Date: Sun Sep 29 07:52:58 2019 +0000
Pull in upstream patches to resolve grabber issues
0015-telsu-update-time-parser-for-new-format.patch | 26 +++++++++
...pparit-update-for-new-class-names-in-HTML.patch | 65 ++++++++++++++++++++++
xmltv.spec | 10 +++-
3 files changed, 100 insertions(+), 1 deletion(-)
---
diff --git a/0015-telsu-update-time-parser-for-new-format.patch
b/0015-telsu-update-time-parser-for-new-format.patch
new file mode 100644
index 0000000..16829ac
--- /dev/null
+++ b/0015-telsu-update-time-parser-for-new-format.patch
@@ -0,0 +1,26 @@
+From 7aec62ed5d84700c86121261961da07fc7edd07c Mon Sep 17 00:00:00 2001
+From: Stefan Becker <chemobejk(a)gmail.com>
+Date: Sun, 1 Sep 2019 01:08:02 +0300
+Subject: [PATCH 15/16] telsu: update time parser for new format
+
+The time format is now 'HH.MM' instead of 'HH:MM'.
+---
+ grab/fi/fi/source/telsu.pm | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/grab/fi/fi/source/telsu.pm b/grab/fi/fi/source/telsu.pm
+index eac8b988..d77303eb 100644
+--- a/grab/fi/fi/source/telsu.pm
++++ b/grab/fi/fi/source/telsu.pm
+@@ -116,7 +116,7 @@ sub grab {
+
+ if ($title && $time && $desc) {
+ if (my($new, $start_h, $start_m, $end_h, $end_m) =
+- $time->as_text() =~ /^(.+)\s(\d{2}):(\d{2})\s-\s(\d{2}):(\d{2})/) {
++ $time->as_text() =~ /^(.+)\s(\d{2})[:.](\d{2})\s-\s(\d{2})[:.](\d{2})/) {
+ $title = $title->as_text();
+ $desc = $desc->as_text();
+
+--
+2.21.0
+
diff --git a/0016-ampparit-update-for-new-class-names-in-HTML.patch
b/0016-ampparit-update-for-new-class-names-in-HTML.patch
new file mode 100644
index 0000000..05867fb
--- /dev/null
+++ b/0016-ampparit-update-for-new-class-names-in-HTML.patch
@@ -0,0 +1,65 @@
+From b25f2115957cd60a3f08927e65b081849bdae2ff Mon Sep 17 00:00:00 2001
+From: Stefan Becker <chemobejk(a)gmail.com>
+Date: Sun, 1 Sep 2019 01:28:52 +0300
+Subject: [PATCH 16/16] ampparit: update for new class names in HTML
+
+---
+ grab/fi/fi/source/ampparit.pm | 19 ++++++++++---------
+ 1 file changed, 10 insertions(+), 9 deletions(-)
+
+diff --git a/grab/fi/fi/source/ampparit.pm b/grab/fi/fi/source/ampparit.pm
+index 3984bc03..8d2768e9 100644
+--- a/grab/fi/fi/source/ampparit.pm
++++ b/grab/fi/fi/source/ampparit.pm
+@@ -39,7 +39,8 @@ sub channels {
+ # <div class="channel col-xs-6 col-sm-4 col-md-3 col-lg-3">
+ # <div class="channel-wrap">
+ # <div class="channel-header">
+- # <a class="logo" href="/tv/yle-tv1">
++ # <a class="channel-title__logo"
href="/tv/yle-tv1">
++ # or <a class="channel-title__name"
href="/tv/yle-tv1">
+ # <img src="..." alt="Yle TV1">
+ # </a>
+ # ...
+@@ -52,7 +53,7 @@ sub channels {
+ #
+ if (my $container = $root->look_down("class" =>
"programming-container")) {
+ if (my @links = $container->look_down("_tag" => "a",
+- "class" => qr/^(?:logo|name)$/)) {
++ "class" => qr/^channel-title__(?:logo|name)$/)) {
+ foreach my $link (@links) {
+ my $id = $link->attr("href");
+
+@@ -108,12 +109,12 @@ sub grab {
+ # ...
+ # <div class="programs">
+ # <div data-tip="..." data-for="..."
class="program">
+- # <time class="program-start-time" title="ke 25.7. 6:00"
datetime="2018-07-25T03:00:00.000Z">
++ # <time class="program__start-time" title="ke 25.7.
6:00" datetime="2018-07-25T03:00:00.000Z">
+ # 06:00
+ # </time>
+- # <div class="program-right">
+- # <div class="program-title">Aamun AVAus</div>
+- # <div class="program-description">
++ # <div class="program__right">
++ # <div class="program__title">Aamun AVAus</div>
++ # <div class="program__description">
+ # ...
+ # </div>
+ # </div>
+@@ -126,9 +127,9 @@ sub grab {
+ if (my @programmes = $container->look_down("class" =>
"program")) {
+ foreach my $programme (@programmes) {
+ my $start = $programme->look_down("_tag" => "time",
+- "class" => "program-start-time");
+- my $title = $programme->look_down("class" =>
"program-title");
+- my $desc = $programme->look_down("class" =>
"program-description");
++ "class" => "program__start-time");
++ my $title = $programme->look_down("class" =>
"program__title");
++ my $desc = $programme->look_down("class" =>
"program__description");
+
+ if ($start && $title && $desc) {
+ if (my($hour, $minute) =
+--
+2.21.0
+
diff --git a/xmltv.spec b/xmltv.spec
index db9a5b9..faa8430 100644
--- a/xmltv.spec
+++ b/xmltv.spec
@@ -1,6 +1,6 @@
Name: xmltv
Version: 0.6.1
-Release: 8%{?dist}
+Release: 9%{?dist}
Summary: A set of utilities to manage your TV viewing
License: GPLv2+
@@ -34,6 +34,11 @@ Patch0012: 0012-correct-FSF-address-issue-65.patch
Patch0013: 0013-remove-version-on-use-XMLTV-to-eliminate-certain-pac.patch
# Upstream commit 4579542 - Warning message when unable to retrieve web page (exit status
1)
Patch0014: 0014-Warning-message-when-unable-to-retrieve-web-page-exi.patch
+# Upstream commit 7aec62e - telsu: update time parser for new format
+Patch0015: 0015-telsu-update-time-parser-for-new-format.patch
+# Upstream commit b25f211 - ampparit: update for new class names in HTML
+Patch0016: 0016-ampparit-update-for-new-class-names-in-HTML.patch
+
BuildArch: noarch
@@ -274,6 +279,9 @@ make test
%changelog
+* Sun Sep 29 2019 Gary Buhrmaster <gary.buhrmaster(a)gmail.com> - 0.6.1-9
+- Pull in upstream patches to resolve grabber issues
+
* Fri Aug 09 2019 RPM Fusion Release Engineering <leigh123linux(a)gmail.com> -
0.6.1-8
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild