mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Revert "Merge pull request #749 from ANH25/editor-media-autoplay"
This reverts commit9aa3d7867e
, reversing changes made toc3a1acb524
. https://github.com/ankitects/anki/pull/749#issuecomment-686385112
This commit is contained in:
parent
a43135f3d5
commit
dc1f489d3e
1 changed files with 1 additions and 1 deletions
|
@ -743,7 +743,6 @@ 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
|
||||||
|
@ -761,6 +760,7 @@ 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