fix audio download

This commit is contained in:
Alex Yatskov 2018-06-22 18:51:22 -07:00
parent f1a27b47cd
commit 7d39517280

View File

@ -648,7 +648,7 @@ class AnkiConnect:
audio = note.get('audio') audio = note.get('audio')
if audio is not None and len(audio['fields']) > 0: if audio is not None and len(audio['fields']) > 0:
try: try:
data = download(audio['url']) data = self.download(audio['url'])
if audio['skipHash'] is None: if audio['skipHash'] is None:
skip = False skip = False
else: else: