diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-12-15 07:28:51 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-12-15 07:28:51 +0000 |
commit | 5d98a104bc750053e90da5f8dd9664e0433f900d (patch) | |
tree | cae71f304523d7d9572fe809d04210248cac49c0 /bin | |
parent | 454003fa93f4d511694fc7234d2f769194b13ede (diff) | |
download | ampache-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')
-rw-r--r-- | bin/sort_files.inc | 3 |
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 */ |