Move Video class to a separate library
+ improve error handling + youtube-dl update
This commit is contained in:
parent
7d94271a49
commit
5c2823e3f1
30 changed files with 649 additions and 1152 deletions
10
classes/exceptions/ConfigException.php
Normal file
10
classes/exceptions/ConfigException.php
Normal file
|
@ -0,0 +1,10 @@
|
|||
<?php
|
||||
|
||||
namespace Alltube\Exception;
|
||||
|
||||
use Exception;
|
||||
|
||||
class ConfigException extends Exception
|
||||
{
|
||||
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* EmptyUrlException class.
|
||||
*/
|
||||
|
||||
namespace Alltube\Exception;
|
||||
|
||||
use Exception;
|
||||
|
||||
/**
|
||||
* Exception thrown when youtube-dl returns an empty URL.
|
||||
*/
|
||||
class EmptyUrlException extends Exception
|
||||
{
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* PasswordException class.
|
||||
*/
|
||||
|
||||
namespace Alltube\Exception;
|
||||
|
||||
use Exception;
|
||||
|
||||
/**
|
||||
* Exception thrown when a video requires a password.
|
||||
*/
|
||||
class PasswordException extends Exception
|
||||
{
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue