mirror of
https://code.castopod.org/adaures/castopod
synced 2025-04-19 13:01:19 +00:00
refactor: clean episode analytics url by removing podcasts/
prefix
This commit is contained in:
parent
3a7d97d660
commit
8d9bba4e9f
@ -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…
x
Reference in New Issue
Block a user