Commit 1cfbffb7 authored by George Dietrich's avatar George Dietrich Committed by Yunhe Guo
Browse files

Be a bit less strict when trying to extract natgeo potd URL

Update doc comment to point to proper URL
parent db07392a
......@@ -42,7 +42,7 @@ void NatGeoProvider::pageRequestFinished(KJob *_job)
QString url;
re.setPattern(QStringLiteral("^<meta\\s+property=\"og:image\"\\s+content=\"(.*)\".*/>$"));
re.setPattern(QStringLiteral("<meta.+property=\"og:image\"\\s+content=\"(.*?)\".*/>"));
for (int i = 0; i < lines.size(); i++) {
QRegularExpressionMatch match = re.match(lines.at(i));
......
......@@ -17,13 +17,8 @@
class KJob;
/**
* This class provides the image for APOD
* "Astronomy Picture Of the Day"
* located at http://antwrp.gsfc.nasa.gov/apod.
* Direct link to the picture of the day page is
* http://antwrp.gsfc.nasa.gov/apod/apYYMMDD.html
* where YY is the year last 2 digits,
* MM is the month and DD the day, in 2 digits.
* This class provides the image for the National Geographic's photo of the day.
* Image URL is obtained from https://www.nationalgeographic.com/photo-of-the-day.
*/
class NatGeoProvider : public PotdProvider
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment