From 1a58b9c2b87027285ff9476799781bd9509dabfc Mon Sep 17 00:00:00 2001 From: mtakemoto Date: Thu, 14 Mar 2024 23:34:10 +0900 Subject: [PATCH] Fix relative import of ffmpeg_dl / Add missing package requirements (#154) * add relative import path * add rich for tqdm.rich --- src/nndownload.py | 4 ++-- src/requirements.txt | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/nndownload.py b/src/nndownload.py index 4e0baaf..0a949ef 100644 --- a/src/nndownload.py +++ b/src/nndownload.py @@ -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" @@ -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) diff --git a/src/requirements.txt b/src/requirements.txt index aa5d366..36cbd20 100644 --- a/src/requirements.txt +++ b/src/requirements.txt @@ -5,6 +5,7 @@ ffmpeg-python gevent mutagen requests +rich setuptools tqdm urllib3 \ No newline at end of file