Merge pull request #174 from GilgusMaximus/master
Missing video formats due to region lock
This commit is contained in:
		
						commit
						72b113e06a
					
				| 
						 | 
				
			
			@ -294,7 +294,17 @@ export default Vue.extend({
 | 
			
		|||
            }
 | 
			
		||||
          } else {
 | 
			
		||||
            this.videoLengthSeconds = parseInt(result.videoDetails.lengthSeconds)
 | 
			
		||||
            if (result.player_response.streamingData !== undefined) {
 | 
			
		||||
              this.videoSourceList = result.player_response.streamingData.formats.reverse()
 | 
			
		||||
            } else {
 | 
			
		||||
              // video might be region locked or something else. This leads to no formats being available
 | 
			
		||||
              this.showToast({
 | 
			
		||||
                message: this.$t('This video is unavailable because of missing formats. This can happen due to country unavailability.'),
 | 
			
		||||
                time: 7000
 | 
			
		||||
              })
 | 
			
		||||
              this.handleVideoEnded()
 | 
			
		||||
              return
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            if (typeof result.player_response.streamingData.adaptiveFormats !== 'undefined') {
 | 
			
		||||
              this.dashSrc = await this.createLocalDashManifest(result.player_response.streamingData.adaptiveFormats)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -479,6 +479,7 @@ Local API Error (Click to copy): Lokaler API Fehler (Klicke zum Kopieren)
 | 
			
		|||
Invidious API Error (Click to copy): Invidious API Fehler (Klicke zum Kopieren)
 | 
			
		||||
Falling back to Invidious API: Falle auf Invidious API zurück
 | 
			
		||||
Falling back to the local API: Dalle auf lokale API zurück
 | 
			
		||||
This video is unavailable because of missing formats. This can happen due to country unavailability.: Dieses Video ist aufgrund fehlernder Formate nicht verfügbar. Dies kann zum Beispiel durch Zugriffsbeschränkungen für Länder geschehen.
 | 
			
		||||
Subscriptions have not yet been implemented: Abonnements sind noch nicht implementiert
 | 
			
		||||
Loop is now disabled: Schleife ist jetzt deaktiviert
 | 
			
		||||
Loop is now enabled: Schleife ist jetzt aktiviert
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -492,6 +492,7 @@ Local API Error (Click to copy): Local API Error (Click to copy)
 | 
			
		|||
Invidious API Error (Click to copy): Invidious API Error (Click to copy)
 | 
			
		||||
Falling back to Invidious API: Falling back to Invidious API
 | 
			
		||||
Falling back to the local API: Falling back to the local API
 | 
			
		||||
This video is unavailable because of missing formats. This can happen due to country unavailability.: This video is unavailable because of missing formats. This can happen due to country unavailability.
 | 
			
		||||
Subscriptions have not yet been implemented: Subscriptions have not yet been implemented
 | 
			
		||||
Loop is now disabled: Loop is now disabled
 | 
			
		||||
Loop is now enabled: Loop is now enabled
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue