Skip to content

[script.speedtester] 1.1.3+matrix.1 #2714

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion script.speedtester/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ In Kodi, simply search the add-ons for `Speed` and install the Speedtester add-o


## Releases
### v1.1.1 (2020-10-10)
### v1.1.3 (2022-01-26)
- Add support for Python 3.9 and later (@dobo90)
- Add Dutch translations (@dagwieers)

### v1.1.2 (2020-10-10)
- Fix issues for Kodi repo review (@dagwieers)

### v1.1.1 (2020-10-10)
Expand Down
8 changes: 6 additions & 2 deletions script.speedtester/addon.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="script.speedtester" name="Speed Tester" version="1.1.2+matrix.1" provider-name="Dr0idGuy, dagwieers">
<addon id="script.speedtester" name="Speed Tester" version="1.1.3+matrix.1" provider-name="Dr0idGuy, dagwieers">
<requires>
<import addon="xbmc.python" version="3.0.0"/>
</requires>
Expand All @@ -19,7 +19,11 @@ Use this if you are experiencing streaming issues and you suspect your network t
<website>https://kodi.wiki/view/Add-on:Speed_Tester</website>
<source>https://github.com/add-ons/script.speedtester</source>
<news>
v1.1.1 (2020-10-10)
v1.1.3 (2022-01-26)
- Add support for Python 3.9 and later (@dobo90)
- Add Dutch translations (@dagwieers)

v1.1.2 (2020-10-10)
- Fix issues for Kodi repo review

v1.1.1 (2020-10-10)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ msgctxt "#30951"
msgid "[B]Close[/B]"
msgstr ""

msgctxt "#30952"
msgid "Please wait…"
msgstr ""

msgctxt "#30960"
msgid "[B]Running Speed Test add-on[/B]"
msgstr ""
Expand Down Expand Up @@ -68,15 +72,15 @@ msgid "Ping: {latency} ms"
msgstr ""

msgctxt "#30971"
msgid "Testing download speed..."
msgid "Testing download speed"
msgstr ""

msgctxt "#30972"
msgid "Download speed: {speed:0.2f} Mbps"
msgstr ""

msgctxt "#30973"
msgid "Testing upload speed..."
msgid "Testing upload speed"
msgstr ""

msgctxt "#30974"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
# Kodi Media Center language file
# Addon Name: Speed Tester
# Addon id: script.speedtester
# Addon Provider: dagwieers
msgid ""
msgstr ""
"Project-Id-Version: XBMC Addons\n"
"POT-Creation-Date: 2020-09-27 07:22+0001\n"
"PO-Revision-Date: 2020-09-27 07:22+0001\n"
"Last-Translator: Dag Wieers\n"
"Language-Team: Dutch (http://www.transifex.com/projects/p/xbmc-addons/language/en/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: en\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

msgctxt "#30950"
msgid "[B]Run Speedtest[/B]"
msgstr "[B]Start Speedtest[/B]"

msgctxt "#30951"
msgid "[B]Close[/B]"
msgstr "[B]Sluit[/B]"

msgctxt "#30952"
msgid "Please wait…"
msgstr "Even geduld…"

msgctxt "#30960"
msgid "[B]Running Speed Test add-on[/B]"
msgstr "[B]Speed Test add-on gestart[/B]"

msgctxt "#30961"
msgid "Retrieving speedtest.net configuration"
msgstr "Ophalen van speedtest.net configuratie"

msgctxt "#30962"
msgid "Retrieving speedtest.net server list"
msgstr "Ophalen van speedtest.net server lijst"

msgctxt "#30963"
msgid "Testing from {isp} ({ip})"
msgstr "Testen vanaf {isp} ({ip})"

msgctxt "#30964"
msgid "Selecting best server based on latency"
msgstr "Selecteren van de beste server gebaseerd op latentie"

msgctxt "#30965"
msgid "Hosted by: {sponsor}"
msgstr "Gehost door: {sponsor}"

msgctxt "#30966"
msgid "Host server: {host}"
msgstr "Host server: {host}"

msgctxt "#30967"
msgid "City, State: {name}"
msgstr "Stad: {name}"

msgctxt "#30968"
msgid "Country: {country}"
msgstr "Land: {country}"

