Skip to content

Commit ff52593

Browse files
committed
limit ffmpeg
1 parent 49095af commit ff52593

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ytdlbot/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
USD2CNY = os.getenv("USD2CNY", 6) # $5 --> ¥30
3232

3333
ENABLE_VIP = os.getenv("VIP", False)
34-
MAX_DURATION = int(os.getenv("MAX_DURATION", 300))
34+
MAX_DURATION = int(os.getenv("MAX_DURATION", 0))
3535
AFD_LINK = os.getenv("AFD_LINK", "https://afdian.net/@BennyThink")
3636
COFFEE_LINK = os.getenv("COFFEE_LINK", "https://www.buymeacoffee.com/bennythink")
3737
COFFEE_TOKEN = os.getenv("COFFEE_TOKEN")

ytdlbot/downloader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def convert_to_mp4(resp: dict, bot_msg):
138138
logging.warning("Conversion abort for non VIP %s", bot_msg.chat.id)
139139
bot_msg._client.send_message(
140140
bot_msg.chat.id,
141-
"You're not VIP, so you can't convert longer video to streaming formats.")
141+
f"You're not VIP, so you can't convert video {MAX_DURATION}s to streaming formats.")
142142
break
143143
edit_text(bot_msg, f"{current_time()}: Converting {path.name} to mp4. Please wait.")
144144
new_file_path = path.with_suffix(".mp4")

0 commit comments

Comments
 (0)