mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
editor: only autoplay added media when recording
This commit is contained in:
parent
7bcec00ef4
commit
28d86ab8d1
1 changed files with 1 additions and 1 deletions
|
@ -741,6 +741,7 @@ to a cloze type first, via 'Notes>Change Note Type'"""
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
if file:
|
if file:
|
||||||
|
av_player.play_file(file)
|
||||||
self.addMedia(file)
|
self.addMedia(file)
|
||||||
|
|
||||||
# Media downloads
|
# Media downloads
|
||||||
|
@ -758,7 +759,6 @@ to a cloze type first, via 'Notes>Change Note Type'"""
|
||||||
name = urllib.parse.quote(fname.encode("utf8"))
|
name = urllib.parse.quote(fname.encode("utf8"))
|
||||||
return '<img src="%s">' % name
|
return '<img src="%s">' % name
|
||||||
else:
|
else:
|
||||||
av_player.play_file(fname)
|
|
||||||
return "[sound:%s]" % fname
|
return "[sound:%s]" % fname
|
||||||
|
|
||||||
def urlToFile(self, url: str) -> Optional[str]:
|
def urlToFile(self, url: str) -> Optional[str]:
|
||||||
|
|
Loading…
Reference in a new issue