Skip to content

Commit

Permalink
- type hint for path argument
Browse files Browse the repository at this point in the history
- removed a useless print statement (I forgot)
  • Loading branch information
EchterAlsFake committed Dec 21, 2024
1 parent 0dac461 commit 0c953ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "phub"
version = "4.7.4"
version = "4.7.5"
description = "An API for Pornhub"
authors = [
{name = 'Egsagon', email = "[email protected]"},
Expand Down
5 changes: 2 additions & 3 deletions src/phub/objects/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import logging
from functools import cached_property
from datetime import datetime, timedelta
from typing import TYPE_CHECKING, Iterator, Literal, Callable, Any
from typing import TYPE_CHECKING, Iterator, Literal, Callable, Any, Union

from . import Tag, Like, User, Image
from .. import utils
Expand Down Expand Up @@ -224,7 +224,7 @@ def get_segments(self, quality: Quality) -> Iterator[str]:
yield dns + line

def download(self,
path: os.PathLike,
path: Union[str, os.PathLike],
quality: Quality | str = 'best',
*,
downloader: Callable = download.default,
Expand Down Expand Up @@ -257,7 +257,6 @@ def download(self,
callback=display,
path=path
)
print(f"Using path: {path}")
if convert:
FFMPEG_COMMAND = consts.FFMPEG_EXECUTABLE + ' -i "{input}" -bsf:a aac_adtstoasc -y -c copy {output} -quiet'
os.rename(path, path + ".tmp")
Expand Down

0 comments on commit 0c953ab

Please sign in to comment.