Skip to content

Commit 8a1d0cf

Browse files
author
John Goodliff
authored
Merge pull request #6 from jerboa88/5-bug-script-fails-when-running-for-a-second-time
Increase selector specificity for media sections
2 parents d706aef + 74e8726 commit 8a1d0cf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

watch-history-exporter-for-amazon-prime-video.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122

123123
// Loop over date sections
124124
for (const dateSection of dateSections) {
125-
const mediaSections = dateSection.querySelectorAll('ul > li');
125+
const mediaSections = dateSection.querySelectorAll('& > ul > li');
126126
const dateWatched = dateSection.querySelector(
127127
'[data-automation-id^="wh-date"]',
128128
).textContent;

0 commit comments

Comments
 (0)