Index: globals/get_browser_versions.py |
=================================================================== |
--- a/globals/get_browser_versions.py |
+++ b/globals/get_browser_versions.py |
@@ -128,8 +128,14 @@ |
BROWSERS['opera'] = get_opera_versions |
-def get_yandex_version(suffix): |
- response = urllib.urlopen('https://api.browser.yandex.ru/update-info/browser/yandex%s/win-yandex.xml' % suffix) |
+def get_yandex_version(beta=False): |
+ url = 'https://api.browser.yandex.ru/update-info/browser/yandex%s/win-yandex.xml%s' |
+ if beta: |
+ url %= ('-beta', '') |
+ else: |
+ url %= ('', '?manual=yes') |
+ |
+ response = urllib.urlopen(url) |
try: |
doc = minidom.parse(response) |
finally: |
@@ -141,8 +147,8 @@ |
def get_yandex_versions(): |
return { |
- 'current': get_yandex_version(''), |
- 'unreleased': [get_yandex_version('-beta')] |
+ 'current': get_yandex_version(), |
+ 'unreleased': [get_yandex_version(beta=True)] |
} |
BROWSERS['yandex'] = get_yandex_versions |