-
Notifications
You must be signed in to change notification settings - Fork 10.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[facebook] extract subtitles(closes #22777)
- Loading branch information
1 parent
0c2d10d
commit 07154c7
Showing
2 changed files
with
7 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -147,6 +147,8 @@ def _real_extract(self, url): | |
is_live = item.get('type') == 'LIVE' | ||
formats = [] | ||
for format_id, stream_url in item.get('streamUrls', {}).items(): | ||
if 'drmOnly=true' in stream_url: | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
kasal
|
||
continue | ||
if 'playerType=flash' in stream_url: | ||
stream_formats = self._extract_m3u8_formats( | ||
stream_url, playlist_id, 'mp4', 'm3u8_native', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
With this change, I cannot extract any video from ceskatelevize.cz, not only the AES encrypted ones.