Skip to content

Allow multiple downloads #133

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions ffmpeg_streaming/_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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):
Expand Down