Chocobo1
d5430adaaa
Avoid binding constant reference to returned object
...
In such cases, it makes no sense doing so.
2018-08-12 11:08:06 +03:00
Chocobo1
9e99a0d3f5
Replace single-character string with character literal
...
Also remove unnecessary dynamic allocation.
2018-08-12 11:08:06 +03:00
Chocobo1
b515c7eda4
Fix typo
2018-08-12 11:08:06 +03:00
Chocobo1
73fcecac76
Simplify code
...
This avoids "deferencing null pointer" warning from static analyzers.
2018-08-12 11:08:06 +03:00
Vladimir Golovnev (Glassez)
938f5b9dd9
Apply proxy settings on DownloadManager creation
2018-08-12 11:08:06 +03:00
Vladimir Golovnev (Glassez)
3b4d9f49d5
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".
2018-08-12 11:08:06 +03:00
Vladimir Golovnev (Glassez)
171c93af50
Save resume data on torrent change events
...
Closes #9174 .
2018-08-12 11:08:06 +03:00
sledgehammer999
6f81e40106
Revert email address changes in copyright notices
2018-08-12 11:08:06 +03:00
tjjh89017
e19b5cb2ce
Add async io threads option to AdvancedSettings
2018-08-12 11:08:06 +03:00
Chocobo1
2c69faca58
Allow save resume interval to be disabled
...
Also raise the allowable upper limit
2018-08-12 11:08:06 +03:00
Chocobo1
9272151d0a
Prolong resume data save interval
2018-08-12 11:08:06 +03:00
thalieht
8074be7644
Delete several unused #include
2018-08-12 11:08:06 +03:00
thalieht
c99ac99a99
Fix coding style
2018-08-12 11:08:06 +03:00
Chocobo1
7e4db8fafd
Fix python version detection
...
Closes #9146 .
2018-08-12 11:08:06 +03:00
Chocobo1
115a409d92
Clear python cache conditionally
...
Clear the cache artifacts on plugin install and plugin uninstall events.
2018-08-12 11:08:06 +03:00
Chocobo1
c203ab3d16
Refactor function
...
In SearchPluginManager::updateNova(), omit removing __pycache__ folder and pyc
files, those files will be recreated anyway.
Add const to variables
2018-08-12 11:08:06 +03:00
Chocobo1
5dff96496d
Rename function
2018-08-12 11:08:06 +03:00
Chocobo1
f813935011
Cache SearchPluginManager::engineLocation() result
...
Also the folder is only created on first usage.
2018-08-12 11:08:06 +03:00
Chocobo1
2be719449f
Replace less-efficient QProcess::setEnvironment
...
Also small refactor
2018-08-12 11:08:06 +03:00
Chocobo1
2094c870d5
Simplify function
2018-08-12 11:08:06 +03:00
Vladimir Golovnev (Glassez)
8cede43a45
Make TorrentInfo loading behavior uniform
2018-08-12 11:08:06 +03:00
Vladimir Golovnev (Glassez)
9b1fa3a5af
Use new DownloadManager interface
2018-08-12 11:08:06 +03:00
Vladimir Golovnev (Glassez)
409e73c074
Implement "Sequential downloading" feature
...
Closes #6835 .
2018-08-12 11:08:06 +03:00
Vladimir Golovnev (Glassez)
c893729d62
Implement DownloadRequest helper
2018-08-12 11:08:06 +03:00
Chocobo1
945466968c
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.
2018-08-12 11:08:06 +03:00
Chocobo1
54f080b755
Move related functions to Utils::Python
2018-08-12 11:08:06 +03:00
hannsen
4707d34fad
Properly normalize version string before parsing it
...
This allows python scripts to be formatted in PEP 8 style.
2018-08-12 11:08:06 +03:00
thalieht
800a3aa61e
Change file names and classes names to match them
2018-08-12 11:08:06 +03:00
thalieht
ac6426eab1
Fix coding style
2018-08-12 11:08:06 +03:00
Chocobo1
be5ad63e21
Replace post-increment with pre-increment
...
And post-decrement with pre-decrement.
2018-08-12 11:08:06 +03:00
Eugene Shalygin
bb893e70c5
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.
2018-08-12 11:08:06 +03:00
Chocobo1
0287481001
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.
2018-08-12 11:08:06 +03:00
Chocobo1
c93b05c293
Replace QRegExp with QRegularExpression
...
Revise `static` keyword usage, static is added to frequently used
instances.
2018-08-12 11:08:06 +03:00
Chocobo1
55c3813fac
Cleanup header include order
...
Add missing header.
Cleanup license.
2018-08-12 11:08:06 +03:00
Vladimir Golovnev (Glassez)
b9ab83eaf2
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 .
2018-08-12 11:08:06 +03:00
Chocobo1
8b7b563992
Add constexpr to IndexInterval class
...
Add const to IndexRange private members.
Remove redundant inline specifier.
Add missing parentheses.
2018-08-12 11:08:06 +03:00
Chocobo1
b813a878d7
Add constexpr to TriStateBool class
2018-08-12 11:08:06 +03:00
Chocobo1
54e486c389
Improve Utils::Version class
...
Add operator>=() and operator<=().
More methods are suitable to be constexpr.
Remove redundant boundary checking.
2018-08-12 11:08:06 +03:00
Chocobo1
12d0a3acc1
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 .
2018-08-12 11:08:06 +03:00
Chocobo1
6ad2a13386
Add option to control WebUI clickjacking protection
...
Some users actually want embedding WebUI into their custom build iframe.
Closes #7370 .
2018-08-12 11:08:06 +03:00
sledgehammer999
44f2186749
Fix compilation without D-Bus support
...
Closes #8977
2018-05-27 18:31:51 +03:00
sledgehammer999
0a8925dc75
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
2018-05-27 18:31:51 +03:00
Vladimir Golovnev (Glassez)
54354a2732
Add missing 'return' statement
2018-05-27 18:31:51 +03:00
Vladimir Golovnev (Glassez)
d94b8f08ab
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 .
2018-05-27 18:31:51 +03:00
Chocobo1
0d8189efeb
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.
2018-05-27 18:31:51 +03:00
Chocobo1
00c886e426
Refactor code
...
Add const to variables.
Add Logger message.
Simplify code logic.
2018-05-27 18:31:51 +03:00
Chocobo1
9ff17c8d9d
Make use of QStringLiteral
...
Only changed instances that are initialized at program start.
2018-05-27 18:31:51 +03:00
Chocobo1
ec37732e99
Use smaller type
2018-05-27 18:31:51 +03:00
Vladimir Golovnev (Glassez)
ae1e3c2a81
Rename torrent if content was initially renamed
...
Closes #8910 .
2018-05-27 18:31:51 +03:00
Vladimir Golovnev (Glassez)
007aa8480e
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.
2018-05-27 18:31:51 +03:00