You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 3, 2024. It is now read-only.
class MyDownloader extends AbstractDownloader
{
public function getURL(): string
{
$videoId = $this->getVideoId();
//$videoLocation = [...code to retreive URL ...]
return $videoLocation;
}
//it needs to identify video ID from public URLS (this example: http://www.sample-site.com/video/1234/)
public static function getPublicUrlRegex(): string
{
return '/www\.sample-site\.com\/video\/([\d]+)\//';
}
public static function getType(): string
{
return 'my_downloader';
}
}