Compare commits

..

No commits in common. '8ed2e28644a084f85a12daa6e629e78537fda05c' and 'dd0d87e20f7a4c161aebd1caa558fa066af90e8e' have entirely different histories.

  1. 10
      src/utils.py

@ -1,5 +1,4 @@
import asyncio
import subprocess
import sys
import time
from datetime import datetime, timedelta
@ -207,12 +206,3 @@ def playlist_write_song_index(playlist: PlaylistInfo):
def convent_mac_timestamp_to_datetime(timestamp: int):
d = datetime.strptime("01-01-1904", "%m-%d-%Y")
return d + timedelta(seconds=timestamp)
def check_dep():
for dep in ["ffmpeg", "gpac", "mp4box", "mp4edit", "mp4extract", "adb"]:
try:
subprocess.run(dep, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
except FileNotFoundError:
return False, dep
return True, None

Loading…
Cancel
Save