Post Reply 
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.

Just modify the locations at the top of the script (4 in total) and run it in powershell (copy the entire script and paste it into the console).

I may enhance the script to handle the BubbleUPnP zip export as that's how my dad exports his, but I'm not sure yet.

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: (Smile [], MethodInvocationException
+ FullyQualifiedErrorId : ArgumentOutOfRangeException
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: playlists changed after minim refresh - AnthonyEd - 22-05-2025 18:19

Forum Jump:


User(s) browsing this thread: 1 Guest(s)