From 353a4c7ba92820c79cba6adf72a5776ca3b61db2 Mon Sep 17 00:00:00 2001 From: Carl Karsten Date: Sun, 21 Jul 2024 16:25:33 -0500 Subject: [PATCH] trim description before looking for changes. No one cares about extra blank lines. --- dj/scripts/addeps.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/dj/scripts/addeps.py b/dj/scripts/addeps.py index 20609816..010bfe75 100755 --- a/dj/scripts/addeps.py +++ b/dj/scripts/addeps.py @@ -569,8 +569,8 @@ def add_eps(self, schedule, show): continue if f=="description": - a1 = a1.replace('\r','') - a2 = a2.replace('\r','') + a1 = a1.strip().replace('\r','') + a2 = a2.strip().replace('\r','') if ((a1 or a2) and (a1 != a2)) or (a1 is None and a2 == False): diff=True @@ -5227,7 +5227,10 @@ def unpage(url, session, payload, headers): conf_url=f"https://www.{conf_slug}.org/{year}/program/talks/{slug}" event['conf_url'] = conf_url - # event['description'] = youtubes[event['conf_key']]['description_youtube'] + if self.options.show == 'pyohio_2024': + # event['description'] = youtubes[event['conf_key']]['description_youtube'] + event['description'] = youtubes[event['conf_key']]['description_text'] + event['duration'] = "00:{}:00".format(event['duration']) event['released'] = not event['released'] # do_not_record