@saooti/octopus-sdk 31.0.50 → 31.0.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -641,3 +641,6 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
641
641
  * 31.0.48 Icones change
642
642
  * 31.0.49 Style select
643
643
  * 31.0.50 Améliorations responsive
644
+ * 31.0.51 Newest
645
+ * 31.0.52 Locale
646
+ * 31.0.53 Correction playerLogic
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saooti/octopus-sdk",
3
- "version": "31.0.50",
3
+ "version": "31.0.53",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -33,6 +33,7 @@
33
33
  class="mx-2"
34
34
  />
35
35
  <div class="d-flex justify-content-between">
36
+ <div class="useless-div-for-podcastmaker" />
36
37
  <router-link
37
38
  v-if="!isPodcastmaker"
38
39
  :to="{
@@ -50,8 +50,8 @@ export const playerLogic = defineComponent({
50
50
  if(this.media || !this.podcast || !this.podcast.availability.visibility ||this.listenError){
51
51
  this.audioUrlToPlay = this.audioUrl;
52
52
  }
53
- if(!this.podcast){return;}
54
- const response = await octopusApi.fetchDataPublic<{location:string, downloadId: number}>(0,"podcast/download/register/"+ this.audioUrl);
53
+ if(!this.podcast || !this.podcast.availability.visibility ||this.listenError){return;}
54
+ const response = await octopusApi.fetchDataPublic<{location:string, downloadId: number}>(0,"podcast/download/register/"+ this.getAudioUrlParameters());
55
55
  this.setDownloadId(response.downloadId.toString());
56
56
  this.audioUrlToPlay = response.location;
57
57
  },
@@ -101,12 +101,8 @@ export const playerLogic = defineComponent({
101
101
  }
102
102
  return domain;
103
103
  },
104
- getAudioUrl(): string{
105
- if (this.media) return this.media.audioUrl? this.media.audioUrl:"";
104
+ getAudioUrlParameters(): string{
106
105
  if (!this.podcast) return '';
107
- if (!this.podcast.availability.visibility)
108
- return this.podcast.audioStorageUrl;
109
- if (this.listenError) return this.podcast.audioStorageUrl;
110
106
  const parameters = [];
111
107
  parameters.push('origin=octopus');
112
108
  parameters.push('listenerId='+this.getListenerId());
@@ -123,6 +119,14 @@ export const playerLogic = defineComponent({
123
119
  }
124
120
  return this.podcast.podcastId + '.mp3?' + parameters.join('&');
125
121
  },
122
+ getAudioUrl(): string{
123
+ if (this.media) return this.media.audioUrl? this.media.audioUrl:"";
124
+ if (!this.podcast) return '';
125
+ if (!this.podcast.availability.visibility)
126
+ return this.podcast.audioStorageUrl;
127
+ if (this.listenError) return this.podcast.audioStorageUrl;
128
+ return this.getAudioUrlParameters();
129
+ },
126
130
  reInitPlayer():void{
127
131
  this.setDownloadId(null);
128
132
  this.listenError = false;
package/src/locale/fr.ts CHANGED
@@ -297,7 +297,7 @@ export default{
297
297
  "Download started": 'Téléchargement lancé',
298
298
  'From RSS': "Issu d'un flux RSS",
299
299
  "User menu":"Menu utilisateur",
300
- 'Podcast tags': "Mot-clé de l'épisode",
300
+ 'Podcast tags': "Mots-clés de l'épisode",
301
301
  "You do not have the right to access this page":"Vous n’avez pas le droit d’accéder à cette page",
302
302
  "Enlarge":"Agrandir",
303
303
  "Reduce":"Réduire",