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

[Pornhub] Title extraction fails for UTF-8 chars #9777

Closed
kidol opened this issue Jun 13, 2016 · 0 comments
Closed

[Pornhub] Title extraction fails for UTF-8 chars #9777

kidol opened this issue Jun 13, 2016 · 0 comments

Comments

@kidol
Copy link
Contributor

@kidol kidol commented Jun 13, 2016

youtube-dl version 2016.06.14

The Pornhub extractor first tries to extract the title from the flashvars. Only if that doesn't work it tries to extract the title from the h1-tag.

Problem: The value in flashvars might be spaces only when the title consists of UTF-8 chars.

oops

Example url: http://www.pornhub.com/view_video.php?viewkey=1331683002

Solution:

Maybe use meta tag for title extraction and do not depend on flashvars/h1-tag:

<meta name="twitter:title" content="重庆婷婷女王足交">
@dstftw dstftw closed this in 6c37602 Jun 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.