fix: episode id not being added when monitor downloads episode

This commit is contained in:
2025-07-09 18:15:55 -05:00
parent bb6dcdef30
commit d2e7650b6c
2 changed files with 30 additions and 4 deletions

View File

@@ -0,0 +1,12 @@
<?php
namespace App\Base\Util;
class EpisodeId
{
public static function fromSeasonEpisodeNumbers(int $season, int $episode): string
{
return "S". str_pad($season, 2, "0", STR_PAD_LEFT) .
"E". str_pad($episode, 2, "0", STR_PAD_LEFT);
}
}