File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change 1
1
# coding=utf-8
2
2
3
3
import os
4
+ import sys
4
5
import hashlib
5
6
import requests
6
7
import logging
17
18
from app .get_args import args
18
19
from sonarr .info import get_sonarr_info
19
20
from radarr .info import get_radarr_info
20
- from app .check_update import deprecated_python_version
21
+
22
+
23
+ def upcoming_deprecated_python_version ():
24
+ # return True if Python version is deprecated
25
+ return sys .version_info .major == 2 or (sys .version_info .major == 3 and sys .version_info .minor < 9 )
21
26
22
27
23
28
# Announcements as receive by browser must be in the form of a list of dicts converted to JSON
@@ -108,13 +113,14 @@ def get_local_announcements():
108
113
'timestamp' : 1679606309 ,
109
114
})
110
115
111
- # deprecated Python versions
112
- if deprecated_python_version ():
116
+ # upcoming deprecated Python versions
117
+ if upcoming_deprecated_python_version ():
113
118
announcements .append ({
114
- 'text' : 'Starting with Bazarr 1.4 , support for Python 3.7 will get dropped. Upgrade your current version of'
119
+ 'text' : 'Starting with Bazarr 1.6 , support for Python 3.8 will get dropped. Upgrade your current version of'
115
120
' Python ASAP to get further updates.' ,
121
+ 'link' : 'https://wiki.bazarr.media/Troubleshooting/Windows_installer_reinstall/' ,
116
122
'dismissible' : False ,
117
- 'timestamp' : 1691162383 ,
123
+ 'timestamp' : 1744469706 ,
118
124
})
119
125
120
126
for announcement in announcements :
You can’t perform that action at this time.
0 commit comments