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

Fix for youtube url fetch metadata issue #131

Merged
merged 3 commits into from Feb 1, 2021

Conversation

nafis042
Copy link
Contributor

This pull request fixes youtube url fetch metadata issue. adding just a user-Agent field in the request header fixes the issue. i don't think it will break anything. if anything breaks please comment here

@LeonardoCardoso
Copy link
Owner

@nafis042 Thanks. I will test it ASAP.

Copy link

@kodekarim kodekarim left a comment

Choose a reason for hiding this comment

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

@nafis042 , thanks for the PR really helped me a lot, it's working for YouTube but not working with Instagram video

link - https://www.instagram.com/p/CKg_9H2gpQm/?utm_source=ig_web_copy_link

@nafis042
Copy link
Contributor Author

Instagram uses open graph tags and for this, I think new regex expressions must be included. I made a quick fix for the Instagram image tag but this should be handled properly for video, title, description as well.

@kodekarim
Copy link

kodekarim commented Jan 28, 2021

@nafis042 tested Insta link, working great
​​​​​​​

@LeonardoCardoso
Copy link
Owner

@nafis042 @abdulKarim002 Cool! Thanks! I will have a look at it this weekend and push a new version. Thanks for the contribution.

@LeonardoCardoso LeonardoCardoso merged commit a997865 into LeonardoCardoso:main Feb 1, 2021
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.

None yet

3 participants