mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-14 21:23:05 +00:00
Compare commits
3 Commits
affc4fefea
...
e06bd8800f
Author | SHA1 | Date | |
---|---|---|---|
|
e06bd8800f | ||
|
abfecb7bc1 | ||
|
3b9d9f4374 |
@ -134,6 +134,8 @@ class FragmentFD(FileDownloader):
|
||||
return True
|
||||
|
||||
def _read_fragment(self, ctx):
|
||||
if not ctx.get('fragment_filename_sanitized'):
|
||||
return None
|
||||
try:
|
||||
down, frag_sanitized = self.sanitize_open(ctx['fragment_filename_sanitized'], 'rb')
|
||||
except FileNotFoundError:
|
||||
@ -177,7 +179,7 @@ class FragmentFD(FileDownloader):
|
||||
'ratelimit': self.params.get('ratelimit'),
|
||||
'retries': self.params.get('retries', 0),
|
||||
'nopart': self.params.get('nopart', False),
|
||||
'test': self.params.get('test', False),
|
||||
'test': False,
|
||||
}
|
||||
)
|
||||
tmpfilename = self.temp_name(ctx['filename'])
|
||||
|
@ -5258,6 +5258,7 @@ class Config:
|
||||
|
||||
class WebSocketsWrapper():
|
||||
"""Wraps websockets module to use in non-async scopes"""
|
||||
pool = None
|
||||
|
||||
def __init__(self, url, headers=None, connect=True):
|
||||
self.loop = asyncio.events.new_event_loop()
|
||||
|
Loading…
Reference in New Issue
Block a user