Skip to content

Commit

Permalink
Update compressor.py
Browse files Browse the repository at this point in the history
  • Loading branch information
vasusen-code authored Jul 4, 2022
1 parent e9f09e2 commit dd94ea6
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions main/plugins/compressor.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,6 @@ async def compress(event, msg, ffmpeg_cmd=0, ps_name=None):
await edit.edit("Fast compress cannot be used for this media, try using HEVC!")
os.rmdir("encodemedia")
return
if ffmpeg_cmd == 3:
if codec == 'hevc':
await log.delete()
await LOG_END(event, log_end_text)
await edit.edit("The given video is already in H.265 codec.")
os.rmdir("encodemedia")
return
FT = time.time()
progress = f"progress-{FT}.txt"
cmd = f'ffmpeg -hide_banner -loglevel quiet -progress {progress} -i """{name}""" None """{out}""" -y'
Expand Down

0 comments on commit dd94ea6

Please sign in to comment.