mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-20 05:47:24 +01:00
Update fptplay.py
This commit is contained in:
parent
017bbfe491
commit
74a969dc74
@ -1,11 +1,13 @@
|
||||
import hashlib
|
||||
import time
|
||||
import urllib.parse
|
||||
|
||||
from .common import InfoExtractor
|
||||
from ..utils import (
|
||||
ExtractorError,
|
||||
int_or_none,
|
||||
)
|
||||
|
||||
class FptplayIE(InfoExtractor):
|
||||
_VALID_URL = r'https?://fptplay\.vn/xem-video/[^/]+\-(?P<id>[a-f0-9]+)'
|
||||
_GEO_COUNTRIES = ['VN']
|
||||
@ -59,7 +61,7 @@ def _real_extract(self, url):
|
||||
else:
|
||||
# playlist
|
||||
entries = []
|
||||
for episode in res['result']['episodes']:
|
||||
for episode in res['result']['episodes']:
|
||||
if episode['is_trailer'] == 1:
|
||||
continue
|
||||
manifest = self._download_json(self.get_api_with_st_token(contentId, episode['_id']), episode['_id'], headers={'authorization': f'Bearer {token.value}'}, expected_status=406)
|
||||
|
Loading…
Reference in New Issue
Block a user