Skip to content

Conversation

@brainwo
Copy link

@brainwo brainwo commented Feb 12, 2025

Used by YouTube: https://www.youtube.com/feeds/videos.xml?channel_id=UClS6E2qjk2DkxRCZ1xU0VXA

Added test as well.

Alongside with this PR, I also change the helper findElementOrNull function. Originally it would search through all the element recursively, which doesn't work when media:description can be both child of entry and media:group. This new change should only find the first direct descendant as how it supposed to.

@brainwo brainwo changed the title Add Description Media Group Add Description to Media Group Feb 13, 2025
@amugofjava
Copy link
Collaborator

Hi @brainwo,

Thanks for the PR.

If I run the tests, I find that several fail. If I revert the change you made to the helper class back to findAllElements from childElements, the tests all pass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants