Posted: 15.05.2022 06:56
I have made one plugin by the "Make Plugin" by myself to check the new version.could we have at least an auto notification that there is an update available?
It only have the check function manually.
here is the modified code in the __init__.py of this plugin:
(just modify the def run() only)
Code: Select all
import os,urllib.request,re
def run(self):
response = urllib.request.urlopen('https://cudatext.github.io/history.txt') # open URL
html = response.read() # read
html = html.decode('utf-8') # decode
newcudatext1=re.search('\d+\.\d+\.\d+\s*\(',html).end()
html0=html[0:newcudatext1]
html1=html[newcudatext1:len(html)]
newcudatext2=re.search('\d+\.\d+\.\d+\s*\(',html1).start()
html2=html1[0:newcudatext2]
msg_box_ex('New Version',html0+html2, ['OK'], MB_ICONINFO, focused=0)