X-Git-Url: https://git.mdrn.pl/audio.git/blobdiff_plain/d7186e88fcc0cf5d5449a16d3907e01aaafc484e..d59a371f240c5fa1dbce1bd40a61e60c60a19d2a:/src/apiclient/__init__.py diff --git a/src/apiclient/__init__.py b/src/apiclient/__init__.py index f4da3a5..07b8123 100644 --- a/src/apiclient/__init__.py +++ b/src/apiclient/__init__.py @@ -33,7 +33,7 @@ def api_call(user, path, method='POST', data=None, files=None): raise ApiError("WL API call error %s, path: %s" % (r.status_code, path)) -def youtube_call(method, url, params=None, data=None, media_data=None): +def youtube_call(method, url, params=None, json=None, data=None, resumable_data=None): from .models import YouTubeToken yt = YouTubeToken.objects.first() - return yt.call(method, url, params=params, data=data, media_data=media_data) + return yt.call(method, url, params=params, json=json, data=data, resumable_data=resumable_data)