Skip to content

Commit

Permalink
georgy7#49 auto preview video play
Browse files Browse the repository at this point in the history
  • Loading branch information
NeiroSlav committed Oct 5, 2024
1 parent 69b2231 commit d167f01
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 20 deletions.
12 changes: 2 additions & 10 deletions src/catframes/catmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -2337,16 +2337,8 @@ def _create_task_instance(self):

@staticmethod
def _watch_preview(link: str):
pass
# while True:
# try:
# subprocess.call(['open', link])
# break
# except Exception as e:
# print(link)
# print(e)
# time.sleep(1)
# os.startfile(link)
time.sleep(3)
os.startfile(link)

@staticmethod
def _create_temp_dir():
Expand Down
12 changes: 2 additions & 10 deletions src/catframes/catmanager_sample/windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,16 +314,8 @@ def _create_task_instance(self):

@staticmethod
def _watch_preview(link: str):
pass
# while True:
# try:
# subprocess.call(['open', link])
# break
# except Exception as e:
# print(link)
# print(e)
# time.sleep(1)
# os.startfile(link)
time.sleep(3)
os.startfile(link)

@staticmethod
def _create_temp_dir():
Expand Down

0 comments on commit d167f01

Please sign in to comment.