Debug output to try to track down why titles are changing

This commit is contained in:
Keith Edmunds 2022-09-30 18:26:13 +01:00
parent e1ceb5e8e3
commit 5d1078dea0

View File

@ -1165,6 +1165,11 @@ class PlaylistTab(QTableWidget):
# Does it delimit a section?
if section_start_plr is not None:
if note_text.endswith("-"):
log.debug(
"line 1165: "
f"self._update_note_text({section_start_plr=},"
f"self._get_section_timing_string({section_time=})"
)
self._update_note_text(
section_start_plr,
self._get_section_timing_string(section_time)
@ -1186,12 +1191,16 @@ class PlaylistTab(QTableWidget):
# Have we had a section start but not end?
if section_start_plr is not None:
log.debug(
"line 1191: "
f"self._update_note_text({section_start_plr=},"
f"self._get_section_timing_string({section_time=})"
)
self._update_note_text(
section_start_plr,
self._get_section_timing_string(section_time, no_end=True)
)
#
# # ########## Internally called functions ##########
def _add_track(self, row: int) -> None: