10000 Little optimization by ypid · Pull Request #11 · jgoerzen/hpodder · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Little optimization #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions Download.hs
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,15 @@ d = debugM "download"
i = infoM "download"

curl = "curl"
curlopts = ["-A", "hpodder v1.0.0; Haskell; GHC", -- Set User-Agent
"-s", -- Silent mode
"-S", -- Still show error messages
"-L", -- Follow redirects
"-y", "60", "-Y", "1", -- Timeouts
"--retry", "2", -- Retry twice
"--globoff", -- Disable globbing on URLs (#79)
"-f" -- Fail on server errors
curlopts = ["--user-agent", "hpodder v1.1.6; Haskell; GHC",
"--silent", -- Silent mode
"--show-error", -- Still show error messages
"--location", -- Follow redirects
"--speed-limit", "1", -- Abort if slower than 1 byte per second
"--speed-time", "60", -- over more than 60 seconds
"--retry", "2", -- Retry twice
"--globoff", -- Disable globbing on URLs (#79)
"--fail" -- Fail on server errors
]

getCurlConfig :: IO String
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Hpodder

The documentation for hpodder can be found [here][hpodder-wiki].

[hpodder-wiki]: https://github.com/jgoerzen/hpodder/wiki
2 changes: 1 addition & 1 deletion TODO
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
posthook stuff

New stuff:
-- Don't say B/s for feeds
-- Don't say B/s for feeds

-- Two line Get display in download, something like:

Expand Down
0