File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 3131USD2CNY = os .getenv ("USD2CNY" , 6 ) # $5 --> ¥30
3232
3333ENABLE_VIP = os .getenv ("VIP" , False )
34- MAX_DURATION = int (os .getenv ("MAX_DURATION" , 300 ))
34+ MAX_DURATION = int (os .getenv ("MAX_DURATION" , 0 ))
3535AFD_LINK = os .getenv ("AFD_LINK" , "https://afdian.net/@BennyThink" )
3636COFFEE_LINK = os .getenv ("COFFEE_LINK" , "https://www.buymeacoffee.com/bennythink" )
3737COFFEE_TOKEN = os .getenv ("COFFEE_TOKEN" )
Original file line number Diff line number Diff 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" )
You can’t perform that action at this time.
0 commit comments