diff options
Diffstat (limited to 'fetcher/youtubefetcher.php')
-rw-r--r-- | fetcher/youtubefetcher.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/fetcher/youtubefetcher.php b/fetcher/youtubefetcher.php index 35ecd80f0..3752ba197 100644 --- a/fetcher/youtubefetcher.php +++ b/fetcher/youtubefetcher.php @@ -55,16 +55,21 @@ class YoutubeFetcher implements IFeedFetcher { * no results are fetched * @param bool fullTextEnabled if true tells the fetcher to enhance the * articles by fetching custom enhanced content + * @param string $basicAuthUser if given, basic auth is set for this feed + * @param string $basicAuthPassword if given, basic auth is set for this + * feed. Ignored if user is null or an empty string * @throws FetcherException if it fails * @return array an array containing the new feed and its items, first * element being the Feed and second element being an array of Items */ public function fetch($url, $getFavicon=true, $lastModified=null, - $etag=null, $fullTextEnabled=false) { + $etag=null, $fullTextEnabled=false, + $basicAuthUser=null, $basicAuthPassword=null) { $transformedUrl = $this->buildUrl($url); $result = $this->feedFetcher->fetch( - $transformedUrl, $getFavicon, $lastModified, $etag, $fullTextEnabled + $transformedUrl, $getFavicon, $lastModified, $etag, + $fullTextEnabled, $basicAuthUser, $basicAuthPassword ); // reset feed url so we know the correct added url for the feed |