msgctxt "#30969"
msgid "Distance: {d:0.2f} km"
msgstr "Afstand: {d:0.2f} km"

msgctxt "#30970"
msgid "Ping: {latency} ms"
msgstr "Ping: {latency} ms"

msgctxt "#30971"
msgid "Testing download speed…"
msgstr "Testen van download snelheid…"

msgctxt "#30972"
msgid "Download speed: {speed:0.2f} Mbps"
msgstr "Download snelheid: {speed:0.2f} Mbps"

msgctxt "#30973"
msgid "Testing upload speed…"
msgstr "Testen van upload snelheid…"

msgctxt "#30974"
msgid "Upload speed: {speed:0.2f} Mbps"
msgstr "Upload snelheid: {speed:0.2f} Mbps"

msgctxt "#30980"
msgid "[B]Recommended download speed for video streaming:[/B]"
msgstr "[B]Gewenste download snelheid voor video streaming:[/B]"

msgctxt "#30981"
msgid "- 3 to 5 Mbps for viewing SD-quality 480p video"
msgstr "- 3 tot 5 Mbps voor SD-kwaliteit 408p video's"

msgctxt "#30982"
msgid "- 5 to 10 Mbps for viewing HD-quality 720p video"
msgstr "- 5 tot 10 Mbps voor HD-kwaliteit 720p video's"

msgctxt "#30983"
msgid "- 10+ Mbps for the best 1080p or Live TV experience"
msgstr "- 10+ Mbps voor de beste 1080p of Live tv ervaring"

msgctxt "#30984"
msgid "- 25 to 50+ Mbps for 4K streaming"
msgstr "- 25 tot 50+ Mbps voor 4K streaming"

msgctxt "#30985"
msgid "[I]Reported speeds may be due to the limitations of the device.[/I]"
msgstr "[I]De gerapporteerde snelheden hangen of van de limitaties van het toestel.[/I]"
14 changes: 7 additions & 7 deletions script.speedtester/resources/lib/addon.py
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ def display_progress_bar(self, function='true'):
self.img_progress.setVisible(True)
img_progressx = int((self.screenx / 3) - (200 / 2))
img_progressy = int((self.screeny / 3) - (50 / 2) + 270)
self.please_wait_textbox = ControlLabel(img_progressx, img_progressy, 200, 50, label='Please wait...',
self.please_wait_textbox = ControlLabel(img_progressx, img_progressy, 200, 50, label=localize(30952),
textColor='0xFFFFFFFF', alignment=2 | 4)
self.addControl(self.please_wait_textbox)
elif function == 'visible':
Expand Down Expand Up @@ -735,7 +735,7 @@ def consumer(queue, total_files):
speed_dl = 0
while len(finished) < total_files:
thread = queue.get(True)
while thread.isAlive():
while thread.is_alive():
thread.join(timeout=0.1)
finished.append(sum(thread.result))
speed_f = ((sum(finished) / (timeit.default_timer() - start)) / 1000 / 1000) * 8
Expand All @@ -749,9 +749,9 @@ def consumer(queue, total_files):
start = timeit.default_timer()
prod_thread.start()
cons_thread.start()
while prod_thread.isAlive():
while prod_thread.is_alive():
prod_thread.join(timeout=0.1)
while cons_thread.isAlive():
while cons_thread.is_alive():
cons_thread.join(timeout=0.1)
return sum(finished) / (timeit.default_timer() - start)

Expand All @@ -772,7 +772,7 @@ def consumer(queue, total_sizes):
speed_dl = 0
while len(finished) < total_sizes:
thread = queue.get(True)
while thread.isAlive():
while thread.is_alive():
thread.join(timeout=0.1)
finished.append(thread.result)
speed_f = ((sum(finished) / (timeit.default_timer() - start)) / 1000 / 1000) * 8
Expand All @@ -786,9 +786,9 @@ def consumer(queue, total_sizes):
start = timeit.default_timer()
prod_thread.start()
cons_thread.start()
while prod_thread.isAlive():
while prod_thread.is_alive():
prod_thread.join(timeout=0.1)
while cons_thread.isAlive():
while cons_thread.is_alive():
cons_thread.join(timeout=0.1)
return sum(finished) / (timeit.default_timer() - start)

Expand Down