This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import time | |
| import threading | |
| import signal | |
| class Job(threading.Thread): | |
| def __init__(self): | |
| super().__init__() | |
| ''' | |
| The shutdown_flag is a threading.Event object that | |
| indicates whether the thread should be terminated. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import glob | |
| from collections import defaultdict | |
| def delete_m3u_files(): | |
| """ | |
| Deletes all .m3u files in the current directory, including the 'output' folder and any subfolders. | |
| """ | |
| m3u_files = glob.glob("**/*.m3u", recursive=True) # Find .m3u files in all subdirectories | |
| for m3u_file in m3u_files: |
OlderNewer