nub list of files
yt-dlp when resumed was observed having written the same filename twice into the file list. Perhaps once by the first download and once by the resumed one?
This commit is contained in:
parent
139fa76b64
commit
e82823d448
2 changed files with 2 additions and 1 deletions
|
@ -89,7 +89,7 @@ youtubeDl' url workdir p uo
|
|||
toomanyfiles cmd fs = Left $ cmd ++ " downloaded multiple media files; git-annex is only able to deal with one per url: " ++ show fs
|
||||
downloadedfiles cmd
|
||||
| isytdlp cmd = liftIO $
|
||||
(lines <$> readFile filelistfile)
|
||||
(nub . lines <$> readFile filelistfile)
|
||||
`catchIO` (pure . const [])
|
||||
| otherwise = workdirfiles
|
||||
workdirfiles = liftIO $ filter (/= filelistfile)
|
||||
|
|
|
@ -13,6 +13,7 @@ git-annex (10.20230627) UNRELEASED; urgency=medium
|
|||
made to it since the adjusted branch was created.
|
||||
* importfeed: Add feedurl to the metadata (and allow it to be used in the
|
||||
--template)
|
||||
* Improve resuming interrupted download when using yt-dlp.
|
||||
|
||||
-- Joey Hess <id@joeyh.name> Mon, 26 Jun 2023 13:10:40 -0400
|
||||
|
||||
|
|
Loading…
Reference in a new issue