Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Audio/Video within blacklisted CSS containers is still downloaded #849

Closed
ISNIT0 opened this issue Jun 28, 2019 · 8 comments · Fixed by #1780
Closed

Audio/Video within blacklisted CSS containers is still downloaded #849

ISNIT0 opened this issue Jun 28, 2019 · 8 comments · Fixed by #1780
Assignees
Labels
Milestone

Comments

@ISNIT0
Copy link
Contributor

ISNIT0 commented Jun 28, 2019

Take this html:

<div class='noprint'>
    <audio><source src='...'/></audio>
</div>

The source url is added to the list of medias to download in pre-processing, but the element itself is removed later in the treatment process. This means we download the content, but it's not visible

@kelson42 kelson42 added the bug label Jul 9, 2019
@vaibhavmatta
Copy link

Sir, Should I start resolving this issue now?

@kelson42
Copy link
Collaborator

kelson42 commented Aug 2, 2019

@vaibhavmatta Would be great! May you please explain first what would be your approach to solve this problem?

@vaibhavmatta
Copy link

Thanks alot @kelson42 sir.! I think I am capable of working on many bugs simultaneously. I will reply for resolving strategies as fast as I can.

@kelson42
Copy link
Collaborator

kelson42 commented Aug 2, 2019

@ISNIT0 I let you handle tech. details with @vaibhavmatta.

@ISNIT0
Copy link
Contributor Author

ISNIT0 commented Aug 2, 2019

My recommendation would be to apply the blacklists/html processing before extracting the urls.

This would be done by re-ordering the calls to processArticleHtml, getModuleDependencies, and templateArticle: https://github.com/openzim/mwoffliner/blob/master/src/util/saveArticles.ts#L90
I'm not sure it it'll just work, or need further tweaking

@vaibhavmatta
Copy link

Yes, That's what I was exactly thinking @ISNIT0

@stale
Copy link

stale bot commented Oct 1, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be now be reviewed manually. Thank you for your contributions.

@stale stale bot added the stale label Oct 1, 2019
@stale stale bot removed the stale label Nov 21, 2020
@stale
Copy link

stale bot commented Jan 20, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be now be reviewed manually. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants