From a17417e8cad2870c597bb0bdddeff0e9ecef2ef7 Mon Sep 17 00:00:00 2001 From: shirt-dev <2660574+shirt-dev@users.noreply.github.com> Date: Wed, 24 Feb 2021 13:30:37 -0500 Subject: Readthedocs support (#107) Authored-by: shirtjs <2660574+shirtjs@users.noreply.github.com> --- docs/faq.md | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 docs/faq.md (limited to 'docs/faq.md') diff --git a/docs/faq.md b/docs/faq.md deleted file mode 100644 index b0f8cad14..000000000 --- a/docs/faq.md +++ /dev/null @@ -1,31 +0,0 @@ -- Q: How to redirect to another extractor? - - A: - - Most simple using only `url_result` - ``` - # get proper url first if needed. - return self.url_result(url) - ``` - - Using `_request_webpage` and `to_screen` in addition - ``` - urlh = self._request_webpage( - url, id, note='Downloading redirect page') - url = urlh.geturl() - self.to_screen('Following redirect: %s' % url) - return self.url_result(url) - ``` - - Using `return` construction - ``` - return { - '_type': 'url_transparent', - 'url': url, - 'ie_key': ExampleIE.ie_key(), - 'id': id, - } - # Alternative if extractor supports internal uri like kaltura - return { - '_type': 'url_transparent', - 'url': 'kaltura:%s:%s' % (partner_id, kaltura_id), - 'ie_key': KalturaIE.ie_key(), - 'id': id, - } - ``` -- cgit v1.2.3