{"action":"created","issue":{"url":"https://api.github.com/repos/phillipberndt/pqiv/issues/49","labels_url":"https://api.github.com/repos/phillipberndt/pqiv/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/phillipberndt/pqiv/issues/49/comments","events_url":"https://api.github.com/repos/phillipberndt/pqiv/issues/49/events","html_url":"https://github.com/phillipberndt/pqiv/issues/49","id":118749953,"number":49,"title":"--watch-directories With Images Downloading in the Background","user":{"login":"noctuid","id":4250696,"avatar_url":"https://avatars.githubusercontent.com/u/4250696?v=3","gravatar_id":"","url":"https://api.github.com/users/noctuid","html_url":"https://github.com/noctuid","followers_url":"https://api.github.com/users/noctuid/followers","following_url":"https://api.github.com/users/noctuid/following{/other_user}","gists_url":"https://api.github.com/users/noctuid/gists{/gist_id}","starred_url":"https://api.github.com/users/noctuid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noctuid/subscriptions","organizations_url":"https://api.github.com/users/noctuid/orgs","repos_url":"https://api.github.com/users/noctuid/repos","events_url":"https://api.github.com/users/noctuid/events{/privacy}","received_events_url":"https://api.github.com/users/noctuid/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/phillipberndt/pqiv/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"phillipberndt","id":387407,"avatar_url":"https://avatars.githubusercontent.com/u/387407?v=3","gravatar_id":"","url":"https://api.github.com/users/phillipberndt","html_url":"https://github.com/phillipberndt","followers_url":"https://api.github.com/users/phillipberndt/followers","following_url":"https://api.github.com/users/phillipberndt/following{/other_user}","gists_url":"https://api.github.com/users/phillipberndt/gists{/gist_id}","starred_url":"https://api.github.com/users/phillipberndt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phillipberndt/subscriptions","organizations_url":"https://api.github.com/users/phillipberndt/orgs","repos_url":"https://api.github.com/users/phillipberndt/repos","events_url":"https://api.github.com/users/phillipberndt/events{/privacy}","received_events_url":"https://api.github.com/users/phillipberndt/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-11-25T03:00:52Z","updated_at":"2015-12-05T16:46:27Z","closed_at":"2015-12-05T16:43:04Z","body":"I've been trying having `pqiv --watch-directories` run for a directory under /tmp while aria2c downloads images in the background. It works okay, but I have to ensure that an image exists before starting pqiv or it will exit. Sometimes I want to clear all the images in the directory and then re-populate it with other images. This also can cause pqiv to close. Would it be possible to have pqiv stay open even in an empty directory (by default or with another option)?\r\n\r\nAnother problem is that pqiv will sometimes read an image before it is fully downloaded, causing it to fail and never be loaded. I'm not sure if there is a good way to deal with this though. I guess pqiv could retry reading failed images a few times, but for such a limited use case, it probably doesn't make sense to add that functionality. I realize that I can just pass pqiv a bunch of urls, but this is slow, and I want to be able to update/add to the images later."},"comment":{"url":"https://api.github.com/repos/phillipberndt/pqiv/issues/comments/162222136","html_url":"https://github.com/phillipberndt/pqiv/issues/49#issuecomment-162222136","issue_url":"https://api.github.com/repos/phillipberndt/pqiv/issues/49","id":162222136,"user":{"login":"phillipberndt","id":387407,"avatar_url":"https://avatars.githubusercontent.com/u/387407?v=3","gravatar_id":"","url":"https://api.github.com/users/phillipberndt","html_url":"https://github.com/phillipberndt","followers_url":"https://api.github.com/users/phillipberndt/followers","following_url":"https://api.github.com/users/phillipberndt/following{/other_user}","gists_url":"https://api.github.com/users/phillipberndt/gists{/gist_id}","starred_url":"https://api.github.com/users/phillipberndt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phillipberndt/subscriptions","organizations_url":"https://api.github.com/users/phillipberndt/orgs","repos_url":"https://api.github.com/users/phillipberndt/repos","events_url":"https://api.github.com/users/phillipberndt/events{/privacy}","received_events_url":"https://api.github.com/users/phillipberndt/received_events","type":"User","site_admin":false},"created_at":"2015-12-05T16:46:27Z","updated_at":"2015-12-05T16:46:27Z","body":"I've decided that fixing the issue of pqiv exiting without breaking other use cases would add too much complexity, and instead made this behaviour configurable.\r\n\r\nBy specifying `--watch-files=changes-only`, you can now configure pqiv to ignore if the current image is deleted. Note that this also applies to the two adjacent images, so when you replace all files, the *next* image in your slideshow will *once* still be one of the old ones."}}