Compare commits

...

3 Commits

Author SHA1 Message Date
pukkandan
e06bd8800f
Fix --skip-unavailable-fragments
Bug in d71fd41249
Closes #3437
2022-04-15 23:47:37 +05:30
pukkandan
abfecb7bc1
[utils] Fix WebSocketsWrapper
Bug in 3cea3edd1a
Closes #3422
2022-04-15 23:47:37 +05:30
pukkandan
3b9d9f4374
Do not change fragment chunk-size when --test
Closes #3434
2022-04-15 17:05:56 +05:30
2 changed files with 4 additions and 1 deletions

View File

@ -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'])

View File

@ -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()