• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

A CLI tool for downloading from pixiv.net


Commit MetaInfo

Révisionf93856f4674eb654134bd7e7b55deab01990d662 (tree)
l'heure2023-04-25 08:19:28
Auteurmio <stigma@disr...>
Commitermio

Message de Log

Change 'daily' behaviour when begin and end equal

Change Summary

Modification

--- a/source/app.d
+++ b/source/app.d
@@ -499,9 +499,19 @@ int dailyHandle(string[] args, ref Config config)
499499 } else {
500500 beginDate = Clock.currTime;
501501 }
502- stderr.writeln("Begin = ", beginDate);
503502
504503 endDate = SysTime.fromISOExtString(endDateString ~ "T00:00:00");
504+
505+ /*
506+ * If beginDate and endDate are the same, then we want to download
507+ * all images for that day.
508+ */
509+ if (endDate.stdTime == beginDate.stdTime) {
510+ beginDate.hour = 23;
511+ beginDate.minute = 59;
512+ beginDate.second = 59;
513+ }
514+ stderr.writeln("Begin = ", beginDate);
505515 stderr.writeln("End = ", endDate);
506516
507517 downloadDaily(beginDate, endDate, restrict, config);