Commit Graph

21 Commits (0eb16f9975fb5d17838565b5f122739a9afc223a)

Author SHA1 Message Date
Icedream 0eb16f9975 Remove getYouTubeId from util.go.
This bit of code has long been moved to the YouTube parser package.
2016-07-05 15:07:50 +02:00
Icedream f97c872b2e parsers/wikipedia: Fix HTTP(S) URL filter logic. 2016-07-03 19:03:32 +02:00
Icedream 6de3faa8e0 parsers/wikipedia: Only accept HTTP(S) links. 2016-07-03 18:59:13 +02:00
Icedream 7a131adfb8 parsers/wikipedia: Fix handling of www.wikipedia.org and wikipedia.org links. 2016-07-03 18:57:04 +02:00
Icedream 769e0e90a7 manager: Fix how URLs are passed to parsers.
This should prevent parses from being able to leak changes on the original URL object to other parsers.

Fixes issue #1.
2016-07-03 18:40:00 +02:00
Icedream d6a32315f6 parsers/web: Remove extra logging. 2016-06-20 02:45:29 +02:00
Icedream 5c5f5ef478 parsers/web: Compare URLs by their string representations instead.
The Path can be different in that the original URL is missing the "/" at the beginning, however the resulting URL may very well contain a "/" at the beginning. In the resulting string representation this doesn't make any difference.
2016-06-20 02:44:51 +02:00
Icedream dc5597c054 parsers/web: Remove hash reference when parsing URL.
Fixes #8.
2016-06-20 02:43:30 +02:00
Icedream 280da493fb parsers/web: Add test functions. 2016-06-20 02:30:27 +02:00
Icedream 2163bfc99f parsers/web: Remove extra logging lines. 2016-06-20 02:30:10 +02:00
Icedream b99af84dc5 travis: No testing against old Go versions.
Go 1.5.4 does not support the whitespace trim syntax for templates. Since we make excessive use of it, we can not support that version of Go.
2016-06-20 00:41:59 +02:00
Icedream 35156593dc travis: Correct Go versions. 2016-06-20 00:29:53 +02:00
Icedream ae1dce4bce New-line fix caused extra spaces between each character. 2016-06-19 23:34:57 +02:00
Icedream 8696313f8e Move "(no title)" text to its own constant noTitleStr.
Main purpose is for making integration testing easier later.
2016-06-19 23:32:27 +02:00
Icedream ec899f0ddf Replace new-line characters in HTML title with space.
Targets #2.
2016-06-19 23:31:57 +02:00
Icedream 6775fe5100 parsers/web: Limit HTML parsing to first 8 kB and use Content-Length header.
Targets #2.
2016-06-19 23:09:22 +02:00
Icedream be2edc845a Add Travis CI.
Fixes #4.
2016-06-19 22:36:55 +02:00
Icedream b234f732df Use actual cross char (×) for image dimensions.
Fixes #7.
2016-06-19 22:27:16 +02:00
Icedream 8e55200ff4 Readme: Fix headings. 2016-06-17 07:37:54 +02:00
Icedream 454d3ccada Fix typo. 2016-06-12 01:32:13 +02:00
Icedream 4a60f6142a Initial commit.
Source code not properly documented yet and barely any testing but this is the code as running on the server at the moment.
2016-06-11 16:08:13 +02:00