Search found 7 matches

by shartte
Mon Sep 04, 2006 9:30 pm
Forum: Implemented
Topic: [PATCH] Better Filename Parsing
Replies: 12
Views: 21737

I have slightly modified the title parsing and added a fallback to parse titles which dont contain artist information: // START OF PATCH // Funny processing stuff // Check for the number of separators $separators = substr_count($temp, '-'); $featuring = ''; // At least two parts are required. if ($s...
by shartte
Mon Sep 04, 2006 4:25 pm
Forum: Implemented
Topic: [PATCH] Better Filename Parsing
Replies: 12
Views: 21737

I'll fix it once I'm home from work!

cu,
Sebastian
by shartte
Mon Sep 04, 2006 4:15 pm
Forum: Implemented
Topic: [PATCH] Better Filename Parsing
Replies: 12
Views: 21737

Jep that sounds good.

I don't even remember why i used \s* instead of \s+ ;-)

cu,
Sebastian
by shartte
Sat Sep 02, 2006 2:34 pm
Forum: Implemented
Topic: [PATCH] Better Filename Parsing
Replies: 12
Views: 21737

Is there a specific reason you're not reading the id3 tags at all right now? There are two reasons for not using ID tags: There is no uniform ID tag for an "album artist". This is handy for mix/compilation albums, like this: Album artist: DJ Tiesto Artist: York Track: The reachers of civi...
by shartte
Mon Aug 28, 2006 4:25 pm
Forum: Implemented
Topic: [PATCH] Better Filename Parsing
Replies: 12
Views: 21737

Thanks for the help Shartte, I will definitely take a look at your code. If everything is working correctly I will implement it in the next version of netjukebox. I will post my finding in this tread later. Willem Thanks and go ahead. My next project would be automatic genre assignment (without ove...
by shartte
Sun Aug 27, 2006 8:31 pm
Forum: Implemented
Topic: [PATCH] Better Filename Parsing
Replies: 12
Views: 21737

This is basically the same patch but for album directory names: $year = 'NULL'; $month = 'NULL'; preg_match('/^(?:(\d{4,6})\s*-\s*)?(.+)$/', $album, $matches); print_r($matches); if (strlen($matches[1]) == 6) { $year = substr($matches[1], 0, 4); $month = substr($matches[1], -2); } else if (strlen($m...
by shartte
Sun Aug 27, 2006 8:09 pm
Forum: Implemented
Topic: [PATCH] Better Filename Parsing
Replies: 12
Views: 21737

[PATCH] Better Filename Parsing

Hi. Since my MP3 collection had several files where the title contained a dash ('-'), i had to manually improve the filename parsing since the artist always turned up to be '**** UNKNOWN FILENAME STRUCTURE***' (or sth like that). The new code would be like this: (update.php, around line 746) $cd = 1...