Skip to content

Commit

Permalink
added a fallback for if there is no username available
Browse files Browse the repository at this point in the history
  • Loading branch information
Alfredredbird committed Dec 30, 2023
1 parent 438efd3 commit b34e7e4
Show file tree
Hide file tree
Showing 12 changed files with 19 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
test.py
crypto.py
8 changes: 6 additions & 2 deletions brib.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,12 @@
print(language_module.idk1)
# this is the function that starts Alfred.
if "-s" in input1:
input2 = input("[Y/N]? ⤷ ")
if input2 != "":
if uname == "":
uname = input("Please enter a target before continuing: ")
uname_list = [item.strip() for item in uname.split(",")]
if uname != "":
input2 = input("[Y/N]? ⤷ ")
if input2 != "":
if input2 == "Y" or input2 == "y":
modes += input1
inputnum += input2
Expand Down
1 change: 1 addition & 0 deletions lang/ar.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
"هذا هو إطلاقك الأول: D قد تحتاج إلى إعادة تشغيل Alfred لاستخدام جميع الوحدات"
)
warning4 = "أنت تستخدم إصدارًا مسبقًا من Alfred!"
warning5 = "الرجاء إدخال هدف قبل المتابعة:"

confirm1 = "هل تريد تنزيل الصور / مقاطع الفيديو؟ [Y / n] ⤷ "
confirm2 = "تشغيل مرة أخرى؟ [Y / n] ⤷ "
Expand Down
1 change: 1 addition & 0 deletions lang/de.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
warning2 = "Die Verwendung des Webscrapers ist ziemlich langsam."
warning3 = "Dies ist Ihr erster Start :D Möglicherweise müssen Sie Alfred neu starten, um alle Module nutzen zu können."
warning4 = "Sie verwenden eine Vorabversion von Alfred!"
warning5 = "Bitte geben Sie ein Ziel ein, bevor Sie fortfahren: "

confirm1 = "Möchten Sie Bilder/Videos herunterladen? [J/n] ⤷ "
confirm2 = "Erneut ausführen?: [J/n] ⤷"
Expand Down
1 change: 1 addition & 0 deletions lang/en.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
warning2 = " Be aware that the web scraper is a bit slow."
warning3 = " This is your first launch! :D You may need to restart Alfred for all modules to be available."
warning4 = " You are using a pre-release version of Alfred!"
warning5 = "Please enter a target before continuing: "

confirm1 = "Want to download images/videos? [Y/n] ⤷ "
confirm2 = "Run again? [Y/n] ⤷ "
Expand Down
1 change: 1 addition & 0 deletions lang/es.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
warning2 = "El uso del web scraper es bastante lento"
warning3 = "Este es tu primer lanzamiento :D Es posible que debas reiniciar Alfred para usar todos los módulos"
warning4 = "¡Estás usando una versión preliminar de Alfred!"
warning5 = "Por favor, introduzca un objetivo antes de continuar: "

confirm1 = "¿Desea descargar imágenes/videos? [Y/n] ⤷ "
confirm2 = "¿Ejecutar de nuevo? [Y/n] ⤷ "
Expand Down
1 change: 1 addition & 0 deletions lang/fr.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
warning2 = "L'utilisation du Webscraper est assez lente."
warning3 = "Ceci est votre premier lancement :D Vous devrez peut-être redémarrer Alfred pour utiliser tous les modules"
warning4 = "Vous utilisez une préversion d'Alfred !"
warning5 = "Veuillez entrer une cible avant de continuer: "

confirm1 = "Voulez-vous télécharger des images/vidéos ? [Y/n] : ⤷ "
confirm2 = "Exécuter à nouveau ? : [Y/n] : ⤷ "
Expand Down
1 change: 1 addition & 0 deletions lang/hi.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
warning2 = "वेबस्क्रैपर का उपयोग करना बहुत धीमा है।"
warning3 = "यह आपका पहला लॉन्च है :D सभी मॉड्यूल का उपयोग करने के लिए आपको अल्फ्रेड को पुनरारंभ करने की आवश्यकता हो सकती है"
warning4 = "आप अल्फ्रेड के एक प्रीरिलीज़ का उपयोग कर रहे हैं!"
warning5 = "कृपया जारी रखने से पहले एक लक्ष्य दर्ज करें: "

confirm1 = "इमेज/वीडियो डाउनलोड करना चाहते हैं? [हां/नहीं] ⤷ "
confirm2 = "फिर से चलाएं?: [हां/नहीं] ⤷ "
Expand Down
1 change: 1 addition & 0 deletions lang/il.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
"זו ההשקה הראשונה שלך :D אולי תצטרך להפעיל מחדש את אלפרד כדי להשתמש בכל המודולים"
)
warning4 = " אתה משתמש במהדורה מוקדמת של אלפרד!"
warning5 = "הזן יעד לפני שתמשיך: "

confirm1 = "רוצה להוריד תמונות/סרטונים? [Y/n] ⤷ "
confirm2 = "רוץ שוב?: [Y/n] ⤷ "
Expand Down
1 change: 1 addition & 0 deletions lang/it.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
warning2 = " L'utilizzo del webscraper è piuttosto lento."
warning3 = " Questo è il tuo primo lancio :D Potrebbe essere necessario riavviare Alfred per utilizzare tutti i moduli"
warning4 = " Stai usando un Prerelease di Alfred!"
warning5 = "Inserisci un target prima di continuare: "

confirm1 = "Vuoi scaricare immagini/video? [Y/n] ⤷ "
confirm2 = "Eseguire di nuovo?: [Y/n] ⤷ "
Expand Down
1 change: 1 addition & 0 deletions lang/ru.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
warning2 = " Использование веб-скрапинга довольно медленное."
warning3 = " Это ваш первый запуск :D Возможно, вам потребуется перезапустить Alfred, чтобы использовать все модули"
warning4 = " Вы используете предварительную версию Alfred!"
warning5 = "Пожалуйста, введите цель, прежде чем продолжить: "

confirm1 = "Хотите загрузить изображения/видео? [Y/n] ⤷ "
confirm2 = "Запустить еще раз?: [Y/n] ⤷ "
Expand Down
5 changes: 3 additions & 2 deletions modules/configcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,16 +177,17 @@ def create_folders(folder_list, language_module):

def display_options(config, section,language_module):
print("Options:")
print("=====================================")
print("=====================================================")
print(f"{language_module.configOption1} {config.get('main', 'checkforupdates')}")
print(f"{language_module.configOption2} {config.get('Personalizations', 'showtips')}")
print(f"{language_module.configOption3} {config.get('main', 'defaultdlpath')}")
print(f"{language_module.configOption4} {config.get('main', 'browser')}")
print(f"{language_module.configOption5} {config.get('main', 'language')}")
print(f"{language_module.configOption6} {config.get('Personalizations', 'colorscheme')}")
print("=====================================================")
print(f"{language_module.configOptionA} ")
print(f"{language_module.configOptionB} ")
print("=====================================")
print("=====================================================")

def update_config(config, section, option_key, new_value):
config.set(section, option_key, str(new_value))
Expand Down

0 comments on commit b34e7e4

Please sign in to comment.