- Oct 27, 2021
-
-
Patrick Cloke authored
-
- Oct 14, 2021
-
-
Patrick Cloke authored
There's no point in trying more than once since it is guaranteed to continually fail.
-
Patrick Cloke authored
This follows similar logic to BeautifulSoup where we attempt different character encodings until we find one which works.
-
- Oct 08, 2021
-
-
Patrick Cloke authored
Searches the returned HTML for an oEmbed endpoint using the autodiscovery mechanism (`<link rel=...>`), and will request it to generate the preview.
-
- Jul 27, 2021
-
-
sri-vidyut authored
-
- Apr 14, 2021
-
-
Jonathan de Jong authored
Part of #9744 Removes all redundant `# -*- coding: utf-8 -*-` lines from files, as python 3 automatically reads source code as utf-8 now. `Signed-off-by:
Jonathan de Jong <jonathan@automatia.nl>`>
-
- Feb 08, 2021
-
-
Patrick Cloke authored
* Handle the case of lxml not finding a document tree. * Parse the document encoding from the XML tag.
-
- Jan 26, 2021
-
-
Patrick Cloke authored
Treat unknown encodings (according to lxml) as UTF-8 when generating a preview for HTML documents. This isn't fully accurate, but will hopefully give a reasonable title and summary.
-
- Jan 07, 2021
-
-
Richard van der Hoff authored
If we are lacking an optional dependency, skip the tests that rely on it.
-
- Dec 07, 2020
-
-
Patrick Cloke authored
-
- Jun 20, 2019
-
-
Amber Brown authored
-
- Aug 10, 2018
-
-
black authored
-
- Jul 09, 2018
-
-
Amber Brown authored
-
- Dec 14, 2016
-
-
Marcin Bachry authored
Signed-off-by:
Marcin Bachry <hegel666@gmail.com>
-
- Dec 05, 2016
-
-
Johannes Löthberg authored
The old test expected an incorrect wrapping due to the preview function not using unicode properly, so it got the wrong length. Signed-off-by:
Johannes Löthberg <johannes@kyriasis.com>
-
Johannes Löthberg authored
Signed-off-by:
Johannes Löthberg <johannes@kyriasis.com>
-
- Aug 16, 2016
-
-
Erik Johnston authored
This includes: - Splitting out methods of a class into stand alone functions, to make them easier to test. - Adding unit tests to split out functions, testing HTML -> preview. - Handle the fact that elements in lxml may have tail text.
-
- Aug 04, 2016
-
-
Erik Johnston authored
-