|
|
@ -49,6 +49,20 @@ def remove_download(): |
|
|
|
os.remove('elvui_update.zip') |
|
|
|
print("ElvUI update file removed.") |
|
|
|
|
|
|
|
def show_changelog(): |
|
|
|
url = "https://www.tukui.org/download.php?ui=elvui" |
|
|
|
|
|
|
|
# build out the content request |
|
|
|
content = urllib.request.urlopen(url).read() |
|
|
|
|
|
|
|
# get your soup on |
|
|
|
soup = BeautifulSoup(content, features="html.parser") |
|
|
|
|
|
|
|
# capture version number and return as def response |
|
|
|
response = soup.find_all('div', id='changelog')[0].get_text() |
|
|
|
|
|
|
|
print(response) |
|
|
|
|
|
|
|
# Define the usage of the app |
|
|
|
def usage(): |
|
|
|
"""Prints usage information""" |
|
|
@ -93,6 +107,7 @@ def main(argv): |
|
|
|
get_update(update_version) |
|
|
|
install_update(wowPath) |
|
|
|
remove_download() |
|
|
|
show_changelog() |
|
|
|
|
|
|
|
print(f"ElvUI has been updated to {update_version}") |
|
|
|
|
|
|
|