Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c513bb61d6 | ||
|
|
988fa0aff2 |
No files matched your search
+2
-2
@@ -8,7 +8,7 @@ msgstr ""
|
||||
"Project-Id-Version: audiotube\n"
|
||||
"Report-Msgid-Bugs-To: https://bugs.kde.org\n"
|
||||
"POT-Creation-Date: 2026-02-20 00:44+0000\n"
|
||||
"PO-Revision-Date: 2026-02-21 14:11+0200\n"
|
||||
"PO-Revision-Date: 2026-10-09 15:24+0200\n"
|
||||
"Last-Translator: Alexander Yavorskiy <[email protected]>\n"
|
||||
"Language-Team: Russian <[email protected]>\n"
|
||||
"Language: ru\n"
|
||||
@@ -446,7 +446,7 @@ msgstr "Лучшие результаты"
|
||||
#: contents/ui/SearchPage.qml:41 playlistimporter.cpp:24
|
||||
#, kde-format
|
||||
msgid "Unknown"
|
||||
msgstr "Неизвестный тип"
|
||||
msgstr "Неизвестно"
|
||||
|
||||
#: contents/ui/SearchPage.qml:74
|
||||
#, kde-format
|
||||
|
||||
@@ -49,8 +49,15 @@ QUrl VideoInfoExtractor::audioUrl() const
|
||||
return (!format.acodec.has_value() || format.acodec != "none") && format.vcodec == "none";
|
||||
});
|
||||
|
||||
std::sort(audioFormats.begin(), audioFormats.end(), [](const video_info::Format &a, const video_info::Format &b) {
|
||||
return a.quality > b.quality;
|
||||
const auto isOpus = [](const video_info::Format &format) {
|
||||
return format.acodec == "opus";
|
||||
};
|
||||
|
||||
std::stable_sort(audioFormats.begin(), audioFormats.end(), [&](const video_info::Format &a, const video_info::Format &b) {
|
||||
if (a.quality != b.quality) {
|
||||
return a.quality > b.quality;
|
||||
}
|
||||
return isOpus(a) && !isOpus(b);
|
||||
});
|
||||
|
||||
if (audioFormats.empty()) {
|
||||
|
||||
Reference in new issue
Block a user