diff options
author | Sean Molenaar <sean@seanmolenaar.eu> | 2020-08-29 23:39:35 +0200 |
---|---|---|
committer | Benjamin Brahmer <info@b-brahmer.de> | 2020-09-27 15:35:31 +0200 |
commit | d00d1ab2a28f428223e52b17052c072c64784016 (patch) | |
tree | c019f85fb7ac67147dd43ca64b4ac3cda99832f7 /lib/Fetcher/YoutubeFetcher.php | |
parent | 5687baca75d47dbdffd3de74e865ad2f71ef0cb7 (diff) |
Create V2 mapper, Service and management commands
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
Diffstat (limited to 'lib/Fetcher/YoutubeFetcher.php')
-rw-r--r-- | lib/Fetcher/YoutubeFetcher.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/Fetcher/YoutubeFetcher.php b/lib/Fetcher/YoutubeFetcher.php index 56adaae03..85aad5d59 100644 --- a/lib/Fetcher/YoutubeFetcher.php +++ b/lib/Fetcher/YoutubeFetcher.php @@ -37,9 +37,13 @@ class YoutubeFetcher implements IFeedFetcher /** - * This fetcher handles all the remaining urls therefore always returns true + * Check if the URL is a youtube URL by reformatting it. + * + * @param string $url the url that should be fetched + * + * @return bool */ - public function canHandle($url): bool + public function canHandle(string $url): bool { return $this->buildUrl($url) !== $url; } |