Skip to content

Commit

Permalink
Merge pull request #28 from ipkpjersi/develop
Browse files Browse the repository at this point in the history
Updated anime list filename format
  • Loading branch information
ipkpjersi authored Aug 13, 2024
2 parents 71b179c + 3c0c4af commit 2cca5fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Http/Controllers/AnimeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -833,11 +833,12 @@ public function exportAnimeList(Request $request, AnimeListExportService $export
]);

$userId = Auth::id();
$username = Auth::user()->username;
$result = $exporter->export($exportType, $userId);

// Generate filename with date
$currentDateTime = Carbon::now()->format('Y-m-d_H-i-s');
$fileNameBase = "AnimeList_{$currentDateTime}";
$fileNameBase = "AnimeList_{$username}_{$currentDateTime}";

if ($exportType === 'myanimelist') {
$fileName = "{$fileNameBase}.xml";
Expand Down

0 comments on commit 2cca5fe

Please sign in to comment.