File tree 14 files changed +25
-16
lines changed
14 files changed +25
-16
lines changed Original file line number Diff line number Diff line change @@ -1074,7 +1074,7 @@ def info_dialog(self):
1074
1074
if system_os () == 'Android' :
1075
1075
text += ' - ' + localize (30821 ) + '\n '
1076
1076
elif self ._has_vendor_widevine ():
1077
- text += ' - ' + localize (30822 ) + '\n '
1077
+ text += ' - ' + localize (30822 , version = self . _get_lib_version ( self . _widevine_path ()) ) + '\n '
1078
1078
else :
1079
1079
from datetime import datetime
1080
1080
wv_updated = datetime .fromtimestamp (float (get_setting ('last_update' ))).strftime ("%Y-%m-%d %H:%M" ) if get_setting ('last_update' ) else 'Never'
Original file line number Diff line number Diff line change @@ -264,7 +264,7 @@ msgid "Widevine version: [B]Built into Android[/B]"
264
264
msgstr ""
265
265
266
266
msgctxt "#30822"
267
- msgid "Widevine version: [B]Supplied by vendor[/B]"
267
+ msgid "Widevine version: [B]{version} [COLOR gray](supplied by vendor)[/COLOR] [/B]"
268
268
msgstr ""
269
269
270
270
msgctxt "#30823"
Original file line number Diff line number Diff line change @@ -264,7 +264,7 @@ msgid "Widevine version: [B]Built into Android[/B]"
264
264
msgstr ""
265
265
266
266
msgctxt "#30822"
267
- msgid "Widevine version: [B]Supplied by vendor[/B]"
267
+ msgid "Widevine version: [B]{version} [COLOR gray](supplied by vendor)[/COLOR] [/B]"
268
268
msgstr ""
269
269
270
270
msgctxt "#30823"
Original file line number Diff line number Diff line change @@ -272,7 +272,7 @@ msgid "Widevine version: [B]Built into Android[/B]"
272
272
msgstr ""
273
273
274
274
msgctxt "#30822"
275
- msgid "Widevine version: [B]Supplied by vendor[/B]"
275
+ msgid "Widevine version: [B]{version} [COLOR gray](supplied by vendor)[/COLOR] [/B]"
276
276
msgstr ""
277
277
278
278
msgctxt "#30823"
Original file line number Diff line number Diff line change @@ -264,7 +264,7 @@ msgid "Widevine version: [B]Built into Android[/B]"
264
264
msgstr ""
265
265
266
266
msgctxt "#30822"
267
- msgid "Widevine version: [B]Supplied by vendor[/B]"
267
+ msgid "Widevine version: [B]{version} [COLOR gray](supplied by vendor)[/COLOR] [/B]"
268
268
msgstr ""
269
269
270
270
msgctxt "#30823"
Original file line number Diff line number Diff line change @@ -272,7 +272,7 @@ msgid "Widevine version: [B]Built into Android[/B]"
272
272
msgstr ""
273
273
274
274
msgctxt "#30822"
275
- msgid "Widevine version: [B]Supplied by vendor[/B]"
275
+ msgid "Widevine version: [B]{version} [COLOR gray](supplied by vendor)[/COLOR] [/B]"
276
276
msgstr ""
277
277
278
278
msgctxt "#30823"
Original file line number Diff line number Diff line change @@ -272,7 +272,7 @@ msgid "Widevine version: [B]Built into Android[/B]"
272
272
msgstr ""
273
273
274
274
msgctxt "#30822"
275
- msgid "Widevine version: [B]Supplied by vendor[/B]"
275
+ msgid "Widevine version: [B]{version} [COLOR gray](supplied by vendor)[/COLOR] [/B]"
276
276
msgstr ""
277
277
278
278
msgctxt "#30823"
Original file line number Diff line number Diff line change @@ -264,7 +264,7 @@ msgid "Widevine version: [B]Built into Android[/B]"
264
264
msgstr ""
265
265
266
266
msgctxt "#30822"
267
- msgid "Widevine version: [B]Supplied by vendor[/B]"
267
+ msgid "Widevine version: [B]{version} [COLOR gray](supplied by vendor)[/COLOR] [/B]"
268
268
msgstr ""
269
269
270
270
msgctxt "#30823"
Original file line number Diff line number Diff line change @@ -272,7 +272,7 @@ msgid "Widevine version: [B]Built into Android[/B]"
272
272
msgstr ""
273
273
274
274
msgctxt "#30822"
275
- msgid "Widevine version: [B]Supplied by vendor[/B]"
275
+ msgid "Widevine version: [B]{version} [COLOR gray](supplied by vendor)[/COLOR] [/B]"
276
276
msgstr ""
277
277
278
278
msgctxt "#30823"
Original file line number Diff line number Diff line change @@ -272,7 +272,7 @@ msgid "Widevine version: [B]Built into Android[/B]"
272
272
msgstr ""
273
273
274
274
msgctxt "#30822"
275
- msgid "Widevine version: [B]Supplied by vendor[/B]"
275
+ msgid "Widevine version: [B]{version} [COLOR gray](supplied by vendor)[/COLOR] [/B]"
276
276
msgstr ""
277
277
278
278
msgctxt "#30823"
Original file line number Diff line number Diff line change @@ -264,8 +264,8 @@ msgid "Widevine version: [B]Built into Android[/B]"
264
264
msgstr "Widevine versie: [B]Ingebouwd in Android[/B]"
265
265
266
266
msgctxt "#30822"
267
- msgid "Widevine version: [B]Supplied by vendor[/B]"
268
- msgstr "Widevine versie: [B]Aangeleverd door vendor[/B]"
267
+ msgid "Widevine version: [B]{version} [COLOR gray](supplied by vendor)[/COLOR] [/B]"
268
+ msgstr "Widevine versie: [B]{version} [COLOR gray](aangeleverd door vendor)[/COLOR] [/B]"
269
269
270
270
msgctxt "#30823"
271
271
msgid "Widevine version: [B]{version}[/B] [COLOR gray](last updated on [B]{date}[/B])[/COLOR]"
Original file line number Diff line number Diff line change @@ -264,7 +264,7 @@ msgid "Widevine version: [B]Built into Android[/B]"
264
264
msgstr ""
265
265
266
266
msgctxt "#30822"
267
- msgid "Widevine version: [B]Supplied by vendor[/B]"
267
+ msgid "Widevine version: [B]{version} [COLOR gray](supplied by vendor)[/COLOR] [/B]"
268
268
msgstr ""
269
269
270
270
msgctxt "#30823"
Original file line number Diff line number Diff line change @@ -264,7 +264,7 @@ msgid "Widevine version: [B]Built into Android[/B]"
264
264
msgstr ""
265
265
266
266
msgctxt "#30822"
267
- msgid "Widevine version: [B]Supplied by vendor[/B]"
267
+ msgid "Widevine version: [B]{version} [COLOR gray](supplied by vendor)[/COLOR] [/B]"
268
268
msgstr ""
269
269
270
270
msgctxt "#30823"
Original file line number Diff line number Diff line change 9
9
import unittest
10
10
import platform
11
11
import inputstreamhelper
12
+ import default
12
13
13
14
xbmc = __import__ ('xbmc' )
14
15
xbmcaddon = __import__ ('xbmcaddon' )
19
20
class LinuxVendorTests (unittest .TestCase ):
20
21
21
22
def setUp (self ):
22
- open ('test/cdm/libwidevinecdm_vendor.so' , 'w' ).write ('Linux' )
23
+ open ('test/cdm/libwidevinecdm_vendor.so' , 'w' ).write ('Linux\n 1.2.3.4 ' )
23
24
24
25
def tearDown (self ):
25
26
os .unlink ('test/cdm/libwidevinecdm_vendor.so' )
@@ -39,11 +40,15 @@ def test_check_inputstream_hls_again(self):
39
40
is_installed = is_helper .check_inputstream ()
40
41
self .assertTrue (is_installed , True )
41
42
43
+ @staticmethod
44
+ def test_about ():
45
+ default .run (['default.py' , 'info' ])
46
+
42
47
43
48
class WindowsVendorTests (unittest .TestCase ):
44
49
45
50
def setUp (self ):
46
- open ('test/cdm/widevinecdm_vendor.dll' , 'w' ).write ('Windows' )
51
+ open ('test/cdm/widevinecdm_vendor.dll' , 'w' ).write ('Windows\n 1.2.3.4 ' )
47
52
48
53
def tearDown (self ):
49
54
os .unlink ('test/cdm/widevinecdm_vendor.dll' )
@@ -64,6 +69,10 @@ def test_check_inputstream_mpd_again(self):
64
69
is_installed = is_helper .check_inputstream ()
65
70
self .assertTrue (is_installed , True )
66
71
72
+ @staticmethod
73
+ def test_about ():
74
+ default .run (['default.py' , 'info' ])
75
+
67
76
68
77
if __name__ == '__main__' :
69
78
unittest .main ()
You can’t perform that action at this time.
0 commit comments