From 5b89465789e074e118bd969e66ead53fb2d98ba0 Mon Sep 17 00:00:00 2001 From: Armin Ildermi Date: Thu, 11 Jul 2024 23:17:05 +0330 Subject: [PATCH] Allow multiple downloads --- ffmpeg_streaming/_input.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/ffmpeg_streaming/_input.py b/ffmpeg_streaming/_input.py index 034784f..321bb77 100644 --- a/ffmpeg_streaming/_input.py +++ b/ffmpeg_streaming/_input.py @@ -14,8 +14,6 @@ from ffmpeg_streaming._utiles import get_os, cnv_options_to_args from ffmpeg_streaming._clouds import Clouds -cloud = None - class Capture(object): def __init__(self, video, options): @@ -61,12 +59,8 @@ def get_from_cloud(_cloud: Clouds, options: dict): """ @TODO: add documentation """ - global cloud - if cloud is None: - save_to = options.pop('save_to', None) - cloud = {'i': _cloud.download(save_to, **options), 'is_tmp': save_to is None} - - return cloud + save_to = options.pop('save_to', None) + return {'i': _cloud.download(save_to, **options), 'is_tmp': save_to is None} class InputOption(object):