Skip to content

Commit

Permalink
V2025.1.2-next (#1039)
Browse files Browse the repository at this point in the history
* fix: Use cookies file when validating URL

* feat: Version bump

* feat: Update `yt-dlp` to `2025.01.15`

* docs: Update translations

* feat: Fix Qt app not selecting default format if previous not available

* feat: Update changelog

* feat: Fix Windows Update

* docs: Update translations
  • Loading branch information
nlogozzo authored Jan 17, 2025
1 parent 3b48d77 commit acf1d4c
Show file tree
Hide file tree
Showing 24 changed files with 58 additions and 62 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
run: |
$ProgressPreference = 'SilentlyContinue'
Invoke-WebRequest https://aka.ms/vs/17/release/vc_redist.x64.exe -OutFile vc_redist.x64.exe
Invoke-WebRequest https://github.com/yt-dlp/yt-dlp/releases/download/2025.01.12/yt-dlp.exe -OutFile yt-dlp.exe
Invoke-WebRequest https://github.com/yt-dlp/yt-dlp/releases/download/2025.01.15/yt-dlp.exe -OutFile yt-dlp.exe
Invoke-WebRequest https://github.com/aria2/aria2/releases/download/release-1.37.0/aria2-1.37.0-win-64bit-build1.zip -OutFile aria2.zip
Invoke-WebRequest https://github.com/yt-dlp/FFmpeg-Builds/releases/download/latest/ffmpeg-n7.1-latest-win64-gpl-7.1.zip -OutFile ffmpeg.zip
Expand-Archive -Force 'aria2.zip'
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ if (POLICY CMP0141)
set(CMAKE_MSVC_DEBUG_INFORMATION_FORMAT "$<IF:$<AND:$<C_COMPILER_ID:MSVC>,$<CXX_COMPILER_ID:MSVC>>,$<$<CONFIG:Debug,RelWithDebInfo>:EditAndContinue>,$<$<CONFIG:Debug,RelWithDebInfo>:ProgramDatabase>>")
endif()

project("org.nickvision.tubeconverter" LANGUAGES C CXX VERSION 2025.1.0 DESCRIPTION "Download web video and audio.")
project("org.nickvision.tubeconverter" LANGUAGES C CXX VERSION 2025.1.2 DESCRIPTION "Download web video and audio.")
set(SHORT_NAME "parabolic")
set(DISPLAY_NAME "Parabolic")
include(GNUInstallDirs)
Expand Down
4 changes: 2 additions & 2 deletions docs/html/cs/newDownload.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
</svg><div class="inner"><div class="region"><div class="contents"><p class="p">Vybráním typu souboru <span class="code">Video (obecné)</span> nebo <span class="code">Zvuk (obecný)</span> stáhne aplikace Parabolic média v původním typu souboru bez vykonání jakýchkoli konverzí.</p></div></div></div>
</div>
</dd>
<dt class="terms">Video Format</dt>
<dt class="terms">Formát videa</dt>
<dd class="terms">
<p class="p">Seznam formátů videa dostupných ke stažení, seřazený podle rozlišení a datového toku.</p>
<p class="p">Každý formát má tvar: <span class="code">rozlišení | datový tok | kodek (id)</span>.</p>
Expand All @@ -98,7 +98,7 @@
</svg><div class="inner"><div class="region"><div class="contents"><p class="p">Dříve použitý formát videa bude zapamatován a předem vybrán pro další stahování.</p></div></div></div>
</div>
</dd>
<dt class="terms">Audio Format</dt>
<dt class="terms">Formát zvuku</dt>
<dd class="terms">
<p class="p">Seznam formátů zvuku dostupných ke stažení, seřazený podle datového toku.</p>
<p class="p">Každý formát má podobu: <span class="code">datový tok | jazyk (id)</span>.</p>
Expand Down
4 changes: 2 additions & 2 deletions docs/html/it/newDownload.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
</svg><div class="inner"><div class="region"><div class="contents"><p class="p">Selecting the <span class="code">Video (Generic)</span> or <span class="code">Audio (Generic)</span> file types will cause Parabolic to download the media in the original file type of the media without performing any conversions.</p></div></div></div>
</div>
</dd>
<dt class="terms">Video Format</dt>
<dt class="terms">Formato del video</dt>
<dd class="terms">
<p class="p">The list of video formats available for download, sorted by resolution and bitrate.</p>
<p class="p">Each format is the form: <span class="code">resolution | bitrate | codec (id)</span>.</p>
Expand All @@ -98,7 +98,7 @@
</svg><div class="inner"><div class="region"><div class="contents"><p class="p">The previously used video format will be remembered and pre-selected for the next download.</p></div></div></div>
</div>
</dd>
<dt class="terms">Audio Format</dt>
<dt class="terms">Formato del audio</dt>
<dd class="terms">
<p class="p">The list of audio formats available for download, sorted by bitrate.</p>
<p class="p">Each format is the form: <span class="code">bitrate | language (id)</span>.</p>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/sk/converter.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
</dd>
<dt class="terms">Vložiť kapitoly</dt>
<dd class="terms">
<p class="p">Ak je táto možnosť zapnutá, aplikácia Parabolic priradí médiám informácie o kapitolách, ak sú k dostupné.</p>
<p class="p">Ak je táto možnosť zapnutá, aplikácia Parabolic priradí médiám informácie o kapitolách, ak sú k dispozícii.</p>
<div class="note note-advanced" title="Pokročilé">
<svg height="24" width="24" version="1.1">
<g>
Expand Down
2 changes: 1 addition & 1 deletion docs/html/sk/downloads.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<div class="terms"><div class="inner"><div class="region"><dl class="terms">
<dt class="terms">Maximálny počet aktívnych stiahnutí</dt>
<dd class="terms">
<p class="p">Počet aktívnych sťahovaní, ktoré môžu byť spustené v danom čase. Musí to byť celočíselná hodnota od 1 do 10.</p>
<p class="p">Počet aktívnych sťahovaní, ktoré môžu prebiehať súčasne. Musí to byť celočíselná hodnota od 1 do 10.</p>
<p class="p">Ak sa dosiahne maximálny počet aktívnych sťahovaní, aplikácia Parabolic zaradí nové sťahovania do poradia, kým nebude možné spustiť ďalšie sťahovania.</p>
<div class="note note-advanced" title="Pokročilé">
<svg height="24" width="24" version="1.1">
Expand Down
18 changes: 9 additions & 9 deletions docs/html/sk/newDownload.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,31 +84,31 @@
</svg><div class="inner"><div class="region"><div class="contents"><p class="p">Ak vyberiete typ súboru <span class="code">Video (všeobecné)</span> alebo <span class="code">Zvuk (všeobecný)</span>, aplikácia Parabolic stiahne médiá v pôvodnom formáte bez vykonania konverzie.</p></div></div></div>
</div>
</dd>
<dt class="terms">Video Format</dt>
<dt class="terms">Formát videa</dt>
<dd class="terms">
<p class="p">The list of video formats available for download, sorted by resolution and bitrate.</p>
<p class="p">Each format is the form: <span class="code">resolution | bitrate | codec (id)</span>.</p>
<p class="p">If the file type is an audio type, this option will not be available.</p>
<p class="p">Zoznam video formátov, ktoré si môžete stiahnuť, zoradený podľa rozlíšenia a bitovej rýchlosti.</p>
<p class="p">Každý formát je uvedený v tomto tvare: <span class="code">rozlíšenie | bitová rýchlosť | kodek (ID)</span>.</p>
<p class="p">Ak je typ súboru formát zvuku, táto možnosť nebude dostupná.</p>
<div class="note" title="Poznámka">
<svg height="24" width="24" version="1.1">
<g>
<path class="yelp-svg-fill" d="m4 3h16c0.554 0 1 0.446 1 1v11h-6v6h-11c-0.554 0-1-0.446-1-1v-16c0-0.554 0.446-1 1-1z"></path>
<path class="yelp-svg-fill" d="m17 16h4l-5 5v-4c0-0.554 0.446-1 1-1z"></path>
</g>
</svg><div class="inner"><div class="region"><div class="contents"><p class="p">The previously used video format will be remembered and pre-selected for the next download.</p></div></div></div>
</svg><div class="inner"><div class="region"><div class="contents"><p class="p">Predtým použitý video formát sa uloží a automaticky sa predvolí pre ďalšie sťahovanie.</p></div></div></div>
</div>
</dd>
<dt class="terms">Audio Format</dt>
<dt class="terms">Formát zvuku</dt>
<dd class="terms">
<p class="p">The list of audio formats available for download, sorted by bitrate.</p>
<p class="p">Each format is the form: <span class="code">bitrate | language (id)</span>.</p>
<p class="p">Zoznam audio formátov, ktoré si môžete stiahnuť, zoradený podľa ich bitovej rýchlosti.</p>
<p class="p">Každý formát je uvedený v tomto tvare: <span class="code">bitová rýchlosť | jazyk (ID)</span>.</p>
<div class="note" title="Poznámka">
<svg height="24" width="24" version="1.1">
<g>
<path class="yelp-svg-fill" d="m4 3h16c0.554 0 1 0.446 1 1v11h-6v6h-11c-0.554 0-1-0.446-1-1v-16c0-0.554 0.446-1 1-1z"></path>
<path class="yelp-svg-fill" d="m17 16h4l-5 5v-4c0-0.554 0.446-1 1-1z"></path>
</g>
</svg><div class="inner"><div class="region"><div class="contents"><p class="p">The previously used audio format will be remembered and pre-selected for the next download.</p></div></div></div>
</svg><div class="inner"><div class="region"><div class="contents"><p class="p">Predtým použitý audio formát sa uloží a automaticky sa predvolí pre ďalšie sťahovanie.</p></div></div></div>
</div>
</dd>
<dt class="terms">Titulky</dt>
Expand Down
4 changes: 2 additions & 2 deletions docs/html/sv/newDownload.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
</svg><div class="inner"><div class="region"><div class="contents"><p class="p">Att välja <span class="code">Video (Generisk)</span> eller <span class="code">Ljud (Generisk)</span> filtyper kommer att få Parabolic att ladda ner media i den ursprungliga filtypen för media utan att utföra några konverteringar.</p></div></div></div>
</div>
</dd>
<dt class="terms">Video Format</dt>
<dt class="terms">Video format</dt>
<dd class="terms">
<p class="p">Listan över videoformat som är tillgängliga för nedladdning, sorterade efter upplösning och bithastighet.</p>
<p class="p">Varje format har formen: <span class="code">upplösning | bithastighet | codec (id)</span>.</p>
Expand All @@ -98,7 +98,7 @@
</svg><div class="inner"><div class="region"><div class="contents"><p class="p">Det tidigare använda videoformatet kommer att kommas ihåg och vara förvalt vid nästa nedladdning.</p></div></div></div>
</div>
</dd>
<dt class="terms">Audio Format</dt>
<dt class="terms">Ljud format</dt>
<dd class="terms">
<p class="p">Listan över ljudformat som är tillgängliga för nedladdning, sorterade efter bithastighet.</p>
<p class="p">Varje format har formen: <span class="code">bitrate | språk (id)</span>.</p>
Expand Down
4 changes: 2 additions & 2 deletions docs/yelp/cs/newDownload.page
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
</note>
</item>
<item>
<title>Video Format</title>
<title>Formát videa</title>
<p>Seznam formátů videa dostupných ke stažení, seřazený podle rozlišení a datového toku.</p>
<p>Každý formát má tvar: <code>rozlišení | datový tok | kodek (id)</code>.</p>
<p>Pokud je typem souboru typ zvuku, nebude tato možnost dostupná.</p>
Expand All @@ -60,7 +60,7 @@
</note>
</item>
<item>
<title>Audio Format</title>
<title>Formát zvuku</title>
<p>Seznam formátů zvuku dostupných ke stažení, seřazený podle datového toku.</p>
<p>Každý formát má podobu: <code>datový tok | jazyk (id)</code>.</p>
<note>
Expand Down
4 changes: 2 additions & 2 deletions docs/yelp/it/newDownload.page
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
</note>
</item>
<item>
<title>Video Format</title>
<title>Formato del video</title>
<p>The list of video formats available for download, sorted by resolution and bitrate.</p>
<p>Each format is the form: <code>resolution | bitrate | codec (id)</code>.</p>
<p>If the file type is an audio type, this option will not be available.</p>
Expand All @@ -54,7 +54,7 @@
</note>
</item>
<item>
<title>Audio Format</title>
<title>Formato del audio</title>
<p>The list of audio formats available for download, sorted by bitrate.</p>
<p>Each format is the form: <code>bitrate | language (id)</code>.</p>
<note>
Expand Down
2 changes: 1 addition & 1 deletion docs/yelp/sk/converter.page
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
</item>
<item>
<title>Vložiť kapitoly</title>
<p>Ak je táto možnosť zapnutá, aplikácia Parabolic priradí médiám informácie o kapitolách, ak sú k dostupné.</p>
<p>Ak je táto možnosť zapnutá, aplikácia Parabolic priradí médiám informácie o kapitolách, ak sú k dispozícii.</p>
<note style="advanced">
<p>Predvolené: Vypnuté</p>
</note>
Expand Down
2 changes: 1 addition & 1 deletion docs/yelp/sk/downloads.page
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<terms>
<item>
<title>Maximálny počet aktívnych stiahnutí</title>
<p>Počet aktívnych sťahovaní, ktoré môžu byť spustené v danom čase. Musí to byť celočíselná hodnota od 1 do 10.</p>
<p>Počet aktívnych sťahovaní, ktoré môžu prebiehať súčasne. Musí to byť celočíselná hodnota od 1 do 10.</p>
<p>Ak sa dosiahne maximálny počet aktívnych sťahovaní, aplikácia Parabolic zaradí nové sťahovania do poradia, kým nebude možné spustiť ďalšie sťahovania.</p>
<note style="advanced">
<p>Predvolené: 5</p>
Expand Down
18 changes: 9 additions & 9 deletions docs/yelp/sk/newDownload.page
Original file line number Diff line number Diff line change
Expand Up @@ -51,20 +51,20 @@
</note>
</item>
<item>
<title>Video Format</title>
<p>The list of video formats available for download, sorted by resolution and bitrate.</p>
<p>Each format is the form: <code>resolution | bitrate | codec (id)</code>.</p>
<p>If the file type is an audio type, this option will not be available.</p>
<title>Formát videa</title>
<p>Zoznam video formátov, ktoré si môžete stiahnuť, zoradený podľa rozlíšenia a bitovej rýchlosti.</p>
<p>Každý formát je uvedený v tomto tvare: <code>rozlíšenie | bitová rýchlosť | kodek (ID)</code>.</p>
<p>Ak je typ súboru formát zvuku, táto možnosť nebude dostupná.</p>
<note>
<p>The previously used video format will be remembered and pre-selected for the next download.</p>
<p>Predtým použitý video formát sa uloží a automaticky sa predvolí pre ďalšie sťahovanie.</p>
</note>
</item>
<item>
<title>Audio Format</title>
<p>The list of audio formats available for download, sorted by bitrate.</p>
<p>Each format is the form: <code>bitrate | language (id)</code>.</p>
<title>Formát zvuku</title>
<p>Zoznam audio formátov, ktoré si môžete stiahnuť, zoradený podľa ich bitovej rýchlosti.</p>
<p>Každý formát je uvedený v tomto tvare: <code>bitová rýchlosť | jazyk (ID)</code>.</p>
<note>
<p>The previously used audio format will be remembered and pre-selected for the next download.</p>
<p>Predtým použitý audio formát sa uloží a automaticky sa predvolí pre ďalšie sťahovanie.</p>
</note>
</item>
<item>
Expand Down
4 changes: 2 additions & 2 deletions docs/yelp/sv/newDownload.page
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
</note>
</item>
<item>
<title>Video Format</title>
<title>Video format</title>
<p>Listan över videoformat som är tillgängliga för nedladdning, sorterade efter upplösning och bithastighet.</p>
<p>Varje format har formen: <code>upplösning | bithastighet | codec (id)</code>.</p>
<p>Om filtypen är en ljudtyp kommer det här alternativet inte att vara tillgängligt.</p>
Expand All @@ -54,7 +54,7 @@
</note>
</item>
<item>
<title>Audio Format</title>
<title>Ljud format</title>
<p>Listan över ljudformat som är tillgängliga för nedladdning, sorterade efter bithastighet.</p>
<p>Varje format har formen: <code>bitrate | språk (id)</code>.</p>
<note>
Expand Down
4 changes: 2 additions & 2 deletions flatpak/python3-modules.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@
},
{
"type": "file",
"url": "https://files.pythonhosted.org/packages/f3/9d/782c67465798478b3f8cf8c72da771e1eb0956e13b820f862b35de66d4a7/yt_dlp-2025.1.12-py3-none-any.whl",
"sha256": "f7ea19afb64f8e457a1b9598ddb67f8deaa313bf1d57abd5612db9272ab10795"
"url": "https://files.pythonhosted.org/packages/a4/97/73eadf12412173dc518897a2715693e6caa73d6550ddf0b7c47c6f1e7703/yt_dlp-2025.1.15-py3-none-any.whl",
"sha256": "b8666b88e23c3fa5ee1e80920f4a9dfac7c405504a447214c0cf3d0c386edcfc"
}
]
}
2 changes: 1 addition & 1 deletion inno/setup.iss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#define MyAppName "Nickvision Parabolic"
#define MyAppShortName "Parabolic"
#define MyAppVersion "2025.1.0"
#define MyAppVersion "2025.1.2"
#define MyAppPublisher "Nickvision"
#define MyAppURL "https://nickvision.org"
#define MyAppExeName "org.nickvision.tubeconverter.qt.exe"
Expand Down
10 changes: 2 additions & 8 deletions libparabolic/src/controllers/adddownloaddialogcontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -311,14 +311,8 @@ namespace Nickvision::TubeConverter::Shared::Controllers
//Save Previous Options
m_previousOptions.setSaveFolder(options.getSaveFolder());
m_previousOptions.setFileType(options.getFileType());
if(options.getVideoFormat())
{
m_previousOptions.setVideoFormatId(options.getVideoFormat()->getId());
}
if(options.getAudioFormat())
{
m_previousOptions.setAudioFormatId(options.getAudioFormat()->getId());
}
m_previousOptions.setVideoFormatId(options.getVideoFormat() ? options.getVideoFormat()->getId() : "");
m_previousOptions.setAudioFormatId(options.getAudioFormat() ? options.getAudioFormat()->getId() : "");
m_previousOptions.setSplitChapters(options.getSplitChapters());
m_previousOptions.setLimitSpeed(options.getLimitSpeed());
m_previousOptions.setExportDescription(exportDescription);
Expand Down
6 changes: 3 additions & 3 deletions libparabolic/src/controllers/mainwindowcontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ namespace Nickvision::TubeConverter::Shared::Controllers
m_downloadManager{ m_dataFileManager.get<Configuration>("config").getDownloaderOptions(), m_dataFileManager.get<DownloadHistory>("history"), m_dataFileManager.get<DownloadRecoveryQueue>("recovery"), m_logger },
m_isWindowActive{ false }
{
m_appInfo.setVersion({ "2025.1.1" });
m_appInfo.setVersion({ "2025.1.2-next" });
m_appInfo.setShortName(_("Parabolic"));
m_appInfo.setDescription(_("Download web video and audio"));
m_appInfo.setChangelog("- Updated yt-dlp");
m_appInfo.setChangelog("- Fixed an issue where the cookies file was not used when validating media URLs\n- Fixed an issue where the Qt version of the app did not select the Best format when the previously used format was not available\n- Fixed an issue where the update button on the Windows app did not work\n- Updated yt-dlp");
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 Expand Up @@ -310,7 +310,7 @@ namespace Nickvision::TubeConverter::Shared::Controllers
#ifdef _WIN32
void MainWindowController::windowsUpdate()
{
if(m_updater)
if(!m_updater)
{
return;
}
Expand Down
9 changes: 7 additions & 2 deletions libparabolic/src/models/downloadmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ namespace Nickvision::TubeConverter::Shared::Models
arguments.push_back("--password");
arguments.push_back(credential->getPassword());
}
if(m_options.getCookiesBrowser() != Browser::None)
if(m_options.getCookiesBrowser() != Browser::None && Environment::getDeploymentMode() == DeploymentMode::Local)
{
arguments.push_back("--cookies-from-browser");
switch(m_options.getCookiesBrowser())
Expand Down Expand Up @@ -274,6 +274,11 @@ namespace Nickvision::TubeConverter::Shared::Models
break;
}
}
else if(std::filesystem::exists(m_options.getCookiesPath()))
{
arguments.push_back("--cookies");
arguments.push_back(m_options.getCookiesPath().string());
}
arguments.push_back(url);
Process process{ Environment::findDependency("yt-dlp"), arguments };
process.start();
Expand Down Expand Up @@ -538,4 +543,4 @@ namespace Nickvision::TubeConverter::Shared::Models
m_logger.log(LogLevel::Info, "Download started from queue (" + std::to_string(firstQueuedDownload->getId()) + ").");
}
}
}
}
6 changes: 0 additions & 6 deletions libparabolic/src/models/downloadoptions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -310,17 +310,11 @@ namespace Nickvision::TubeConverter::Shared::Models
default:
break;
}
//Neeeded for yt-dlp 2025.01.12 (see https://github.com/yt-dlp/yt-dlp/issues/12085)
arguments.push_back("--extractor-args");
arguments.push_back("youtube:player_client=default,-web_creator");
}
else if(std::filesystem::exists(downloaderOptions.getCookiesPath()))
{
arguments.push_back("--cookies");
arguments.push_back(downloaderOptions.getCookiesPath().string());
//Neeeded for yt-dlp 2025.01.12 (see https://github.com/yt-dlp/yt-dlp/issues/12085)
arguments.push_back("--extractor-args");
arguments.push_back("youtube:player_client=default,-web_creator");
}
if(downloaderOptions.getYouTubeSponsorBlock())
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ namespace Nickvision::TubeConverter::GNOME::Views
adw_dialog_set_can_close(m_dialog, true);
if(!m_controller->isUrlPlaylist()) //Single Download
{
size_t previous;
size_t previous{ 0 };
//Load Options
adw_view_stack_set_visible_child_name(m_builder.get<AdwViewStack>("viewStack"), "download-single");
GtkHelpers::setComboRowModel(m_builder.get<AdwComboRow>("fileTypeSingleRow"), m_controller->getFileTypeStrings());
Expand Down
Loading

0 comments on commit acf1d4c

Please sign in to comment.