Skip to content

Commit

Permalink
Clean up extra html on dmm description
Browse files Browse the repository at this point in the history
  • Loading branch information
jvlflame committed Sep 24, 2020
1 parent 5803861 commit 656a968
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Javinizer/Private/Scraper.Dmm.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function Get-DmmDescription {

if ($null -eq $description -or $description -eq '') {
$description = (((($Webrequest.Content -join "`r`n") -split '<div class="mg-b20 lh4">')[1]) -split '\n')[6]
$description = ($description -replace '<p class=".*">.*<\/p>', '', '<br>').Trim()
$description = ($description -replace '<p class=".*">.*<\/p>', '' -replace '<br>', '').Trim()
}

Write-Output $description
Expand Down

0 comments on commit 656a968

Please sign in to comment.