Skip to content

Commit

Permalink
Fix trailing slash on javlibrary baseurl
Browse files Browse the repository at this point in the history
  • Loading branch information
jvlflame committed Sep 1, 2020
1 parent d1fb83d commit ee60e7d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Javinizer/Public/Get-JVData.ps1
Expand Up @@ -70,7 +70,10 @@ function Get-JVData {
$JavlibraryBaseUrl = $Settings.'javlibrary.baseurl'
}

Write-Debug "BaseUrl: $JavlibraryBaseUrl"
if ($JavlibraryBaseUrl[-1] -eq '/') {
# Remove the trailing slash if it is included to create the valid searchUrl
$JavlibraryBaseUrl = $JavlibraryBaseUrl[0..($JavlibraryBaseUrl.Length - 1)] -join ''
}

try {
# You need to change this path if you're running the script from outside of the Javinizer module folder
Expand Down

0 comments on commit ee60e7d

Please sign in to comment.