diff --git a/import_albums.php b/import_albums.php index 60dbd2a..e116f81 100644 --- a/import_albums.php +++ b/import_albums.php @@ -175,9 +175,9 @@ for ($i = 0; $i < $num_photos; $i += 50) [ 'id_user_uploaded' => $old_user_id_to_new_user_id[$photo['owner_id']], 'subdir' => $dirnames_by_old_album_id[$photo['parent_id']], - 'filename' => $photo['name'], + 'filename' => str_replace('#', '', $photo['name']), 'title' => $photo['title'], - 'slug' => $photo['relative_url_cache'], + 'slug' => str_replace('#', '', urldecode($photo['relative_url_cache'])), 'mimetype' => $photo['mime_type'], 'image_width' => !empty($photo['width']) ? $photo['width'] : 'NULL', 'image_height' => !empty($photo['height']) ? $photo['height'] : 'NULL',