Skip to content

Commit

Permalink
Shared - Audio Language Fixes
Browse files Browse the repository at this point in the history
Fixes #897
  • Loading branch information
nlogozzo committed Oct 15, 2024
1 parent a5ed80d commit d30ee03
Show file tree
Hide file tree
Showing 39 changed files with 306 additions and 452 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ namespace Nickvision::TubeConverter::Shared::Controllers
{
return languages;
}
languages.push_back(_("Default"));
if(!m_urlInfo->isPlaylist())
{
const Media& media{ m_urlInfo->get(0) };
Expand All @@ -181,7 +182,6 @@ namespace Nickvision::TubeConverter::Shared::Controllers
}
}
}
languages.insert(languages.begin(), _("Default"));
return languages;
}

Expand Down
2 changes: 1 addition & 1 deletion libparabolic/src/controllers/mainwindowcontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ namespace Nickvision::TubeConverter::Shared::Controllers
m_appInfo.setVersion({ "2024.10.2-next" });
m_appInfo.setShortName(_("Parabolic"));
m_appInfo.setDescription(_("Download web video and audio"));
m_appInfo.setChangelog("- The user's preferred video codec will now be used in playlist downloads where individual quality/format selection is not available\n- Partially downloaded media will now correctly resume when retrying the failed download instead of restarting the download from scratch\n- Fixed an issue where some websites failed in a 403 forbidden error");
m_appInfo.setChangelog("- The user's preferred video codec will now be used in playlist downloads where individual quality/format selection is not available\n- Partially downloaded media will now correctly resume when retrying the failed download instead of restarting the download from scratch\n- Fixed an issue where some websites failed in a 403 forbidden error\n- Fixed an issue where some videos would download as audio only after selecting an audio language\n- Fixed an issue where the incorrect audio language was downloaded");
m_appInfo.setSourceRepo("https://github.com/NickvisionApps/Parabolic");
m_appInfo.setIssueTracker("https://github.com/NickvisionApps/Parabolic/issues/new");
m_appInfo.setSupportUrl("https://github.com/NickvisionApps/Parabolic/discussions");
Expand Down
9 changes: 8 additions & 1 deletion libparabolic/src/models/downloadoptions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,14 @@ namespace Nickvision::TubeConverter::Shared::Models
else if(m_audioFormat)
{
arguments.push_back("--format");
arguments.push_back(m_audioFormat->getId());
if(m_fileType.isVideo())
{
arguments.push_back("bv+" + m_audioFormat->getId());
}
else
{
arguments.push_back(m_audioFormat->getId());
}
}
if(!std::filesystem::exists(m_saveFolder))
{
Expand Down
2 changes: 2 additions & 0 deletions resources/linux/org.nickvision.tubeconverter.metainfo.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@
<p>- The user's preferred video codec will now be used in playlist downloads where individual quality/format selection is not available</p>
<p>- Partially downloaded media will now correctly resume when retrying the failed download instead of restarting the download from scratch</p>
<p>- Fixed an issue where some websites failed in a 403 forbidden error</p>
<p>- Fixed an issue where some videos would download as audio only after selecting an audio language</p>
<p>- Fixed an issue where the incorrect audio language was downloaded</p>
</description>
</release>
</releases>
Expand Down
17 changes: 5 additions & 12 deletions resources/po/ady.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-10-13 13:34-0400\n"
"POT-Creation-Date: 2024-10-15 10:47-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Automatically generated\n"
"Language-Team: none\n"
Expand Down Expand Up @@ -73,12 +73,12 @@ msgstr ""
msgid "Best"
msgstr ""

#: libparabolic/src/controllers/adddownloaddialogcontroller.cpp:170
msgid "Audio Description"
#: libparabolic/src/controllers/adddownloaddialogcontroller.cpp:160
msgid "Default"
msgstr ""

#: libparabolic/src/controllers/adddownloaddialogcontroller.cpp:184
msgid "Default"
#: libparabolic/src/controllers/adddownloaddialogcontroller.cpp:171
msgid "Audio Description"
msgstr ""

#: libparabolic/src/controllers/mainwindowcontroller.cpp:42
Expand Down Expand Up @@ -126,22 +126,18 @@ msgid "Unable to download and install update"
msgstr ""

#: libparabolic/src/events/downloadprogresschangedeventargs.cpp:21
#, c++-format
msgid "{:.2f} GiB/s"
msgstr ""

#: libparabolic/src/events/downloadprogresschangedeventargs.cpp:25
#, c++-format
msgid "{:.2f} MiB/s"
msgstr ""

#: libparabolic/src/events/downloadprogresschangedeventargs.cpp:29
#, c++-format
msgid "{:.2f} KiB/s"
msgstr ""

#: libparabolic/src/events/downloadprogresschangedeventargs.cpp:33
#, c++-format
msgid "{:.2f} B/s"
msgstr ""

Expand Down Expand Up @@ -916,7 +912,6 @@ msgid "No Subtitles Available"
msgstr ""

#: org.nickvision.tubeconverter.gnome/src/views/adddownloaddialog.cpp:173
#, c++-format
msgid "{} items"
msgstr ""

Expand Down Expand Up @@ -1028,7 +1023,6 @@ msgid "Changelog:"
msgstr ""

#: org.nickvision.tubeconverter.qt/src/controls/aboutdialog.cpp:39
#, c++-format
msgid ""
"Developers:\n"
"{}\n"
Expand Down Expand Up @@ -1096,7 +1090,6 @@ msgid ""
msgstr ""

#: org.nickvision.tubeconverter.qt/src/views/adddownloaddialog.cpp:206
#, c++-format
msgid "Items ({})"
msgstr ""

Expand Down
22 changes: 9 additions & 13 deletions resources/po/ar.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-10-13 13:34-0400\n"
"POT-Creation-Date: 2024-10-15 10:47-0400\n"
"PO-Revision-Date: 2024-09-11 13:02+0000\n"
"Last-Translator: Deflector <[email protected]>\n"
"Language-Team: Arabic <https://hosted.weblate.org/projects/nickvision-tube-"
Expand Down Expand Up @@ -76,14 +76,14 @@ msgstr "صوت (بصيغة WAV)"
msgid "Best"
msgstr "الأفضل"

#: libparabolic/src/controllers/adddownloaddialogcontroller.cpp:170
msgid "Audio Description"
msgstr ""

#: libparabolic/src/controllers/adddownloaddialogcontroller.cpp:184
#: libparabolic/src/controllers/adddownloaddialogcontroller.cpp:160
msgid "Default"
msgstr "جودة افتراضية"

#: libparabolic/src/controllers/adddownloaddialogcontroller.cpp:171
msgid "Audio Description"
msgstr ""

#: libparabolic/src/controllers/mainwindowcontroller.cpp:42
#: org.nickvision.tubeconverter.qt/src/views/mainwindow.cpp:39
msgid "Parabolic"
Expand Down Expand Up @@ -134,22 +134,20 @@ msgid "Unable to download and install update"
msgstr "لا يمكن تحميل وتنزيل التحديث"

#: libparabolic/src/events/downloadprogresschangedeventargs.cpp:21
#, c++-format
msgid "{:.2f} GiB/s"
msgstr "{:.2f} جيجابايت/ث"

#: libparabolic/src/events/downloadprogresschangedeventargs.cpp:25
#, fuzzy, c++-format
#, fuzzy
msgid "{:.2f} MiB/s"
msgstr "{0:f1} ميجابايت\\ث"

#: libparabolic/src/events/downloadprogresschangedeventargs.cpp:29
#, fuzzy, c++-format
#, fuzzy
msgid "{:.2f} KiB/s"
msgstr "{0:f1} كيلوبايت\\ث"

#: libparabolic/src/events/downloadprogresschangedeventargs.cpp:33
#, c++-format
msgid "{:.2f} B/s"
msgstr "{:.2f} بايت/ث"

Expand Down Expand Up @@ -936,7 +934,6 @@ msgid "No Subtitles Available"
msgstr "لديك تحديث جديد"

#: org.nickvision.tubeconverter.gnome/src/views/adddownloaddialog.cpp:173
#, c++-format
msgid "{} items"
msgstr "{} عنصر/عناصر"

Expand Down Expand Up @@ -1048,7 +1045,6 @@ msgid "Changelog:"
msgstr "تغييرات التحديث:"

#: org.nickvision.tubeconverter.qt/src/controls/aboutdialog.cpp:39
#, c++-format
msgid ""
"Developers:\n"
"{}\n"
Expand Down Expand Up @@ -1127,7 +1123,7 @@ msgstr ""
"المستخدم، والمتصفح المستخدم لبيانات تعريف الإرتباط في الإعدادات."

#: org.nickvision.tubeconverter.qt/src/views/adddownloaddialog.cpp:206
#, fuzzy, c++-format
#, fuzzy
msgid "Items ({})"
msgstr "وسائط قائمة التشغيل ({})"

Expand Down
24 changes: 12 additions & 12 deletions resources/po/bg.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-10-13 13:34-0400\n"
"POT-Creation-Date: 2024-10-15 10:47-0400\n"
"PO-Revision-Date: 2024-04-08 20:37+0000\n"
"Last-Translator: twlvnn <[email protected]>\n"
"Language-Team: Bulgarian <https://hosted.weblate.org/projects/nickvision-"
Expand Down Expand Up @@ -82,12 +82,12 @@ msgstr "Песен"
msgid "Best"
msgstr "Най-добро"

#: libparabolic/src/controllers/adddownloaddialogcontroller.cpp:170
msgid "Audio Description"
#: libparabolic/src/controllers/adddownloaddialogcontroller.cpp:160
msgid "Default"
msgstr ""

#: libparabolic/src/controllers/adddownloaddialogcontroller.cpp:184
msgid "Default"
#: libparabolic/src/controllers/adddownloaddialogcontroller.cpp:171
msgid "Audio Description"
msgstr ""

#: libparabolic/src/controllers/mainwindowcontroller.cpp:42
Expand Down Expand Up @@ -141,22 +141,22 @@ msgid "Unable to download and install update"
msgstr "Неуспешно изтегляне и инсталиране на обновленията."

#: libparabolic/src/events/downloadprogresschangedeventargs.cpp:21
#, fuzzy, c++-format
#, fuzzy
msgid "{:.2f} GiB/s"
msgstr "{0:f1} ГБ/с"

#: libparabolic/src/events/downloadprogresschangedeventargs.cpp:25
#, fuzzy, c++-format
#, fuzzy
msgid "{:.2f} MiB/s"
msgstr "{0:f1} МБ/с"

#: libparabolic/src/events/downloadprogresschangedeventargs.cpp:29
#, fuzzy, c++-format
#, fuzzy
msgid "{:.2f} KiB/s"
msgstr "{0:f1} КБ/с"

#: libparabolic/src/events/downloadprogresschangedeventargs.cpp:33
#, fuzzy, c++-format
#, fuzzy
msgid "{:.2f} B/s"
msgstr "{0:f1} Б/с"

Expand Down Expand Up @@ -976,7 +976,7 @@ msgid "No Subtitles Available"
msgstr "Налично е ново обновление."

#: org.nickvision.tubeconverter.gnome/src/views/adddownloaddialog.cpp:173
#, fuzzy, c++-format
#, fuzzy
msgid "{} items"
msgstr "{0} от {1} елемент"

Expand Down Expand Up @@ -1093,7 +1093,7 @@ msgid "Changelog:"
msgstr "Дневник на промените"

#: org.nickvision.tubeconverter.qt/src/controls/aboutdialog.cpp:39
#, fuzzy, c++-format
#, fuzzy
msgid ""
"Developers:\n"
"{}\n"
Expand Down Expand Up @@ -1181,7 +1181,7 @@ msgid ""
msgstr ""

#: org.nickvision.tubeconverter.qt/src/views/adddownloaddialog.cpp:206
#, fuzzy, c++-format
#, fuzzy
msgid "Items ({})"
msgstr "{0} от {1} елемент"

Expand Down
21 changes: 8 additions & 13 deletions resources/po/bn.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-10-13 13:34-0400\n"
"POT-Creation-Date: 2024-10-15 10:47-0400\n"
"PO-Revision-Date: 2023-10-02 18:59+0000\n"
"Last-Translator: Soumyadeep Ghosh <[email protected]>\n"
"Language-Team: Bengali <https://hosted.weblate.org/projects/nickvision-tube-"
Expand Down Expand Up @@ -82,14 +82,14 @@ msgstr "গান"
msgid "Best"
msgstr "সর্বোত্তম"

#: libparabolic/src/controllers/adddownloaddialogcontroller.cpp:170
msgid "Audio Description"
msgstr ""

#: libparabolic/src/controllers/adddownloaddialogcontroller.cpp:184
#: libparabolic/src/controllers/adddownloaddialogcontroller.cpp:160
msgid "Default"
msgstr "পূর্বোক্ত"

#: libparabolic/src/controllers/adddownloaddialogcontroller.cpp:171
msgid "Audio Description"
msgstr ""

#: libparabolic/src/controllers/mainwindowcontroller.cpp:42
#: org.nickvision.tubeconverter.qt/src/views/mainwindow.cpp:39
msgid "Parabolic"
Expand Down Expand Up @@ -140,22 +140,18 @@ msgid "Unable to download and install update"
msgstr ""

#: libparabolic/src/events/downloadprogresschangedeventargs.cpp:21
#, c++-format
msgid "{:.2f} GiB/s"
msgstr ""

#: libparabolic/src/events/downloadprogresschangedeventargs.cpp:25
#, c++-format
msgid "{:.2f} MiB/s"
msgstr ""

#: libparabolic/src/events/downloadprogresschangedeventargs.cpp:29
#, c++-format
msgid "{:.2f} KiB/s"
msgstr ""

#: libparabolic/src/events/downloadprogresschangedeventargs.cpp:33
#, c++-format
msgid "{:.2f} B/s"
msgstr ""

Expand Down Expand Up @@ -969,7 +965,7 @@ msgid "No Subtitles Available"
msgstr "শব্দের ভাষা"

#: org.nickvision.tubeconverter.gnome/src/views/adddownloaddialog.cpp:173
#, fuzzy, c++-format
#, fuzzy
msgid "{} items"
msgstr "একটিও নয়"

Expand Down Expand Up @@ -1090,7 +1086,6 @@ msgid "Changelog:"
msgstr "পরিবর্ধন সূচি"

#: org.nickvision.tubeconverter.qt/src/controls/aboutdialog.cpp:39
#, c++-format
msgid ""
"Developers:\n"
"{}\n"
Expand Down Expand Up @@ -1162,7 +1157,7 @@ msgid ""
msgstr ""

#: org.nickvision.tubeconverter.qt/src/views/adddownloaddialog.cpp:206
#, fuzzy, c++-format
#, fuzzy
msgid "Items ({})"
msgstr "একটিও নয়"

Expand Down
Loading

0 comments on commit d30ee03

Please sign in to comment.