Post Reply 
Artwork search request - album.jpg
07-01-2022, 21:22 (This post was last modified: 07-01-2022 21:34 by edj.)
Post: #1
Artwork search request - album.jpg
According to this page, a file named album.jpg, album.png, etc would not be considered by MS to be artwork.

https://minimserver.com/ug-library.html#Artwork

Could album.*** be added to the list of files that MS searches for as valid artwork?

I would assume this is a fairly common naming convention - and I have thousands of files like it that I don't know how to change at once!
Find all posts by this user
Quote this message in a reply
07-01-2022, 22:19
Post: #2
RE: Artwork search request - album.jpg
To my knowledge, this is not a common naming convention. If you are able to access your library from a Windows PC, I can provide a bulk rename script to help you rename these files.
Find all posts by this user
Quote this message in a reply
07-01-2022, 22:35
Post: #3
RE: Artwork search request - album.jpg
Hi Simon, yep I manage my music from a Windows computer so a bulk rename script would be most welcome, thank you.
Find all posts by this user
Quote this message in a reply
07-01-2022, 22:58
Post: #4
RE: Artwork search request - album.jpg
The following PowerShell commands should do what you need. You need to replace X:\MyLibrary with the path to your library. This can be a network path in the format \\device\librarypath.

Get-ChildItem -Path "X:\MyLibrary" -Recurse -Filter "album.jpg" | Rename-Item -NewName { $_.Name -replace "album.jpg","folder.jpg" }
Get-ChildItem -Path "X:\MyLibrary" -Recurse -Filter "album.png" | Rename-Item -NewName { $_.Name -replace "album.png","folder.png" }

I suggest you try this first on a copy of a small subset of your library to make sure it is working as intended.
Find all posts by this user
Quote this message in a reply
07-01-2022, 22:59
Post: #5
RE: Artwork search request - album.jpg
Thank you very much Simon - I'll test it out in the morning!
Find all posts by this user
Quote this message in a reply
16-01-2022, 21:17
Post: #6
RE: Artwork search request - album.jpg
Did this work for you?
Find all posts by this user
Quote this message in a reply
17-01-2022, 19:11 (This post was last modified: 17-01-2022 19:12 by edj.)
Post: #7
RE: Artwork search request - album.jpg
Unfortunately not. Running the first command i received this error:

Code:
PS C:\Users\xxx> Get-ChildItem -Path "D:\mus" -Recurse -Filter "album.jpg" | Rename-Item -NewName { $_.Name -replace "album.jpg","folder.jpg" }
Rename-Item : Cannot create a file when that file already exists.
At line:1 char:61
+ ... lbum.jpg" | Rename-Item -NewName { $_.Name -replace "album.jpg","fold ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : WriteError: (D:\mus\1-9\13\1...s EP]\album.jpg:String) [Rename-Item], IOException
    + FullyQualifiedErrorId : RenameItemIOError,Microsoft.PowerShell.Commands.RenameItemCommand

The folder it's looking in above has four mp3s and a file called album.jpg.

I have absolutely no idea what could be going wrong!!
Find all posts by this user
Quote this message in a reply
17-01-2022, 20:21 (This post was last modified: 17-01-2022 20:28 by simoncn.)
Post: #8
RE: Artwork search request - album.jpg
The message seems to be saying the folder D:\mus\1-9\13\1...s EP] already contains a file named folder.jpg. Are you sure this isn't the case?

Edit: I tried this myself. If the folder already contains a folder.jpg file, I get the error you have posted. If the folder doesn't contain a folder.jpg file, the command works as expected.
Find all posts by this user
Quote this message in a reply
17-01-2022, 22:25
Post: #9
RE: Artwork search request - album.jpg
There's definitely not a file called folder.jpg:

Code:
PS D:\mus\1-9\13\13MUSIC005D [Lightless EP]> dir


    Directory: D:\mus\1-9\13\13MUSIC005D [Lightless EP]


Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
-a----         16 Jun 11   9:16 AM         165387 album.jpg
-a----          7 Feb 14  11:19 PM       16707086 fanu - Last Solo Before Dawn.mp3
-a----          7 Feb 14  11:19 PM       17650349 fanu - Leave The Natural World Behind.mp3
-a----          7 Feb 14  11:19 PM       15400547 fanu - Orient Dawn.mp3
-a----          4 Jan 16  10:57 PM       16986112 fanu - shogun remix.mp3
Find all posts by this user
Quote this message in a reply
18-01-2022, 00:53
Post: #10
RE: Artwork search request - album.jpg
If this is a pain to troubleshoot then don't worry, I can do it the manual way!
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


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