Skip to content

Commit

Permalink
this commit marks the release point of version 5.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mhogomchungu committed Aug 16, 2024
1 parent 39cdeb8 commit 128023c
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 12 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)

set( PGR_VERSION "4.9.0" )
set( PGR_VERSION "5.0.0" )
set( COPYRIGHT_YEARS "2021-2024" )

INCLUDE(GNUInstallDirs)
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,17 @@ Make sure you have access to the internet before you run the media-downloader fo

#### Bundle for MacOS

Bundle for MacOS is [here](https://github.com/mhogomchungu/media-downloader/releases/download/4.9.0/MediaDownloader-4.9.0.dmg). This bundle is not notarized and your system may report it as "corrupted". Search the internet on how to install bundles that are not notarized if you want to use this app on MacOS.
Bundle for MacOS is [here](https://github.com/mhogomchungu/media-downloader/releases/download/5.0.0/MediaDownloader-5.0.0.dmg). This bundle is not notarized and your system may report it as "corrupted". Search the internet on how to install bundles that are not notarized if you want to use this app on MacOS.

#### Installer for Microsoft Windows

Installer for Microsoft Windows is [here](https://github.com/mhogomchungu/media-downloader/releases/download/4.9.0/MediaDownloader-4.9.0.setup.exe).
Installer for Microsoft Windows is [here](https://github.com/mhogomchungu/media-downloader/releases/download/5.0.0/MediaDownloader-5.0.0.setup.exe).

#### Portable version for Microsoft Windows

A portable version is a self-contained version that keeps everything in the application folder and does not need to be installed first.

Portable version for Microsoft Windows is [here](https://github.com/mhogomchungu/media-downloader/releases/download/4.9.0/MediaDownloader-4.9.0.zip).
Portable version for Microsoft Windows is [here](https://github.com/mhogomchungu/media-downloader/releases/download/5.0.0/MediaDownloader-5.0.0.zip).

You can also install the portable version for Windows using scoop with the following commands:

Expand Down
2 changes: 1 addition & 1 deletion changelog
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ Version 1.2.0(April 1st, 2021)
- Add improvements to Lux backend.


Version 5.0.0(Unreleased)
Version 5.0.0(August 16th, 2024)
[Linux]
- Add support for flatpak and a flatpak package is hosted at
flathub(https://flathub.org/apps/io.github.mhogomchungu.media-downloader).
Expand Down
5 changes: 4 additions & 1 deletion src/batchdownloader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1653,7 +1653,10 @@ void batchdownloader::getListFromFile( const QString& e,bool deleteFile )

for( const auto& it : util::split( list,'\n',true ) ){

items.add( it ) ;
if( it.startsWith( "http" ) ){

items.add( it ) ;
}
}

const auto& engine = this->defaultEngine() ;
Expand Down
3 changes: 2 additions & 1 deletion src/flatpak/io.github.mhogomchungu.media-downloader.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"--socket=fallback-x11",
"--filesystem=xdg-download",
"--share=network",
"--device=dri"
"--device=dri",
"--talk-name=org.kde.StatusNotifierWatcher"
],
"modules": [
{
Expand Down
10 changes: 10 additions & 0 deletions src/flatpak/io.github.mhogomchungu.media-downloader.metainfo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,16 @@
</categories>

<releases>
<release version="5.0.0" type="stable" date="2024-08-16" >
<url type="details">https://github.com/mhogomchungu/media-downloader/releases/download/5.0.0/media-downloader-5.0.0.tar.xz/</url>
<description>
<p>Changelog</p>
<ul>
<li>Add support for flatpak and a flatpak package.</li>
<li>Various bug fixes and improvements.</li>
</ul>
</description>
</release>
<release version="4.9.0" type="stable" date="2024-08-01" >
<url type="details">https://github.com/mhogomchungu/media-downloader/releases/download/4.9.0/media-downloader-4.9.0.1.tar.xz/</url>
<description>
Expand Down
3 changes: 2 additions & 1 deletion src/settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1197,7 +1197,8 @@ void settings::mediaPlayer::action::logError() const

static QByteArray _hash( time_t i,const QString& s )
{
auto m = std::time( nullptr ) ;
auto m = static_cast< int >( time( nullptr ) ) ;

auto e = QString::number( m + i ) + s ;

QCryptographicHash hash( QCryptographicHash::Sha256 ) ;
Expand Down
11 changes: 7 additions & 4 deletions src/utility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1168,9 +1168,7 @@ void utility::saveDownloadList( const Context& ctx,QMenu& m,tableWidget& tableWi
filePath = utility::homePath() + "/MediaDowloaderList.json" ;
}

auto s = QFileDialog::getSaveFileName( &ctx.mainWidget(),
toolTip,
filePath ) ;
auto s = QFileDialog::getSaveFileName( &ctx.mainWidget(),toolTip,filePath ) ;
if( !s.isEmpty() ){

const auto e = _saveDownloadList( tableWidget,false ) ;
Expand All @@ -1185,7 +1183,12 @@ void utility::saveDownloadList( const Context& ctx,QMenu& m,tableWidget& tableWi

for( const auto& it : e ){

m.append( it.toObject().value( "url" ).toString().toUtf8() + "\n" ) ;
auto obj = it.toObject() ;

auto title = obj.value( "title" ).toString().toUtf8() ;
auto url = obj.value( "url" ).toString().toUtf8() ;

m.append( "#" + title + "\n" + url + "\n\n" ) ;
}

engines::file( s,ctx.logger() ).write( m ) ;
Expand Down

0 comments on commit 128023c

Please sign in to comment.