(articleNode)
| 716 | } |
| 717 | |
| 718 | function findPostId(articleNode) { |
| 719 | let aNodes = articleNode.querySelectorAll("a"); |
| 720 | for (let i = 0; i < aNodes.length; ++i) { |
| 721 | let link = aNodes[i].getAttribute("href"); |
| 722 | if (link) { |
| 723 | let match = link.match(postIdPattern); |
| 724 | if (match) return match[1]; |
| 725 | } |
| 726 | } |
| 727 | return null; |
| 728 | } |
| 729 | |
| 730 | async function fetchVideoURL(articleNode, videoElem) { |
| 731 | let poster = videoElem.getAttribute("poster"); |
no outgoing calls
no test coverage detected