Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Cover Art Inventory Spreadsheet  (Read 1878 times)

0 Members and 1 Guest are viewing this topic.

GadgetGeek

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 414
  • Last login:September 03, 2014, 09:59:01 am
  • whatever
Cover Art Inventory Spreadsheet
« on: June 11, 2005, 10:48:39 pm »
OK, initial attempt at this.  Attached is an excel spreadsheet that will scan the specified directory looking for artwork.  You can specify a default image (such as cover.jpg) and it will inform you if it exists or not and it will also list off any additional artwork (jpg format) found off to the right.  The Results Offset is for which column on the CoverInfo tab for the results to start in (6 would start in F).  You need to have full write access to the Working Directory specified.
Going forward, I'm going to attempt to replace the "Exists" result with the image size (ex. 300x300) for the default image.  I think I've found some sample code that will allow that, but have yet to test it.
This WON'T go finding additional artwork for you.  There are several hreads already devoted to that.
Constructive feedback appreciated.  Enjoy

Oh, and it won't let me upload .zip files, to once you download this .txt file, rename it to .zip and all should be fine.

edited to change file to v02.  Returns dimensions of default images.
« Last Edit: June 12, 2005, 10:03:17 pm by GadgetGeek »

JackTucky

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1613
  • Last login:January 04, 2021, 12:00:58 pm
  • Soon I will post that I am a triathalete
Re: Cover Art Inventory Spreadsheet
« Reply #1 on: June 12, 2005, 06:59:36 pm »
sweet!  I'll test tonight or tomorrow and let you know how I do.

Thanks

Art
Well, that's where we go a-ridin' into town, a whampin' and whompin' every livin' thing that moves within an inch of its life. Except the women folks, of course.

JackTucky

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1613
  • Last login:January 04, 2021, 12:00:58 pm
  • Soon I will post that I am a triathalete
Re: Cover Art Inventory Spreadsheet
« Reply #2 on: June 12, 2005, 07:09:05 pm »
heh heh.  couldn't wait.  I'm getting this error:

Runtime error 52, bad file name or number.  If I click debug:

it's errored on the IF dir line:

  With Range("coverinfo!a3")
    Do
      ' check for the default
      If Dir(.Offset(i, 0).Value & "\" & strDefaultCover) <> "" Then

Art
Well, that's where we go a-ridin' into town, a whampin' and whompin' every livin' thing that moves within an inch of its life. Except the women folks, of course.

GadgetGeek

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 414
  • Last login:September 03, 2014, 09:59:01 am
  • whatever
Re: Cover Art Inventory Spreadsheet
« Reply #3 on: June 12, 2005, 08:43:16 pm »
is it erring on the first file?  If you add "On Error Resume Next" to that subroutine (near the beginning somewhere) does that resolve the issue?

I've tested the logic for image dimensions and I'm hoping to integrate it into the sheet later tonite.

GadgetGeek

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 414
  • Last login:September 03, 2014, 09:59:01 am
  • whatever
Re: Cover Art Inventory Spreadsheet
« Reply #4 on: June 12, 2005, 10:06:12 pm »
OK, I've updated the spreadsheet to (optionally) return the image dimensions of the default coverart.  For example, if the field is set to yes and the default image name is cover.jpg, it would return 300x300 (or whatever it actually is) if it exists, or "missing" if it doesn't.  If set to "no", it returns "Exists" or "missing" as appropriate.
The new version is v02 and it is attached to the first message of the thread.
As before, once downloaded, rename from .txt to .zip and all should be fine.

JackTucky

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1613
  • Last login:January 04, 2021, 12:00:58 pm
  • Soon I will post that I am a triathalete
Re: Cover Art Inventory Spreadsheet
« Reply #5 on: June 13, 2005, 09:28:14 am »
Version 1 continued when I put that error handling code in there.  However, it's not navigating down far enough in my directory tree to look for covers.  My directory setup is:

g:\music\artist\album\music & covers

In a few cases, I don't have an album directory, it works then.

Version 2 fails on this code:

 Range("coverinfo!a3:az65536").ClearContents
  ' now load the listing file
  Open strWork & "coverlist.txt" For Input As #1
  i = 0
  With Range("coverinfo!a3")
    Do
Line Input #1, inrec
      .Offset(i, 0).Value = inrec
      i = i + 1
    Loop Until EOF(1)
  End With
  Close #1
  ' now split it on directories
  Range("CoverInfo!A3:A65536").TextToColumns Destination:=Range("CoverInfo!B3"), DataType:=xlDelimited, _
        TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=False, _
        Semicolon:=False, Comma:=False, Space:=False, Other:=True, OtherChar _
        :="\"
End Sub


Thanks.  This looks like it will be really valuable.

Art
Well, that's where we go a-ridin' into town, a whampin' and whompin' every livin' thing that moves within an inch of its life. Except the women folks, of course.

GadgetGeek

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 414
  • Last login:September 03, 2014, 09:59:01 am
  • whatever
Re: Cover Art Inventory Spreadsheet
« Reply #6 on: June 13, 2005, 12:35:50 pm »
Is it failing on the first record?
Could you send me the coverlist.txt file?  That might help me see what might be going on.
Send it to arcade at welander dot com. Hopefully I'll get the chance to look at it tonite.

As for the not navigating far enough...if you look at the data I left in the sheet that is downloaded, you will see that it first lists all the artist directories, then it lists all the artist\album directories.  These first directories won't see anything, and I've toyed with deleting them, but I was wanting to get something up and running first, and I was thinking that maybe someone might have a non-consistent directory structure and this would still find the images this way.

JackTucky

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1613
  • Last login:January 04, 2021, 12:00:58 pm
  • Soon I will post that I am a triathalete
Re: Cover Art Inventory Spreadsheet
« Reply #7 on: June 13, 2005, 02:47:34 pm »
Cool, now I see that.  I'm sending my coverlist.txt file.

Art
Well, that's where we go a-ridin' into town, a whampin' and whompin' every livin' thing that moves within an inch of its life. Except the women folks, of course.