Add .mp3 to podcast URLs

This commit is contained in:
2022-02-28 11:16:24 +01:00
parent 52de4fcaaa
commit f869ee5726
2 changed files with 4 additions and 2 deletions

View File

@@ -23,7 +23,7 @@ class Podcast extends Model {
parent::__construct($data);
parent::ConvertToDateTime($this->created);
$this->url = '/' . $this->id . '/' . parent::url_slug($this->title);
$this->url = '/' . $this->id . '/' . parent::url_slug($this->title) . '.mp3';
if($this->soundfilename) {
// Only generate when not constructing from a JSON object
$this->key = sha1($this->id . ':' . date('Y-m-d') . ':' . $this->soundfilename);