Skip to content

Commit 1673fd8

Browse files
Sulaiman Al QUsaimiSulaiman Al QUsaimi
Sulaiman Al QUsaimi
authored and
Sulaiman Al QUsaimi
committed
ergent update
1 parent aaa1773 commit 1673fd8

File tree

7 files changed

+307
-23
lines changed

7 files changed

+307
-23
lines changed

source/application.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# a module to hold application constants to be not re written everytime
22

33
name = "accessible youtube downloader pro"
4-
version = "1.5.4"
4+
version = "1.5.5"
55
author = "Sulaiman Al Qusaimi"
66
describtion = "يهدف هذا البرنامج إلى تقديم أيسر السبل أمام المستخدم الكفيف للتصفح والتنزيل من خدمة استضافة الفيديوهات youtube"

source/assets/version_info.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ VSVersionInfo(
66
ffi=FixedFileInfo(
77
# filevers and prodvers should be always a tuple with four items: (1, 2, 3, 4)
88
# Set not needed items to zero 0.
9-
filevers=(1, 5, 4, 0),
10-
prodvers=(1, 5, 4, 0),
9+
filevers=(1, 5, 5, 0),
10+
prodvers=(1, 5, 5, 0),
1111
# Contains a bitmask that specifies the valid bits 'flags'r
1212
mask=0x3f,
1313
# Contains a bitmask that specifies the Boolean attributes of the file.
@@ -31,7 +31,7 @@ VSVersionInfo(
3131
u'040904B0',
3232
[StringStruct(u'CompanyName', u'Sulaiman Al Qusaimi'),
3333
StringStruct(u'FileDescription', u'an accessible youtube downloader and browser for blind users'),
34-
StringStruct(u'FileVersion', u'1.5.4'),
34+
StringStruct(u'FileVersion', u'1.5.5'),
3535
StringStruct(u'LegalCopyright', u'No Copyright'),
3636
StringStruct(u'OriginalFilename', u'accessible_youtube_downloader_pro.exe'),
3737
StringStruct(u'ProductName', u'Accessible_youtube_downloader_pro'),

source/doc_handler.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from settings_handler import config_get
22
import os
33
import application
4-
available_languages = os.listdir()
4+
available_languages = os.listdir("docs")
55

66
def documentation_get():
77
lang = config_get("lang")

source/docs/en/guide.txt

+288
Large diffs are not rendered by default.

source/download_handler/downloader.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def __init__(self, url, path, downloading_format, monitor, monitor1, convert=Fal
2020

2121
# progress bar updator
2222
def get_proper_count(self, number):
23-
length = len(str(number))
23+
length = len(str(int(number)))
2424
if length <= 3:
2525
return (number, _("بايت"))
2626
elif length >=4 and length <7:
@@ -41,12 +41,14 @@ def get_quality(self):
4141
def my_hook(self, data):
4242
if data['status'] == 'finished':
4343
return
44-
percent = (data["downloaded_bytes"] / data.get("total_bytes", data.get("total_bytes_estimate"))) * 100
44+
percent = (data["downloaded_bytes"] / data.get("total_bytes", data.get("total_bytes_estimate", "0"))) * 100
4545
#percent = percent.replace("%", "") # remove simbles from the percentage value
4646
#percent = percent.strip() # remove spaces
4747
#percent = float(percent) # convert the progress value to float, the reason why we did not converted directly to integer because it is impocible to convert string containing a floating point number to integer
4848
percent = int(percent) # converted to integer
49-
total = self.get_proper_count(data.get("total_bytes", data.get("total_bytes_estimate")))
49+
total = data.get("total_bytes", data.get("total_bytes_estimate", 0))
50+
print(f"total: {total}")
51+
total = self.get_proper_count(total)
5052
downloaded = self.get_proper_count(data["downloaded_bytes"])
5153
remaining = self.get_proper_count(data.get("total_bytes", data.get("total_bytes_estimate"))-data["downloaded_bytes"])
5254
speed = data['speed'] if data['speed'] else 0
Binary file not shown.

source/languages/en/lc_messages/accessible_youtube_downloader.po

+9-15
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ msgid ""
66
msgstr ""
77
"Project-Id-Version: accessible_youtube_downloader_pro_v1.0\n"
88
"POT-Creation-Date: 2022-06-17 18:40+0400\n"
9-
"PO-Revision-Date: 2023-02-18 10:28+0400\n"
10-
"Last-Translator: \n"
9+
"PO-Revision-Date: 2023-08-21 10:16+0400\n"
10+
"Last-Translator: sulaiman al qusaimi <suleiman.alqusaimi@gmail.com>\n"
1111
"Language-Team: Sulaiman Al Qusaimi\n"
1212
"Language: en\n"
1313
"MIME-Version: 1.0\n"
@@ -16,7 +16,7 @@ msgstr ""
1616
"Plural-Forms: nplurals=6; plural=(n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && "
1717
"n%100<=99 ? 4 : 5);\n"
1818
"Generated-By: pygettext.py 1.5\n"
19-
"X-Generator: Poedit 3.2.2\n"
19+
"X-Generator: Poedit 3.3.2\n"
2020
"X-Poedit-SourceCharset: UTF-8\n"
2121

2222
#: C:\Users\suleiman\projects\accessible_youtube_downloader_pro\source\accessible_youtube_downloader_pro.py:47
@@ -120,19 +120,19 @@ msgstr "bytes"
120120

121121
#: C:\Users\suleiman\projects\accessible_youtube_downloader_pro\source\download_handler\downloader.py:27
122122
msgid "كيلو بايت"
123-
msgstr "kilo bytes"
123+
msgstr "kilobytes"
124124

125125
#: C:\Users\suleiman\projects\accessible_youtube_downloader_pro\source\download_handler\downloader.py:29
126126
msgid "ميجا بايت"
127-
msgstr "mega bytes"
127+
msgstr "megabytes"
128128

129129
#: C:\Users\suleiman\projects\accessible_youtube_downloader_pro\source\download_handler\downloader.py:31
130130
msgid "جيجا بايت"
131-
msgstr "gega bytes"
131+
msgstr "gigabytes"
132132

133133
#: C:\Users\suleiman\projects\accessible_youtube_downloader_pro\source\download_handler\downloader.py:33
134134
msgid "تيرا بايت"
135-
msgstr "tera bytes"
135+
msgstr "terabytes"
136136

137137
#: C:\Users\suleiman\projects\accessible_youtube_downloader_pro\source\download_handler\downloader.py:53
138138
#: C:\Users\suleiman\projects\accessible_youtube_downloader_pro\source\gui\download_progress.py:10
@@ -175,7 +175,7 @@ msgstr "error"
175175
#: C:\Users\suleiman\projects\accessible_youtube_downloader_pro\source\gui\download_dialog.py:105
176176
msgid "لقد أدخلت رابطًأ غير صحيح. يرجى تجربة رابط آخر, أو حاول التأكد من وجود اتصال بالشبكة."
177177
msgstr ""
178-
"either an internet connection accurd or you have enterd an envalid YouTube url. please check that out and try "
178+
"either an internet connection occured or you have enterd an invalid YouTube url. please check that out and try "
179179
"again."
180180

181181
#: C:\Users\suleiman\projects\accessible_youtube_downloader_pro\source\download_handler\downloader.py:108
@@ -742,7 +742,7 @@ msgstr "extracting video description"
742742

743743
#: C:\Users\suleiman\projects\accessible_youtube_downloader_pro\source\media_player\media_gui.py:427
744744
msgid "هناك خطأ ما أدى إلى منع جلب وصف الفيديو"
745-
msgstr "an error occurred while extracting the video description"
745+
msgstr "an error occured while extracting the video description"
746746

747747
#: C:\Users\suleiman\projects\accessible_youtube_downloader_pro\source\media_player\media_gui.py:444
748748
msgid "لا يمكن جلب التعليقات لهذا الفيديو"
@@ -891,12 +891,6 @@ msgstr "contains {} videos"
891891
msgid "عدد المشاهدات {}"
892892
msgstr "{} views"
893893

894-
msgid ""
895-
"يهدف هذا البرنامج إلى تقديم أيسر السبل أمام المستخدم الكفيف للتصفح \"\tوالتنزيل من خدمة استضافة الفيديوهات "
896-
"youtube"
897-
msgstr ""
898-
"This application aims to provide accessible solutions for blind users to download and browse YouTube content"
899-
900894
msgid "موافق"
901895
msgstr "ok"
902896

0 commit comments

Comments
 (0)