コード例 #1
0
 def search_internet(self, data):
     if self.last_data:
         if data.author is None:
             url = url_for_book_search(data.where, title=self.last_data['title'], author=self.last_data['authors'][0])
         else:
             url = url_for_author_search(data.where, author=data.author)
         safe_open_url(url)
コード例 #2
0
ファイル: book_details.py プロジェクト: bwhitenb5e/calibre
 def search_internet(self, data):
     if self.last_data:
         if data.author is None:
             url = url_for_book_search(data.where, title=self.last_data['title'], author=self.last_data['authors'][0])
         else:
             url = url_for_author_search(data.where, author=data.author)
         open_url(url)