Skip to content

Commit

Permalink
Fix genre replacement typo (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
jvlflame committed Jan 21, 2021
1 parent 9c2074c commit 05235e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Javinizer/Public/Get-JVAggregatedData.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ function Get-JVAggregatedData {
$newGenres = $aggregatedDataObject.Genre
foreach ($genrePair in $replaceGenres) {
if ($($genrePair.Original -in $newGenres)) {
if ($genrePair.Replacement -ne '' -and $null -ne $genrePair.Repalcement) {
if ($genrePair.Replacement -ne '' -and $null -ne $genrePair.Replacement) {
$newGenres = $newGenres -replace "$($genrePair.Original)", "$($genrePair.Replacement)"
Write-JVLog -Write:$script:JVLogWrite -LogPath $script:JVLogPath -WriteLevel $script:JVLogWriteLevel -Level Debug -Message "[$($Data[0].Id)] [$($MyInvocation.MyCommand.Name)] [Genre - $($genrePair.Original)] replaced as [$($genrePair.Replacement)]"
}
Expand Down

0 comments on commit 05235e4

Please sign in to comment.