Skip to content

Commit 0c953ab

Browse files
committed
- type hint for path argument
- removed a useless print statement (I forgot)
1 parent 0dac461 commit 0c953ab

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "phub"
3-
version = "4.7.4"
3+
version = "4.7.5"
44
description = "An API for Pornhub"
55
authors = [
66
{name = 'Egsagon', email = "[email protected]"},

src/phub/objects/video.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import logging
77
from functools import cached_property
88
from datetime import datetime, timedelta
9-
from typing import TYPE_CHECKING, Iterator, Literal, Callable, Any
9+
from typing import TYPE_CHECKING, Iterator, Literal, Callable, Any, Union
1010

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

226226
def download(self,
227-
path: os.PathLike,
227+
path: Union[str, os.PathLike],
228228
quality: Quality | str = 'best',
229229
*,
230230
downloader: Callable = download.default,
@@ -257,7 +257,6 @@ def download(self,
257257
callback=display,
258258
path=path
259259
)
260-
print(f"Using path: {path}")
261260
if convert:
262261
FFMPEG_COMMAND = consts.FFMPEG_EXECUTABLE + ' -i "{input}" -bsf:a aac_adtstoasc -y -c copy {output} -quiet'
263262
os.rename(path, path + ".tmp")

0 commit comments

Comments
 (0)