[svtplay] Update API endpoint (closes #20430)
authorSergey M․ <dstftw@gmail.com>
Thu, 21 Mar 2019 15:39:35 +0000 (22:39 +0700)
committerSergey M․ <dstftw@gmail.com>
Thu, 21 Mar 2019 15:39:35 +0000 (22:39 +0700)
youtube_dl/extractor/svt.py

index 0901c3163e6cab4723d451b30df8574e359ba899..7aa1b591949b298f5b1eee1d4c57e23e7d889d5f 100644 (file)
@@ -185,7 +185,7 @@ class SVTPlayIE(SVTPlayBaseIE):
 
     def _extract_by_video_id(self, video_id, webpage=None):
         data = self._download_json(
-            'https://api.svt.se/videoplayer-api/video/%s' % video_id,
+            'https://api.svt.se/video/%s' % video_id,
             video_id, headers=self.geo_verification_headers())
         info_dict = self._extract_video(data, video_id)
         if not info_dict.get('title'):