@srgssr/pillarbox-web 1.20.0 → 1.21.1

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.
@@ -107,7 +107,7 @@ function _objectWithoutProperties(source, excluded) {
107
107
  return target;
108
108
  }
109
109
 
110
- const version = "1.19.1";
110
+ const version = "1.21.0";
111
111
 
112
112
  /** @import VJSPlayer from 'video.js/dist/types/player' */
113
113
  /** @import AudioTrack from 'video.js/dist/types/tracks/audio-track' */
@@ -2627,7 +2627,8 @@ class MediaComposition {
2627
2627
  */
2628
2628
  getChapters() {
2629
2629
  const AUDIO = 'AUDIO';
2630
- if (this.getMainChapter().mediaType === AUDIO) return [];
2630
+ const EPISODE = 'EPISODE';
2631
+ if (this.getMainChapter().mediaType === AUDIO || this.getMainChapter().type !== EPISODE) return [];
2631
2632
  return this.chapterList.filter(({
2632
2633
  mediaType
2633
2634
  }) => mediaType !== AUDIO);
@@ -2995,6 +2996,7 @@ const GEOBLOCK$4 = "Dieser Inhalt ist ausserhalb der Schweiz nicht verfügbar.";
2995
2996
  const JOURNALISTIC$4 = "Dieser Inhalt steht aus publizistischen Gründen vorübergehend nicht zur Verfügung.";
2996
2997
  const LEGAL$4 = "Dieser Inhalt ist aus rechtlichen Gründen nicht verfügbar.";
2997
2998
  const STARTDATE$4 = "Dieser Inhalt ist noch nicht verfügbar. Bitte probieren Sie es später noch einmal.";
2999
+ const VPNORPROXYDETECTED$4 = "Dieser Inhalt ist mit VPN oder Proxy nicht abspielbar.";
2998
3000
  const UNKNOWN$4 = "Dieser Inhalt ist nicht verfügbar.";
2999
3001
  const pillarboxLang$4 = {
3000
3002
  AGERATING12: AGERATING12$4,
@@ -3005,6 +3007,7 @@ const pillarboxLang$4 = {
3005
3007
  JOURNALISTIC: JOURNALISTIC$4,
3006
3008
  LEGAL: LEGAL$4,
3007
3009
  STARTDATE: STARTDATE$4,
3010
+ VPNORPROXYDETECTED: VPNORPROXYDETECTED$4,
3008
3011
  UNKNOWN: UNKNOWN$4
3009
3012
  };
3010
3013
 
@@ -3154,6 +3157,7 @@ const GEOBLOCK$3 = "This content is not available outside Switzerland.";
3154
3157
  const JOURNALISTIC$3 = "This content is temporarily unavailable for journalistic reasons.";
3155
3158
  const LEGAL$3 = "This content is not available due to legal restrictions.";
3156
3159
  const STARTDATE$3 = "This content is not available yet.";
3160
+ const VPNORPROXYDETECTED$3 = "This content cannot be played while using a VPN or a proxy.";
3157
3161
  const UNKNOWN$3 = "This content is not available.";
3158
3162
  const pillarboxLang$3 = {
3159
3163
  AGERATING12: AGERATING12$3,
@@ -3164,6 +3168,7 @@ const pillarboxLang$3 = {
3164
3168
  JOURNALISTIC: JOURNALISTIC$3,
3165
3169
  LEGAL: LEGAL$3,
3166
3170
  STARTDATE: STARTDATE$3,
3171
+ VPNORPROXYDETECTED: VPNORPROXYDETECTED$3,
3167
3172
  UNKNOWN: UNKNOWN$3
3168
3173
  };
3169
3174
 
@@ -3312,6 +3317,7 @@ const GEOBLOCK$2 = "La RTS ne dispose pas des droits de diffusion en dehors de l
3312
3317
  const JOURNALISTIC$2 = "Ce contenu est temporairement indisponible pour des raisons éditoriales.";
3313
3318
  const LEGAL$2 = "Pour des raisons juridiques, ce contenu n'est pas disponible.";
3314
3319
  const STARTDATE$2 = "Ce contenu n'est pas encore disponible. Veuillez réessayer plus tard.";
3320
+ const VPNORPROXYDETECTED$2 = "Ce contenu ne peut pas être lu avec un VPN ou un proxy.";
3315
3321
  const UNKNOWN$2 = "Ce contenu n'est actuellement pas disponible.";
3316
3322
  const pillarboxLang$2 = {
3317
3323
  AGERATING12: AGERATING12$2,
@@ -3322,6 +3328,7 @@ const pillarboxLang$2 = {
3322
3328
  JOURNALISTIC: JOURNALISTIC$2,
3323
3329
  LEGAL: LEGAL$2,
3324
3330
  STARTDATE: STARTDATE$2,
3331
+ VPNORPROXYDETECTED: VPNORPROXYDETECTED$2,
3325
3332
  UNKNOWN: UNKNOWN$2
3326
3333
  };
3327
3334
 
@@ -3459,6 +3466,7 @@ const GEOBLOCK$1 = "Questo media non è disponibile fuori dalla Svizzera.";
3459
3466
  const JOURNALISTIC$1 = "Questo contenuto è temporaneamente non disponibile per motivi editoriali.";
3460
3467
  const LEGAL$1 = "Il contenuto non è fruibile a causa di restrizioni legali.";
3461
3468
  const STARTDATE$1 = "Il contenuto non è ancora disponibile. Per cortesia prova più tardi.";
3469
+ const VPNORPROXYDETECTED$1 = "Questo contenuto non può essere riprodotto con VPN o proxy.";
3462
3470
  const UNKNOWN$1 = "Questo media non è disponibile.";
3463
3471
  const pillarboxLang$1 = {
3464
3472
  AGERATING12: AGERATING12$1,
@@ -3469,6 +3477,7 @@ const pillarboxLang$1 = {
3469
3477
  JOURNALISTIC: JOURNALISTIC$1,
3470
3478
  LEGAL: LEGAL$1,
3471
3479
  STARTDATE: STARTDATE$1,
3480
+ VPNORPROXYDETECTED: VPNORPROXYDETECTED$1,
3472
3481
  UNKNOWN: UNKNOWN$1
3473
3482
  };
3474
3483
 
@@ -3519,6 +3528,7 @@ const GEOBLOCK = "Quest cuntegn n'è betg disponibel ordaifer la Svizra.";
3519
3528
  const JOURNALISTIC = "Quest cuntegn na stat ad interim betg a disposiziun per motivs publicistics.";
3520
3529
  const LEGAL = "Quest cuntegn n'è betg disponibel perquai ch'el è scadì.";
3521
3530
  const STARTDATE = "Quest cuntegn n'è betg anc disponibel. Empruvai pli tard.";
3531
+ const VPNORPROXYDETECTED = "Quest cuntegn na po betg vegnir reproducì cun VPN ni proxy activà.";
3522
3532
  const UNKNOWN = "Quest cuntegn n'è betg disponibel.";
3523
3533
  const pillarboxLang = {
3524
3534
  "Audio Player": "Audio-Player",
@@ -3611,6 +3621,7 @@ const pillarboxLang = {
3611
3621
  JOURNALISTIC: JOURNALISTIC,
3612
3622
  LEGAL: LEGAL,
3613
3623
  STARTDATE: STARTDATE,
3624
+ VPNORPROXYDETECTED: VPNORPROXYDETECTED,
3614
3625
  UNKNOWN: UNKNOWN
3615
3626
  };
3616
3627