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

[youtube] Fixed 'next_link' regular expression #26163

Closed

Conversation

RedpointsBots
Copy link

Please follow the guide below

  • You will be asked some questions, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your pull request (like that [x])
  • Use Preview tab to see how your pull request will actually look like

Before submitting a pull request make sure you have:

In order to be accepted and merged into youtube-dl each piece of code must be in public domain or released under Unlicense. Check one of the following options:

  • I am the original author of this code and I am willing to release it under Unlicense
  • I am not the original author of this code but it is in public domain or released under Unlicense (provide reliable evidence)

What is the purpose of your pull request?

  • Bug fix
  • Improvement
  • New extractor
  • New feature

Description of your pull request and other information

The current regular expression used to find the next page link of the search results does not work. As a result, no link is found and there is an unintentional limit to the first page of search results (20 results. If a search is made for with a specified limit of 50, youtube-dl will not find a link to the next page and report that only 20 results were found (even if there were more on any potential next pages).
This PR updates the regular expression in question. Rather than removing the offending part of the regex, I have simply made it optional for backwards compatibility or in case the next page link is changed back.

@RedpointsBots
Copy link
Author

This is the associated issue: #26161

Crypto90 added a commit to Crypto90/youtube-dl that referenced this pull request Jul 30, 2020
Added changes from this pull request for broken next page parsing:
ytdl-org/youtube-dl#26163
@donat-b
Copy link

donat-b commented Aug 25, 2020

This patch doesn't seem to work unfortunately

@dstftw dstftw force-pushed the master branch 2 times, most recently from 5e26784 to da2069f Compare September 13, 2020 13:50
@RedpointsBots
Copy link
Author

This patch doesn't seem to work unfortunately

Can you give more information about what isn't working for you? This change is still fixes pagination for me.

@dstftw
Copy link
Collaborator

dstftw commented Dec 27, 2020

No longer actual.

@dstftw dstftw closed this Dec 27, 2020
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

4 participants