mirror of
https://github.com/Arrowar/StreamingCommunity.git
synced 2025-06-05 02:55:25 +00:00
Fix pypi
This commit is contained in:
parent
a79b952b6b
commit
2e9699ab01
@ -221,7 +221,10 @@ class M3U8_Segments:
|
||||
self.download_interrupted = True
|
||||
self.stop_event.set()
|
||||
|
||||
signal.signal(signal.SIGINT, interrupt_handler)
|
||||
if threading.current_thread() is threading.main_thread():
|
||||
signal.signal(signal.SIGINT, interrupt_handler)
|
||||
else:
|
||||
print("Signal handler must be set in the main thread")
|
||||
|
||||
def make_requests_stream(self, ts_url: str, index: int, progress_bar: tqdm, backoff_factor: float = 1.5) -> None:
|
||||
"""
|
||||
|
@ -4,7 +4,6 @@ import os
|
||||
import sys
|
||||
import time
|
||||
import glob
|
||||
import asyncio
|
||||
import logging
|
||||
import platform
|
||||
import argparse
|
||||
@ -110,7 +109,7 @@ def initialize():
|
||||
|
||||
# Get system info
|
||||
os_summary = OsSummary()
|
||||
asyncio.run(os_summary.get_system_summary())
|
||||
os_summary.get_system_summary()
|
||||
|
||||
# Set terminal size for win 7
|
||||
if platform.system() == "Windows" and "7" in platform.version():
|
||||
|
Loading…
x
Reference in New Issue
Block a user