From 74a969dc74c633ab7bd66b402b5babf7038ee3b3 Mon Sep 17 00:00:00 2001 From: MrHulk <154370583+MrHulk02@users.noreply.github.com> Date: Thu, 12 Sep 2024 14:04:38 +0530 Subject: [PATCH] Update fptplay.py --- yt_dlp/extractor/fptplay.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/yt_dlp/extractor/fptplay.py b/yt_dlp/extractor/fptplay.py index 05bffcefa6..e6038759be 100644 --- a/yt_dlp/extractor/fptplay.py +++ b/yt_dlp/extractor/fptplay.py @@ -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[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)