1
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp synced 2025-01-18 23:03:05 +01:00

Revert "Create placeholder _extract_post on base InfoExtractor class"

This reverts commit bc1aab0351.
This commit is contained in:
Patrick Robertson 2025-01-16 16:25:06 +01:00
parent bc1aab0351
commit 57d7dfd39e

View file

@ -731,15 +731,6 @@ class InfoExtractor:
self._downloader.write_debug(
f'Using fake IP {self._x_forwarded_for_ip} ({country.upper()}) as X-Forwarded-For')
def _extract_post(self, *args, **kwargs):
"""
Extracts post data (in json format) for the given platform.
Not all extractors will implement/require this method.
The method args and kwargs are up to the extractor to define as per what's needed for the given platform.
"""
raise NotImplementedError
def extract(self, url):
"""Extracts URL information and returns it in list of dicts."""
try: