[qcineoob] search pattern => lower letters
This commit is contained in:
parent
c1a2f17014
commit
fe0b3b23de
2 changed files with 6 additions and 6 deletions
|
|
@ -160,7 +160,7 @@ class MainWindow(QtMainWindow):
|
|||
self.searchSubtitle()
|
||||
|
||||
def searchMovie(self):
|
||||
pattern = unicode(self.ui.searchEdit.text())
|
||||
pattern = unicode(self.ui.searchEdit.text()).lower()
|
||||
if not pattern:
|
||||
return
|
||||
self.doAction(u'Search movie "%s"'%pattern,self.searchMovieAction,[pattern])
|
||||
|
|
@ -203,7 +203,7 @@ class MainWindow(QtMainWindow):
|
|||
QApplication.restoreOverrideCursor()
|
||||
|
||||
def searchPerson(self):
|
||||
pattern = unicode(self.ui.searchEdit.text())
|
||||
pattern = unicode(self.ui.searchEdit.text()).lower()
|
||||
if not pattern:
|
||||
return
|
||||
self.doAction(u'Search person "%s"'%pattern,self.searchPersonAction,[pattern])
|
||||
|
|
@ -246,7 +246,7 @@ class MainWindow(QtMainWindow):
|
|||
QApplication.restoreOverrideCursor()
|
||||
|
||||
def searchTorrent(self):
|
||||
pattern = unicode(self.ui.searchEdit.text())
|
||||
pattern = unicode(self.ui.searchEdit.text()).lower()
|
||||
if not pattern:
|
||||
return
|
||||
self.doAction(u'Search torrent "%s"'%pattern,self.searchTorrentAction,[pattern])
|
||||
|
|
@ -288,11 +288,11 @@ class MainWindow(QtMainWindow):
|
|||
self.current_info_widget = wtorrent
|
||||
|
||||
def searchSubtitle(self):
|
||||
pattern = unicode(self.ui.searchEdit.text())
|
||||
pattern = unicode(self.ui.searchEdit.text()).lower()
|
||||
lang = unicode(self.ui.langCombo.currentText())
|
||||
if not pattern:
|
||||
return
|
||||
self.doAction(u'Search subtitle "%s"'%pattern,self.searchSubtitleAction,[lang,pattern])
|
||||
self.doAction(u'Search subtitle "%s" (lang:%s)'%(pattern,lang),self.searchSubtitleAction,[lang,pattern])
|
||||
|
||||
def searchSubtitleAction(self, lang, pattern):
|
||||
self.ui.stackedWidget.setCurrentWidget(self.ui.list_page)
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ class Movie(QFrame):
|
|||
self.ui.imageLabel.setPixmap(QPixmap.fromImage(img))
|
||||
|
||||
def searchSubtitle(self):
|
||||
tosearch = self.movie.original_title
|
||||
tosearch = unicode(self.movie.original_title).lower()
|
||||
lang = unicode(self.ui.langCombo.currentText())
|
||||
desc = 'Search subtitles for "%s" (lang:%s)'%(tosearch,lang)
|
||||
self.parent.doAction(desc, self.parent.searchSubtitleAction,[lang,tosearch])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue