summaryrefslogtreecommitdiffstats
path: root/bin/sort_files.inc
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-12-15 07:28:51 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-12-15 07:28:51 +0000
commit5d98a104bc750053e90da5f8dd9664e0433f900d (patch)
treecae71f304523d7d9572fe809d04210248cac49c0 /bin/sort_files.inc
parent454003fa93f4d511694fc7234d2f769194b13ede (diff)
downloadampache-5d98a104bc750053e90da5f8dd9664e0433f900d.tar.gz
ampache-5d98a104bc750053e90da5f8dd9664e0433f900d.tar.bz2
ampache-5d98a104bc750053e90da5f8dd9664e0433f900d.zip
made downloads counted in stats fixes ticket #12 tweaked filename to be reformated to match the catalog rename pattern
Diffstat (limited to 'bin/sort_files.inc')
-rw-r--r--bin/sort_files.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/sort_files.inc b/bin/sort_files.inc
index ea3b4807..cb01e7f1 100644
--- a/bin/sort_files.inc
+++ b/bin/sort_files.inc
@@ -60,8 +60,9 @@ while ($r = mysql_fetch_row($db_results)) {
foreach ($songs as $song) {
/* Find this poor song a home */
$song->format_song();
+ $song->format_pattern();
$directory = sort_find_home($song,$catalog->sort_pattern,$catalog->path);
- $filename = sort_find_filename($song,$catalog->rename_pattern);
+ $filename = $song->f_file;
$fullpath = $directory . "/" . $filename;
/* Check for Demo Mode */