mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
strip media when searching for duplicates
This commit is contained in:
parent
120c1d4136
commit
c3d7a63f7e
1 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
from aqt.qt import *
|
from aqt.qt import *
|
||||||
import re, os, urllib2, ctypes
|
import re, os, urllib2, ctypes
|
||||||
from anki.utils import stripHTML, isWin, isMac, namedtmp, json
|
from anki.utils import stripHTML, isWin, isMac, namedtmp, json, stripHTMLMedia
|
||||||
from anki.sound import play
|
from anki.sound import play
|
||||||
from anki.hooks import runHook, runFilter
|
from anki.hooks import runHook, runFilter
|
||||||
from aqt.sound import getAudio
|
from aqt.sound import getAudio
|
||||||
|
@ -605,7 +605,7 @@ class Editor(object):
|
||||||
self.web.eval("setBackgrounds(%s);" % json.dumps(cols))
|
self.web.eval("setBackgrounds(%s);" % json.dumps(cols))
|
||||||
|
|
||||||
def showDupes(self):
|
def showDupes(self):
|
||||||
contents = self.note.fields[0]
|
contents = stripHTMLMedia(self.note.fields[0])
|
||||||
browser = aqt.dialogs.open("Browser", self.mw)
|
browser = aqt.dialogs.open("Browser", self.mw)
|
||||||
browser.form.searchEdit.lineEdit().setText(
|
browser.form.searchEdit.lineEdit().setText(
|
||||||
"'note:%s' '%s:%s'" % (
|
"'note:%s' '%s:%s'" % (
|
||||||
|
|
Loading…
Reference in a new issue