Chocobo1
517fc39950
Remove unnecessary dynamic allocation
...
Also remove unneeded `if ()` conditional.
6 years ago
Chocobo1
56766dc08b
Avoid binding constant reference to returned object
...
In such cases, it makes no sense doing so.
6 years ago
Chocobo1
0217d5b4c0
Replace single-character string with character literal
...
Also remove unnecessary dynamic allocation.
6 years ago
Chocobo1
42eac2ee3c
Simplify code
...
This avoids "deferencing null pointer" warning from static analyzers.
6 years ago
Chocobo1
ec7dfee887
Fix typo
6 years ago
Vladimir Golovnev (Glassez)
f7c252886f
Apply proxy settings on DownloadManager creation
6 years ago
Vladimir Golovnev (Glassez)
cd44ab2fc6
Improve torrent initialization
...
Don't post "torrent resumed" event when torrent starts in "resumed"
state.
Fix confusing names. Now "resumed torrent" means "unpaused torrent"
only. When we load previously added torrent it is called "restored
torrent".
6 years ago
Vladimir Golovnev (Glassez)
7ebd63a60f
Save resume data on torrent change events
...
Closes #9174 .
6 years ago
sledgehammer999
de8050701d
Revert email address changes in copyright notices
6 years ago
tjjh89017
670a8e27af
Add async io threads option to AdvancedSettings
6 years ago
Chocobo1
d61435e4bf
Allow save resume interval to be disabled
...
Also raise the allowable upper limit
6 years ago
Chocobo1
6a16fc1ca2
Prolong resume data save interval
6 years ago
thalieht
456270bbb1
Delete several unused #include
6 years ago
thalieht
eb508d67ef
Fix coding style
6 years ago
Chocobo1
2528c6e39a
Fix python version detection
...
Closes #9146 .
6 years ago
Chocobo1
8c32302377
Clear python cache conditionally
...
Clear the cache artifacts on plugin install and plugin uninstall events.
6 years ago
Vladimir Golovnev (Glassez)
d78414307e
Make TorrentInfo loading behavior uniform
6 years ago
Vladimir Golovnev (Glassez)
112a9bcfa2
Use new DownloadManager interface
6 years ago
Vladimir Golovnev (Glassez)
8d438e159c
Implement "Sequential downloading" feature
...
Closes #6835 .
6 years ago
Vladimir Golovnev (Glassez)
a9a6b74416
Implement DownloadRequest helper
6 years ago
Chocobo1
77b71e392e
Refactor function
...
In SearchPluginManager::updateNova(), omit removing __pycache__ folder and pyc
files, those files will be recreated anyway.
Add const to variables
7 years ago
Chocobo1
f951bf678d
Rename function
7 years ago
Chocobo1
5c50c5b24d
Cache SearchPluginManager::engineLocation() result
...
Also the folder is only created on first usage.
7 years ago
Chocobo1
361afb401b
Replace less-efficient QProcess::setEnvironment
...
Also small refactor
7 years ago
Chocobo1
ad5c88be3d
Simplify function
7 years ago
Chocobo1
3e6c8a05dd
Reduce queries to python version
...
Instead of doing at least 2 queries for python infos, now requires only
1 query (in ideal condition), and the result is cached.
7 years ago
Chocobo1
51e82762c5
Move related functions to Utils::Python
7 years ago
thalieht
d34ddb2e3c
Change file names and classes names to match them
7 years ago
hannsen
a162550d7f
Properly normalize version string before parsing it
...
This allows python scripts to be formatted in PEP 8 style.
7 years ago
thalieht
4022799881
Fix coding style
7 years ago
Chocobo1
5ddbf9bba9
Replace post-increment with pre-increment
...
And post-decrement with pre-decrement.
7 years ago
Eugene Shalygin
fa770871e9
Refactor CMake build scripts
...
1. Use FeatureSummary module to show configuration results.
2. Invert option()/find_package() relationship: instead of
calling find_package(... REQUIRED) when option is set, rely on optional
find package call and PackageName_FOUND variable.
3. Refactor handling options that result in simple preprocessor defines
(actually copy the snippet from libtorrent) so that everything is done
in a single function call.
4. Populate target properties in order to get rid of
include_directories() calls.
7 years ago
Chocobo1
050b78f378
Send Cache-Control header in WebUI responses
...
Tune the caching time to be shorter, in case there is a program
update.
Change the cacheability to private, as WebUI resources are not intended
to be cached at proxy.
For uncacheable responses, send out "no-store" explicitly to halt
browser caching.
7 years ago
Chocobo1
09f759355f
Replace QRegExp with QRegularExpression
...
Revise `static` keyword usage, static is added to frequently used
instances.
7 years ago
Chocobo1
c22e6b4502
Cleanup header include order
...
Add missing header.
Cleanup license.
7 years ago
Vladimir Golovnev (Glassez)
200f4d0f07
Don't use RSS feed URLs as base for file names
...
RSS feed URLs can be too long and exceed max path limit.
Add RSS feed UIDs and use UIDs as base for file names instead of URLs.
Closes #8399 .
7 years ago
sledgehammer999
80e93e23f9
Fix compilation without D-Bus support
...
Closes #8977
7 years ago
Chocobo1
e099f6ad33
Add constexpr to IndexInterval class
...
Add const to IndexRange private members.
Remove redundant inline specifier.
Add missing parentheses.
7 years ago
Chocobo1
9631a9c2ad
Add constexpr to TriStateBool class
7 years ago
Chocobo1
b38925413d
Improve Utils::Version class
...
Add operator>=() and operator<=().
More methods are suitable to be constexpr.
Remove redundant boundary checking.
7 years ago
sledgehammer999
b9546ccd4c
Suppress multiple I/O errors for the same torrent
...
When a file error happens libtorrent spews a ton of `file_error_alert`
which result in log floods and notification balloon floods. The later
might render the program inaccessible because the constant
notifications prevent the user from interacting with the tray icon.
Closes #8934
7 years ago
Chocobo1
9eeef0be97
Add option to control CSRF protection
...
Some users are using WebUI with simple port-forwarding from their router,
providing an option to control the protection will save them from setting up an
non-trival web proxy.
Closes #7274 .
7 years ago
Vladimir Golovnev (Glassez)
4f8ed09183
Add missing 'return' statement
7 years ago
Chocobo1
bad4d94f77
Add option to control WebUI clickjacking protection
...
Some users actually want embedding WebUI into their custom build iframe.
Closes #7370 .
7 years ago
Vladimir Golovnev (Glassez)
9b80c4f7eb
Use RSS feed update time as a fallback
...
Some sites omit publication date in its RSS feed articles
that prevents "Ignore Subsequent Matches" to work properly.
Closes #8959 .
7 years ago
Vladimir Golovnev (Glassez)
a54f57611c
Rename torrent if content was initially renamed
...
Closes #8910 .
7 years ago
Chocobo1
95b19ec303
Relax behavior of "Download first and last piece first"
...
Now it applies the setting to all files in torrent, no matter whether
the file is previewable or not.
Torrent client shouldn't be smart by deciding which file this
option will be applied to, i.e. it should just follow the user's decision.
7 years ago
Chocobo1
da75a010c7
Refactor code
...
Add const to variables.
Add Logger message.
Simplify code logic.
7 years ago
Vladimir Golovnev (Glassez)
844f76c2ca
Make "Ignoring days" to behave like other filters
...
This prevents confusing in GUI when it shows matched RSS
articles which be really ignored by the rule.
7 years ago
Evgeny Lensky
c7601d7a43
Fix open destination folder with Nautilus > 3.28
...
Closes #8923 .
7 years ago