|
playlists changed after minim refresh
|
|
22-05-2025, 18:19
Post: #19
|
|||
|
|||
RE: playlists changed after minim refresh
(21-05-2025 14:49)simbun Wrote: I had a couple of hours this morning to look at the powershell script and I think it's sorted. It looks for .m3u8 playlists in the $sourceDirectory and writes them to the $targetDirectory. I get some errors when running this although it does produce a relative playlist. After a rescan and then looking at my control point it looks as though my playlist is empty. Error below: PS C:\Users\xxxx_> foreach($item in $contentDirectory) >> { >> $folders = $item -split "\$separator" | Where-Object { $_ -ne "" } >> $cdLookup.Add( $folders[$folders.Count - 1], $item.Substring( 0, $item.TrimEnd("$separator").LastIndexOf("$separator")) ) >> } Exception calling "Substring" with "2" argument(s): "Length cannot be less than zero. Parameter name: length" At line:4 char:3 + $cdLookup.Add( $folders[$folders.Count - 1], $item.Substring( 0, $i ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: ( [], MethodInvocationException+ FullyQualifiedErrorId : ArgumentOutOfRangeException |
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)

Search
Member List
Calendar
Help


[], MethodInvocationException
