Skip to content

Commit

Permalink
small fix, audio sampler never called (#276)
Browse files Browse the repository at this point in the history
* fixes issue #257 by letting yt-dlp handle the download

* fixes issue #257 (support downloading from many sites) by letting yt-dlp handle the download

* small fix, audio_subsamplers was always empty

---------

Co-authored-by: iejMac <[email protected]>
Co-authored-by: Ubuntu <[email protected]>
  • Loading branch information
3 people authored Jan 19, 2024
1 parent 5a571ef commit e458ca8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion video2dataset/workers/download_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def __init__(

audio_subsamplers: List[Any] = []
if "AudioRateSubsampler" in self.config["subsampling"]:
video_subsamplers.append(AudioRateSubsampler(**self.config["subsampling"]["AudioRateSubsampler"]["args"]))
audio_subsamplers.append(AudioRateSubsampler(**self.config["subsampling"]["AudioRateSubsampler"]["args"]))

self.subsamplers = {"video": video_subsamplers, "audio": audio_subsamplers}

Expand Down

0 comments on commit e458ca8

Please sign in to comment.