Skip to content

Commit

Permalink
more work on making a package for flathub
Browse files Browse the repository at this point in the history
  • Loading branch information
mhogomchungu committed Aug 6, 2024
1 parent a186152 commit c5aafba
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
26 changes: 13 additions & 13 deletions src/engines.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -222,13 +222,6 @@ void engines::openUrls( tableWidget& table,int row,const engines::engine& engine
}
}

void engines::openUrls( const QString& path ) const
{
auto m = QUrl::fromLocalFile( path ) ;

QDesktopServices::openUrl( m ) ;
}

const QString& engines::defaultEngineName() const
{
return m_defaultEngine.name() ;
Expand Down Expand Up @@ -1492,6 +1485,17 @@ util::Json engines::engine::baseEngine::parsePlayListData( const QByteArray& e )
return e ;
}

static void _openUrl( const QString& path )
{
auto m = QUrl::fromLocalFile( path ) ;
QDesktopServices::openUrl( m ) ;
}

void engines::openUrls( const QString& s ) const
{
_openUrl( s ) ;
}

void engines::engine::baseEngine::openLocalFile( const engines::engine::baseEngine::localFile& l )
{
auto e = [ & ](){
Expand All @@ -1516,13 +1520,9 @@ void engines::engine::baseEngine::openLocalFile( const engines::engine::baseEngi

if( s.startsWith( ss ) ){

auto m = QUrl::fromLocalFile( s ) ;

QDesktopServices::openUrl( m ) ;
_openUrl( s ) ;
}else{
auto m = QUrl::fromLocalFile( l.downloadFolder + "/" + e ) ;

QDesktopServices::openUrl( m ) ;
_openUrl( l.downloadFolder + "/" + e ) ;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<name>Media Downloader</name>

<summary>A Qt based GUI frontend to yt-dlp, gallery-dl, lux, svtplay-dl and others</summary>
<summary>A GUI to yt-dlp, gallery-dl, lux</summary>

<metadata_license>FSFAP</metadata_license>

Expand All @@ -26,13 +26,13 @@

<screenshots>
<screenshot type="default">
<image>https://github.com/mhogomchungu/media-downloader/tree/58ba88ec57fd8d9cd263957e9352e6970654b8aa/images/images/media-downloader-1.png</image>
<image>https://raw.githubusercontent.com/mhogomchungu/media-downloader/a186152191cc5bf6259ae5e6d2fc12a9e3c0a0bc/images/media-downloader-1.png</image>
</screenshot>
<screenshot>
<image>https://github.com/mhogomchungu/media-downloader/tree/58ba88ec57fd8d9cd263957e9352e6970654b8aa/images/images/media-downloader-2.png</image>
<image>https://raw.githubusercontent.com/mhogomchungu/media-downloader/a186152191cc5bf6259ae5e6d2fc12a9e3c0a0bc/images/media-downloader-2.png</image>
</screenshot>
<screenshot>
<image>https://github.com/mhogomchungu/media-downloader/tree/58ba88ec57fd8d9cd263957e9352e6970654b8aa/images/images/media-downloader-3.png</image>
<image>https://raw.githubusercontent.com/mhogomchungu/media-downloader/a186152191cc5bf6259ae5e6d2fc12a9e3c0a0bc/images/media-downloader-3.png</image>
</screenshot>
</screenshots>

Expand Down

0 comments on commit c5aafba

Please sign in to comment.