How to set credentials in testing new extractor #17084

Closed
opened 2026-02-21 08:03:17 -05:00 by deekerman · 1 comment
Owner

Originally created by @fauresystems on GitHub (Jun 14, 2019).

Checklist

  • [ x] I'm asking a question
  • [x ] I've looked through the README and FAQ for similar questions
  • [x ] I've searched the bugtracker for similar questions including closed ones

Question

I create a branch and added YourExtractor, it works.
I want to add a test URL which requires user/passsword: https://fr.pornhubpremium.com/view_video.php?viewkey=ph5cd051fa7a6fc

How do I add the credentials to run :
test/test_download.py TestDownload.test_YourExtractor

Originally created by @fauresystems on GitHub (Jun 14, 2019). <!-- ###################################################################### WARNING! IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE ###################################################################### --> ## Checklist <!-- Carefully read and work through this check list in order to prevent the most common mistakes and misuse of youtube-dl: - Look through the README (http://yt-dl.org/readme) and FAQ (http://yt-dl.org/faq) for similar questions - Search the bugtracker for similar questions: http://yt-dl.org/search-issues - Finally, put x into all relevant boxes (like this [x]) --> - [ x] I'm asking a question - [x ] I've looked through the README and FAQ for similar questions - [x ] I've searched the bugtracker for similar questions including closed ones ## Question <!-- Ask your question in an arbitrary form. Please make sure it's worded well enough to be understood, see https://github.com/ytdl-org/youtube-dl#is-the-description-of-the-issue-itself-sufficient. --> I create a branch and added YourExtractor, it works. I want to add a test URL which requires user/passsword: https://fr.pornhubpremium.com/view_video.php?viewkey=ph5cd051fa7a6fc How do I add the credentials to run : test/test_download.py TestDownload.test_YourExtractor
deekerman 2026-02-21 08:03:17 -05:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@dstftw commented on GitHub (Jun 15, 2019):

Add to params
github.com/ytdl-org/youtube-dl@b85eae0f05/youtube_dl/YoutubeDL.py (L142-L143)

@dstftw commented on GitHub (Jun 15, 2019): Add to params https://github.com/ytdl-org/youtube-dl/blob/b85eae0f057a0afdf1da9d6034c19327c8de33cf/youtube_dl/YoutubeDL.py#L142-L143
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/youtube-dl#17084
No description provided.