File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 8
8
[string]$mediatype
9
9
)
10
10
11
- $CurrentScriptVersion = "1.2.29 "
11
+ $CurrentScriptVersion = "1.2.30 "
12
12
$global:HeaderWritten = $false
13
13
$ProgressPreference = 'SilentlyContinue'
14
14
@@ -7742,7 +7742,9 @@ else {
7742
7742
$tvdbpattern = 'tvdb://(\d+)'
7743
7743
if ($Metadata.MediaContainer.$contentquery.Location) {
7744
7744
$location = $Metadata.MediaContainer.$contentquery.Location.path
7745
- $location = $location.replace('\\?\', '')
7745
+ if ($location){
7746
+ $location = $location.replace('\\?\', '')
7747
+ }
7746
7748
if ($location.count -gt '1') {
7747
7749
$location = $location[0]
7748
7750
$MultipleVersions = $true
@@ -7774,7 +7776,9 @@ else {
7774
7776
}
7775
7777
Else {
7776
7778
$location = $Metadata.MediaContainer.$contentquery.media.part.file
7777
- $location = $location.replace('\\?\', '')
7779
+ if ($location){
7780
+ $location = $location.replace('\\?\', '')
7781
+ }
7778
7782
if ($location.count -gt '1') {
7779
7783
Write-Entry -Subtext "Multi File Locations: $location" -Path $global:ScriptRoot\Logs\Scriptlog.log -Color Cyan -log Debug
7780
7784
$location = $location[0]
Original file line number Diff line number Diff line change 1
- 1.2.29
1
+ 1.2.30
You can’t perform that action at this time.
0 commit comments