Skip to content

Refactor Extractor#onFetchPage to not recieve downloader as parameter#1453

Closed
ghost wants to merge 2 commits intodevfrom
unknown repository
Closed

Refactor Extractor#onFetchPage to not recieve downloader as parameter#1453
ghost wants to merge 2 commits intodevfrom
unknown repository

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Feb 8, 2026

  • I carefully read the contribution guidelines and agree to them.
  • I have tested the API against NewPipe.
  • I agree to create a pull request for NewPipe as soon as possible to make it compatible with the changed API.

🔴 Breaking API change

Extractor.onFetchPage now doesn't receive parameters

@ghost ghost force-pushed the global_downloader branch from 0fc6892 to 07bfb23 Compare February 10, 2026 21:22
@ghost
Copy link
Copy Markdown
Author

ghost commented Feb 10, 2026

Don't mind what just happened

Yevhen Babiichuk (DustDFG) added 2 commits February 12, 2026 14:30
We have only one global downloader so there is not so much sense in
passing it as parameter. Moreover Extractor class has getDownloader
method which is used with globale Newpipe.getDownloader in half of
the extracotrs. So before it any extractor could get downloader in
3 ways: downloader parameter, getDownloader and Newpipe.getDownloader
now downloader parameter is eliminated. Moreover all 3 methods to
access downloader always point to the same globale downloader
The downloader is global there is no sense to store reference to it
in every instance of Extractor. So eliminate the field, make
getDownloader shorthand for Newpipe.getDownloader and make it static
to be accesible in static functions of extractors
@ghost ghost force-pushed the global_downloader branch from 07bfb23 to 48b790f Compare February 12, 2026 12:30
@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
7.1% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@TobiGr TobiGr requested a review from AudricV February 22, 2026 08:07
@ghost ghost closed this by deleting the head repository Mar 30, 2026
@AudricV AudricV removed their request for review March 31, 2026 13:31
This pull request was closed.
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.

0 participants