Skip to content

Commit

Permalink
Fix relative import of ffmpeg_dl / Add missing package requirements (#…
Browse files Browse the repository at this point in the history
…154)

* add relative import path

* add rich for tqdm.rich
  • Loading branch information
TaizoAyase committed Mar 14, 2024
1 parent 7ee3465 commit 1a58b9c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nndownload.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
from requests.utils import add_dict_to_cookiejar
from urllib3.util import Retry

from ffmpeg_dl import FfmpegDL, FfmpegDLException
from .ffmpeg_dl import FfmpegDL, FfmpegDLException

__version__ = "1.16.1"
__author__ = "Alex Aplin"
Expand Down Expand Up @@ -1541,7 +1541,7 @@ def perform_api_request(session: requests.Session, document: BeautifulSoup) -> d

# Perform request to Dwango Media Service (DMS)
# Began rollout starting 2023-11-01 for select videos and users (https://blog.nicovideo.jp/niconews/205042.html)
# Videos longer than 30 minutes in HD (>720p) quality appear to be served this way exclusively
# Videos longer than 30 minutes in HD (>720p) quality appear to be served this way exclusively
elif params["media"]["domand"]:
if _cmdl_opts.list_qualities:
list_qualities("video", params["media"]["domand"]["videos"], True)
Expand Down
1 change: 1 addition & 0 deletions src/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ ffmpeg-python
gevent
mutagen
requests
rich
setuptools
tqdm
urllib3

0 comments on commit 1a58b9c

Please sign in to comment.