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

Added handling for urls that are images #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

auroq
Copy link

@auroq auroq commented Jul 24, 2018

I can think of some other ways to do this if you wanted to further split your code into smaller functions, without changing too much, I was able to handle any url that is recognized as an image.

Copy link
Owner

@SaptakS SaptakS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@auroq this doesn't actually solve the problem. Firstly, the path that you are checking for, we give the path of the first page and not the first image so it's currently checking wrong URL for image. Secondly, even if we can determine it is an image, there is no way to determine that it is the image we want.

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