fix importfeed --force skip behavior reversion
importfeed --force: Don't treat it as a failure when an already downloaded
file exists. (Fixes a behavior change introduced in 10.20230626.)
04ee6c4c6b
caused the reversion. Inside a CommandPerform, stop causes it
to fail. Before that commit, it was inside a CommandStart, where stop
causes it to skip.
This commit is contained in:
parent
0c64cd30c2
commit
2f3fe4d904
2 changed files with 4 additions and 1 deletions
|
@ -2,6 +2,9 @@ git-annex (10.20240130) UNRELEASED; urgency=medium
|
||||||
|
|
||||||
* importfeed: Added --scrape option, which uses yt-dlp to screen scrape
|
* importfeed: Added --scrape option, which uses yt-dlp to screen scrape
|
||||||
the equivilant of an RSS feed.
|
the equivilant of an RSS feed.
|
||||||
|
* importfeed --force: Don't treat it as a failure when an already
|
||||||
|
downloaded file exists. (Fixes a behavior change introduced in
|
||||||
|
10.20230626.)
|
||||||
* importfeed --force: Avoid creating duplicates of existing
|
* importfeed --force: Avoid creating duplicates of existing
|
||||||
already downloaded files when yt-dlp or a special remote was used.
|
already downloaded files when yt-dlp or a special remote was used.
|
||||||
|
|
||||||
|
|
|
@ -412,7 +412,7 @@ runDownload todownload url extension cache cv getter = do
|
||||||
case dest of
|
case dest of
|
||||||
Nothing -> do
|
Nothing -> do
|
||||||
recordsuccess
|
recordsuccess
|
||||||
stop
|
next $ return True
|
||||||
Just f -> getter (toRawFilePath f) >>= \case
|
Just f -> getter (toRawFilePath f) >>= \case
|
||||||
Just ks
|
Just ks
|
||||||
-- Download problem.
|
-- Download problem.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue