This commit is contained in:
Pierre Rudloff 2020-06-21 01:40:10 +02:00
parent 0b47cc8ab0
commit 07be28580b
2 changed files with 24 additions and 24 deletions

View file

@ -6,8 +6,10 @@
namespace Alltube\Library; namespace Alltube\Library;
use Alltube\Library\Exception\AlltubeLibraryException;
use Alltube\Library\Exception\EmptyUrlException; use Alltube\Library\Exception\EmptyUrlException;
use Alltube\Library\Exception\PasswordException;
use Alltube\Library\Exception\WrongPasswordException;
use Alltube\Library\Exception\YoutubedlException;
use stdClass; use stdClass;
/** /**
@ -99,9 +101,9 @@ class Video
* @param string $prop Property * @param string $prop Property
* *
* @return string * @return string
* @throws Exception\PasswordException * @throws PasswordException
* @throws Exception\WrongPasswordException * @throws WrongPasswordException
* @throws Exception\YoutubedlException * @throws YoutubedlException
*/ */
public function getProp($prop = 'dump-json') public function getProp($prop = 'dump-json')
{ {
@ -126,9 +128,9 @@ class Video
* Get all information about a video. * Get all information about a video.
* *
* @return stdClass Decoded JSON * @return stdClass Decoded JSON
* @throws Exception\PasswordException * @throws PasswordException
* @throws Exception\WrongPasswordException * @throws WrongPasswordException
* @throws Exception\YoutubedlException * @throws YoutubedlException
*/ */
public function getJson() public function getJson()
{ {
@ -145,9 +147,9 @@ class Video
* @param string $name Property * @param string $name Property
* *
* @return mixed * @return mixed
* @throws Exception\PasswordException * @throws PasswordException
* @throws Exception\WrongPasswordException * @throws WrongPasswordException
* @throws Exception\YoutubedlException * @throws YoutubedlException
*/ */
public function __get($name) public function __get($name)
{ {
@ -164,9 +166,9 @@ class Video
* @param string $name Property * @param string $name Property
* *
* @return bool * @return bool
* @throws Exception\PasswordException * @throws PasswordException
* @throws Exception\WrongPasswordException * @throws WrongPasswordException
* @throws Exception\YoutubedlException * @throws YoutubedlException
*/ */
public function __isset($name) public function __isset($name)
{ {
@ -182,9 +184,9 @@ class Video
* *
* @return string[] URLs of video * @return string[] URLs of video
* @throws EmptyUrlException * @throws EmptyUrlException
* @throws Exception\PasswordException * @throws PasswordException
* @throws Exception\WrongPasswordException * @throws WrongPasswordException
* @throws Exception\YoutubedlException * @throws YoutubedlException
*/ */
public function getUrl() public function getUrl()
{ {
@ -204,9 +206,9 @@ class Video
* Get filename of video file from URL of page. * Get filename of video file from URL of page.
* *
* @return string Filename of extracted video * @return string Filename of extracted video
* @throws Exception\PasswordException * @throws PasswordException
* @throws Exception\WrongPasswordException * @throws WrongPasswordException
* @throws Exception\YoutubedlException * @throws YoutubedlException
*/ */
public function getFilename() public function getFilename()
{ {
@ -219,9 +221,9 @@ class Video
* @param string $extension New file extension * @param string $extension New file extension
* *
* @return string Filename of extracted video with specified extension * @return string Filename of extracted video with specified extension
* @throws Exception\PasswordException * @throws PasswordException
* @throws Exception\WrongPasswordException * @throws WrongPasswordException
* @throws Exception\YoutubedlException * @throws YoutubedlException
*/ */
public function getFileNameWithExtension($extension) public function getFileNameWithExtension($extension)
{ {

View file

@ -2,8 +2,6 @@
namespace Alltube\Library\Exception; namespace Alltube\Library\Exception;
use Throwable;
/** /**
* Can't find avconv or ffmpeg. * Can't find avconv or ffmpeg.
*/ */