File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -130,20 +130,20 @@ dynamicParam {
130130 }
131131 }
132132 }
133- if ($fps -ne 30 ) {
133+ if ($fps -and $fps - ne 30 ) {
134134 $myParameterData [" custom_fps" ] = $true
135135 }
136136 if ($uri.Scheme -eq ' File' ) {
137137 if (Test-Path $uri.AbsolutePath ) {
138- $myParameterData [" local_file" ] = " $uri " -replace ' [\\/]' , ' /'
138+ $myParameterData [" local_file" ] = " $uri " -replace ' [\\/]' , ' /' -replace ' ^file:/// '
139139 $myParameterData [" is_local_file" ] = $true
140140 }
141141 }
142142 else
143143 {
144144 if (Test-Path $uri ) {
145145 $rp = $ExecutionContext.SessionState.Path.GetResolvedPSPathFromPSPath ($uri )
146- $myParameterData [" local_file" ] = " $rp " -replace ' [\\/]' , ' /'
146+ $myParameterData [" local_file" ] = " $rp " -replace ' [\\/]' , ' /' -replace ' ^file:/// '
147147 $myParameterData [" is_local_file" ] = $true
148148 } else {
149149 $myParameterData [" url" ] = " $uri "
You can’t perform that action at this time.
0 commit comments