If no episode names found in singleSeason, skip to the end
This commit is contained in:
parent
586d0d90dc
commit
dac1ccc6c4
@ -306,6 +306,9 @@ void singleSeason( const string &path, string &show, int season, string id,
|
||||
auto renamed_files = getRenamedFiles( show, season, id, language, pattern,
|
||||
linux, *files_ptr, dvd );
|
||||
|
||||
if( renamed_files.empty() )
|
||||
goto end;
|
||||
|
||||
if ( print || !trust ) {
|
||||
for ( auto renamed = renamed_files.begin();
|
||||
renamed != renamed_files.end(); ++renamed ) {
|
||||
@ -335,6 +338,7 @@ void singleSeason( const string &path, string &show, int season, string id,
|
||||
}
|
||||
}
|
||||
|
||||
end:
|
||||
if ( found_files != nullptr ) {
|
||||
delete found_files;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user