Search found 7 matches
- 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...
- Mon Sep 04, 2006 4:25 pm
- Forum: Implemented
- Topic: [PATCH] Better Filename Parsing
- Replies: 12
- Views: 21737
- Mon Sep 04, 2006 4:15 pm
- Forum: Implemented
- Topic: [PATCH] Better Filename Parsing
- Replies: 12
- Views: 21737
- Sat Sep 02, 2006 2:34 pm
- Forum: Implemented
- Topic: [PATCH] Better Filename Parsing
- Replies: 12
- Views: 21737
- 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...
- 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...
- 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...