• AnyStream is having some DRM issues currently, Netflix is not available in HD for the time being.
    Situations like this will always happen with AnyStream: streaming providers are continuously improving their countermeasures while we try to catch up, it's an ongoing cat-and-mouse game. Please be patient and don't flood our support or forum with requests, we are working on it 24/7 to get it resolved. Thank you.

Question [bug 1525] [Prime US] AS is eating up the series name prefix on some epis

0x0x0x0x0

Well-Known Member
Thread Starter
Joined
Sep 21, 2020
Messages
1,343
Likes
605
Secrets of the Universe on Prime/US, series prefix is missing on episodes 1&2 while 3 onward are appropriately prefixed with the series name


Edit: now featuring a much smaller (than 50MB) log file ;)
 

Attachments

  • AnyStream_1.5.2.5-no-series-prefix.astlog
    471 KB · Views: 3
Last edited:
If you have a lot of files you need to add a prefix to there's a program called Bulk Rename Utility it's free and it does what the title says.
 
If you have a lot of files you need to add a prefix to there's a program called Bulk Rename Utility it's free and it does what the title says.

That's good if you need something complicated, but with trivial things you can just:
Code:
gci -filter *mp4 | ?{$_.name -notlike "^prefix"} | rename-item -newname {"prefix"+ $_.name} -whatif

always run destructive powershell commands with -whatif first ;)
 
Don't worry 007, we will get to it, you have my word.:unsure:
 
Don't worry 007, we will get to it, you have my word.:unsure:

I see what you meant, I know you will ;)

but for the adventurous:-

Taking all the "fun and adventure" of mindlessly looking through the manuals in frustration attempting to figure out what each thing does eventually to have that satisfying "AHA!" moment! :p (Do I sound like Sheldon Cooper there?!)

Alright, alright, I'll give you some hints:-

Code:
https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/get-childitem?view=powershell-7.3
https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/where-object?view=powershell-7.3
https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_comparison_operators?view=powershell-7.3
https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/rename-item?view=powershell-7.3
https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_pipelines?view=powershell-7.3
https://learn.microsoft.com/en-us/powershell/scripting/learn/ps101/04-pipelines?view=powershell-7.3
 
This one gives a better result for me
Code:
gci -filter *mp4 | ?{$_.name -notlike "prefix*"} | rename-item -newname {"prefix"+ $_.name} -whatif
 
This one gives a better result for me
Code:
gci -filter *mp4 | ?{$_.name -notlike "prefix*"} | rename-item -newname {"prefix"+ $_.name} -whatif

Yup, that's the danger of writing one-liners at 2am! In my one-liner, -notlike should really be -notmatch (you do want to anchor prefix at the start of the string), yours is correct too, of course ;)
 
Back
Top