mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-11 02:36:42 +02:00
refactor: clean episode analytics url by removing podcasts/ prefix
This commit is contained in:
parent
3a7d97d660
commit
8d9bba4e9f
2 changed files with 5 additions and 2 deletions
|
|
@ -296,10 +296,13 @@ class Episode extends Entity
|
|||
{
|
||||
helper('analytics');
|
||||
|
||||
// remove 'podcasts/' from audio file path
|
||||
$strippedAudioFilePath = substr($this->audio_file_path, 9);
|
||||
|
||||
return generate_episode_analytics_url(
|
||||
$this->podcast_id,
|
||||
$this->id,
|
||||
$this->audio_file_path,
|
||||
$strippedAudioFilePath,
|
||||
$this->audio_file_duration,
|
||||
$this->audio_file_size,
|
||||
$this->audio_file_header_size,
|
||||
|
|
|
|||
|
|
@ -77,6 +77,6 @@ class EpisodeAnalyticsController extends Controller
|
|||
$serviceName,
|
||||
);
|
||||
|
||||
return redirect()->to($this->config->getAudioFileUrl($audioFilePath));
|
||||
return redirect()->to($this->config->getAudioFileUrl(['podcasts', ...$audioFilePath]));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue