Skip to content

Commit

Permalink
Update UI to show where to download external tools
Browse files Browse the repository at this point in the history
MakeMKV is now Make H265 MKV
  • Loading branch information
towel42-com committed Mar 6, 2023
1 parent 78adfa0 commit 8485470
Show file tree
Hide file tree
Showing 15 changed files with 145 additions and 480 deletions.
2 changes: 1 addition & 1 deletion Core/SearchTMDBInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ namespace NMediaManager
return ( *pos ).second.first;
}

auto regExpStr = NPreferences::NCore::CPreferences::instance()->getRippedWithMKVRegEX();
auto regExpStr = NPreferences::NCore::CPreferences::instance()->getRippedWithMakeMKVRegEX();
auto regExp = QRegularExpression( regExpStr );
auto match = regExp.match( name );
bool aOK = false;
Expand Down
140 changes: 0 additions & 140 deletions Models/MakeMKVModel.cpp

This file was deleted.

65 changes: 0 additions & 65 deletions Models/MakeMKVModel.h

This file was deleted.

4 changes: 2 additions & 2 deletions Models/include.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ set(qtproject_SRCS
DirNodeItem.cpp
GenerateBIFModel.cpp
MergeSRTModel.cpp
MakeMKVModel.cpp
MakeH265MKVModel.cpp
TagsModel.cpp
TransformModel.cpp
ValidateMKVModel.cpp
Expand All @@ -39,7 +39,7 @@ set(qtproject_H
DirModel.h
GenerateBIFModel.h
MergeSRTModel.h
MakeMKVModel.h
MakeH265MKVModel.h
TagsModel.h
TransformModel.h
ValidateMKVModel.h
Expand Down
2 changes: 1 addition & 1 deletion Preferences/Core/DefaultPreferences.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ namespace NMediaManager
return !getDefaultCustomPathsToDelete().isEmpty();
}

QString CPreferences::getDefaultRippedWithMKVRegEX() const
QString CPreferences::getDefaultRippedWithMakeMKVRegEX() const
{
return R"(^.*_t(?<num>\d+)\.mkv$)";
}
Expand Down
10 changes: 5 additions & 5 deletions Preferences/Core/Preferences.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -630,19 +630,19 @@ namespace NMediaManager
return settings.value( "CustomToDelete", getDefaultCustomPathsToDelete() ).toStringList();
}

void CPreferences::setRippedWithMKVRegEX( const QString &value )
void CPreferences::setRippedWithMakeMKVRegEX( const QString &value )
{
QSettings settings;
settings.beginGroup( toString( EPreferenceType::eTransformPrefs ) );
settings.setValue( "RippedWithMKVRegEX", value );
emitSigPreferencesChanged( EPreferenceType::eTransformPrefs );
}

QString CPreferences::getRippedWithMKVRegEX() const
QString CPreferences::getRippedWithMakeMKVRegEX() const
{
QSettings settings;
settings.beginGroup( toString( EPreferenceType::eTransformPrefs ) );
auto retVal = settings.value( "RippedWithMKVRegEX", getDefaultRippedWithMKVRegEX() ).toString();
auto retVal = settings.value( "RippedWithMKVRegEX", getDefaultRippedWithMakeMKVRegEX() ).toString();
#ifdef _DEBUG
Q_ASSERT_X( retVal.indexOf( "?<num>" ) >= 0, "getRippedWithMKVRegEX", "Invalid setting must contain the capture of num" );
#endif
Expand Down Expand Up @@ -1871,7 +1871,7 @@ namespace NMediaManager
<< compareValues( "TV Out Dir Pattern", getDefaultOutDirPattern( true ), getTVOutDirPattern( false ) ) << compareValues( "TV Out File Pattern", getDefaultOutFilePattern( true ), getTVOutFilePattern() )
<< compareValues( "Skipped Paths (Media Transform)", getDefaultSkippedPaths( true ), getSkippedPaths( true ) )
<< compareValues( "Skipped Paths (Media Tagging)", getDefaultSkippedPaths( false ), getSkippedPaths( false ) ) << compareValues( "Ignored Paths", getDefaultIgnoredPaths(), getIgnoredPaths() )
<< compareValues( "Paths to Delete", getDefaultCustomPathsToDelete(), getCustomPathsToDelete() ) << compareValues( "Ripped With MKV RegEX", getDefaultRippedWithMKVRegEX(), getRippedWithMKVRegEX() )
<< compareValues( "Paths to Delete", getDefaultCustomPathsToDelete(), getCustomPathsToDelete() ) << compareValues( "Ripped With MKV RegEX", getDefaultRippedWithMakeMKVRegEX(), getRippedWithMakeMKVRegEX() )

<< compareValues( "Delete Custom", getDefaultDeleteCustom(), deleteCustom() ) << compareValues( "Delete Executables", getDefaultDeleteEXE(), deleteEXE() )
<< compareValues( "Delete NFO Files", getDefaultDeleteNFO(), deleteNFO() ) << compareValues( "Delete BAK Files", getDefaultDeleteBAK(), deleteBAK() )
Expand Down Expand Up @@ -1918,7 +1918,7 @@ namespace NMediaManager
replaceText( "%DEFAULT_OUT_FILE_PATTERN%", newFileText, "getDefaultOutFilePattern", "forTV", getTVOutFilePattern(), getMovieOutFilePattern() );
replaceText( "%DEFAULT_CUSTOM_PATHS_TO_DELETE%", newFileText, "getDefaultCustomPathsToDelete", getCustomPathsToDelete() );
replaceText( "%DEFAULT_DELETE_CUSTOM%", newFileText, "getDefaultDeleteCustom", "!getDefaultCustomPathsToDelete().isEmpty()" );
replaceText( "%DEFAULT_RIPPED_WITH_MKV_REGEX%", newFileText, "getDefaultRippedWithMKVRegEX", getRippedWithMKVRegEX() );
replaceText( "%DEFAULT_RIPPED_WITH_MKV_REGEX%", newFileText, "getDefaultRippedWithMKVRegEX", getRippedWithMakeMKVRegEX() );
replaceText( "%DEFAULT_DELETE_EXE%", newFileText, "getDefaultDeleteEXE", deleteEXE() );
replaceText( "%DEFAULT_DELETE_NFO%", newFileText, "getDefaultDeleteNFO", deleteNFO() );
replaceText( "%DEFAULT_DELETE_BAK%", newFileText, "getDefaultDeleteBAK", deleteBAK() );
Expand Down
6 changes: 3 additions & 3 deletions Preferences/Core/Preferences.h
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ namespace NMediaManager
QStringList getCustomPathsToDelete() const;
void setCustomPathsToDelete( const QStringList &paths );

QString getDefaultRippedWithMKVRegEX() const;
QString getRippedWithMKVRegEX() const;
void setRippedWithMKVRegEX( const QString &value );
QString getDefaultRippedWithMakeMKVRegEX() const;
QString getRippedWithMakeMKVRegEX() const;
void setRippedWithMakeMKVRegEX( const QString &value );

bool getDefaultDeleteCustom() const;
bool deleteCustom() const;
Expand Down
Loading

0 comments on commit 8485470

Please sign in to comment.