Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  AlbumArt naming
« previous next »
  • Print
Pages: [1]

Author Topic: AlbumArt naming  (Read 1620 times)

Offline yapper

  • Rockbox Expert
  • Member
  • *
  • Posts: 794
AlbumArt naming
« on: November 15, 2008, 02:57:26 PM »
One of the options for Album Art naming listed on the wiki at http://www.rockbox.org/twiki/bin/view/Main/AlbumArt#Where_To_Put_The_Images is
Quote
/.rockbox/albumart/ artist-albumtitle .bmp

This implies the hyphen is used to delimit the artist from the albumtitle, but how does this work if the artist name includes a hyphen (e.g. B-52's)? Obviously the same thing could occur in the album title too.
Logged
G2 iPod 20GB / Sansa c240 v1 + 2GB microSD / Sansa c250 v1 / Sansa e250 v1 + 8GB microSDHC / Sansa Fuze v2 + 32GB microSDHC

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: AlbumArt naming
« Reply #1 on: November 15, 2008, 04:20:27 PM »
If it's not making assumptions it should only be a problem in a situation such as artist being "B" and the album being "52s-Long" while the other is "B-52s" and "Long." But it may still need fixing if it currently makes assumptions and parses filenames in advance rather than doing it the simple way. You could test the actual behaviour for yourself and let us know if there's and actual problem or not...
Logged

Offline yapper

  • Rockbox Expert
  • Member
  • *
  • Posts: 794
Re: AlbumArt naming
« Reply #2 on: November 15, 2008, 06:24:02 PM »
Thinking about it a bit more, the code is presumably simply concatenating the artist data (from the tag) with the albumtitle (again from the tag), and then looking in the albumart subdirectory for a match, so the presence of hyphens shouldn't be a problem unless a conflict arises such as the example you suggested.

So far I haven't found any problems with 'non-conflict' cases, even when hypens appear within the artitst or albumtitle tags.
Logged
G2 iPod 20GB / Sansa c240 v1 + 2GB microSD / Sansa c250 v1 / Sansa e250 v1 + 8GB microSDHC / Sansa Fuze v2 + 32GB microSDHC

Offline rasher

  • Developer
  • Member
  • *
  • Posts: 295
    • My Rockbox stuff
Re: AlbumArt naming
« Reply #3 on: December 09, 2008, 09:13:25 PM »
Quote from: Llorean on November 15, 2008, 04:20:27 PM
If it's not making assumptions it should only be a problem in a situation such as artist being "B" and the album being "52s-Long" while the other is "B-52s" and "Long." But it may still need fixing if it currently makes assumptions and parses filenames in advance rather than doing it the simple way.
As the author of this code, I can say with some confidence, that it does not. The only problem, as you say, is if two artist/album combinations end up the same. I find that highly unlikely to occur through real use. If it does happen, I'm prepared to tell the user to simply put albumart inside the album folder for these two albums.
Logged

Download my Rockbox stuff: Prebuilt Windows simulators, Fonts, and more!

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  AlbumArt naming
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.072 seconds with 15 queries.