Skip to content

Commit

Permalink
Release 2.0.1
Browse files Browse the repository at this point in the history
修复在网络代理环境中不稳定的问题。
  • Loading branch information
huaiyinfeilong committed May 4, 2023
1 parent 4cdd368 commit 3241c1b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions addon/doc/zh_CN/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@

## 升级日志

### Version 2.0.1

* 修复在网络代理环境中不稳定的问题。

### Version 2.0

* 新增百度在线OCR识别引擎,支持通用版识别和高精度版识别,可以使用共享密钥和自己的私有密钥。如使用自己的私有密钥,需在设置中进行配置。
Expand Down
2 changes: 1 addition & 1 deletion addon/globalPlugins/xyOCR/baiduOcr.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def _http_request(self, url=None, headers=None, payload=None, method=None):
if not url or not method:
return
# 不使用代理
proxy = urllib.request.ProxyHandler()
proxy = urllib.request.ProxyHandler({})
opener = urllib.request.build_opener(proxy)
# 构建Request请求对象
request = urllib.request.Request(url=url, headers=headers, data=payload, method=method)
Expand Down
2 changes: 1 addition & 1 deletion buildVars.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def _(arg):
# Translators: Long description to be shown for this add-on on add-on information from add-ons manager
"addon_description": _("Aggregating various offline and online OCR services"),
# version
"addon_version": "2.0",
"addon_version": "2.0.1",
# Author(s)
"addon_author": "huaiyinfeilong <huaiyinfeilong@163.com>",
# URL for the add-on documentation support
Expand Down
4 changes: 4 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ Any comments and suggestions are welcome to communicate:

## Upgrade log

### Version 2.0.1

* Fix instability in network proxy environment.

### Version 2.0

* Added Baidu online OCR recognition engine, supports general recognition and accurate version recognition, and can use shared key and own private key. If you use your own private key, you need to configure it in the settings.
Expand Down

0 comments on commit 3241c1b

Please sign in to comment.