Revert "Merge pull request #749 from ANH25/editor-media-autoplay"

This reverts commit 9aa3d7867e, reversing
changes made to c3a1acb524.

https://github.com/ankitects/anki/pull/749#issuecomment-686385112
This commit is contained in:
Damien Elmes 2020-09-04 08:34:26 +10:00
parent a43135f3d5
commit dc1f489d3e

View file

@ -743,7 +743,6 @@ to a cloze type first, via 'Notes>Change Note Type'"""
)
return
if file:
av_player.play_file(file)
self.addMedia(file)
# Media downloads
@ -761,6 +760,7 @@ to a cloze type first, via 'Notes>Change Note Type'"""
name = urllib.parse.quote(fname.encode("utf8"))
return '<img src="%s">' % name
else:
av_player.play_file(fname)
return "[sound:%s]" % fname
def urlToFile(self, url: str) -> Optional[str]: