Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please add stroke order when use baidu chinese #196

Open
yangyunzhao opened this issue Mar 1, 2020 · 0 comments
Open

Please add stroke order when use baidu chinese #196

yangyunzhao opened this issue Mar 1, 2020 · 0 comments

Comments

@yangyunzhao
Copy link

@yangyunzhao yangyunzhao commented Mar 1, 2020

Is your feature request related to a problem? Please describe.
No.

Describe the solution you'd like
I have modified the code. Can you integrate it?

        #笔顺
        element = soup.find('div', id='header-img')
        if element:
            tag = element.find('img', {'class': 'bishun'})
            if tag:
                result['fanyi'] = tag.get('data-gif')
    @export([u'英文翻译', u'Translation[En]'])
    def fld_fanyi(self):
        bishun_url = self._get_field('fanyi')
        if baidu_download_mp3 and bishun_url:
            filename = get_hex_name(self.unique.lower(), bishun_url, 'gif')
            if os.path.exists(filename) or self.download(bishun_url, filename):
                return self.get_anki_label(filename, 'img')
        return ''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant