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

support for player.tnaflix.com/video/xxxx #18205

Closed
awei78 opened this issue Nov 16, 2018 · 0 comments
Closed

support for player.tnaflix.com/video/xxxx #18205

awei78 opened this issue Nov 16, 2018 · 0 comments

Comments

@awei78
Copy link

@awei78 awei78 commented Nov 16, 2018

Please follow the guide below

  • You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your issue (like this: [x])
  • Use the Preview tab to see what your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2018.11.07. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

  • I've verified and I assure that I'm running youtube-dl 2018.11.07

content start...
the last modify for tnaflix parser in Nov 25, 2017.
such as: https://player.tnaflix.com/video/1781991, the player.tnaflix domain html has changed, and it can not be parser.

but, tt is embedded by the www.tnaflix.com url, html code is:

<div class="mainVidTitle">
    <a class="avatar-link" href="https://www.tnaflix.com/profile/NaughtyAmerica" target="_blank"><img class="thVidTtl" alt="NaughtyAmerica" src="https://img.tnastatic.com/q80w230r/pics/alpha/353652/85643/10515113.jpg"></a>
    <h2>
        <a href="https://www.tnaflix.com/oral-sex/Sexy-cuties-Allie-Haze-and-Jada-Stevens-fucking-in-threesome/video1781991" target="_blank">Sexy cuties Allie Haze and Jada Stevens fucking in threesome</a>
    </h2><span>by <a href="https://www.tnaflix.com/channel/naughty-america" target="_blank">Naughty America</a></span>
    <span style="display:none">by <a href="{$config.URL_PREFIX}/#"></a></span>
</div>

so we get the

https://www.tnaflix.com/oral-sex/Sexy-cuties-Allie-Haze-and-Jada-Stevens-fucking-in-threesome/video1781991

and download it, problem be solved.

modifed new persor is:

class TNAFlixPLayerIE(TNAFlixNetworkEmbedIE):
    def _real_extract(self, url):
        video_id = self._match_id(url)
        webpage = self._download_webpage(url, video_id)
        title = self._search_regex(r'<title>(.+?)</title>', webpage, 'video title')

        # <a href="https://www.tnaflix.com/oral-sex/Sexy-cuties-Allie-Haze-and-Jada-Stevens-fucking-in-threesome/video1781991" target="_blank">Sexy cuties Allie Haze and Jada Stevens fucking in threesome</a>
        video_url = self._search_regex(r'(?is)<a href="([^"]+).+' + title, webpage, 'video_url', fatal=False)
        if video_url:
            return self.url_result(video_url)

        return super(TNAFlixPLayerIE, self)._real_extract(url)
@dstftw dstftw closed this in 9b9b350 Nov 16, 2018
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.