ShyPike
4bb4de11b3
Update copyrights to 2011.
15 years ago
ShyPike
d82a58799c
Drop support for Python 2.4, due to missing features in gettext modules.
15 years ago
ShyPike
3cb5744682
Remove wrapper layer from Downloader.
15 years ago
ShyPike
0bd763833f
Fix incorrect URL used for browser launch (side-effect of previous change).
15 years ago
ShyPike
ca10eb8b8a
Windows-only.
At startup store the API-url in the Registry.
In normal mode, store in key HKCU\Software\SABnzbd\api (value "url").
In Service mode, store in key HKLM\SYSTEM\CurrentControlSet\Services\SABnzbd\api (value "url").
When the program stops, the key is removed.
When SABnzbd is started with an NZB file as parameter, it will use the registry entry to get the API-url.
First the HKCU key is tried, if that does not exist, the HKLM key is used instead.
The registry entry can also be used by third-party utilities.
Fixed a bug where "net stop sabnzbd" would not notify SABHelper.
15 years ago
ShyPike
1476f70f88
Prevent crash on systems with platform.platform() issues.
15 years ago
ShyPike
cf87ed0956
Make Panic messages translatable.
Enable ^C when running from source on OSX.
15 years ago
ShyPike
037847728d
Add specific panic message for invalid web server host address.
15 years ago
ShyPike
d647f393ad
When no specific HTTPS port is set, use the standard port for HTTPS only.
15 years ago
ShyPike
ca9601f7dc
Fix incorrect logging in Bail_Out().
15 years ago
ShyPike
9dc50b5c41
Convert to GNU gettext following the Launchpad translation guidelines.
Implements blueprints "go-gettext" and "code-gettext".
Use tools/extract_pot.py to create new POT files.
Use tools/make_mo.py to create MO files, email template translations and patch the NSIS_Installer.nsi script.
15 years ago
ShyPike
7f8393081a
Some code clean_ups.
15 years ago
ShyPike
a20acae1bb
Fix names of cfg items.
Add debugging support to SABnzbdDelegate.
15 years ago
ShyPike
62661987f1
Implement file flag to check whether SABnzbd's state was proiperly saved.
If not, do a repair on the next start up.
15 years ago
ShyPike
56a64829bb
On Windows, detect whether sqlite3.dll is missing. If so, panic and complain about lame virus scanner.
15 years ago
ShyPike
df014e3db7
Reduce logging.
- Demote some logs from info to debug
- Promote all traceback logging to info
- Full logging of article handling will only be done when the --log-all command line option is used
15 years ago
ShyPike
3f7ad80104
On OSX, force CherryPy to use 127.0.0.1 when "localhost" is given.
Needed to support Chrome on OSX.
Always remove square brackets from numerical IPV6 addresses on OSX.
15 years ago
ShyPike
7d2d055f25
Prevent logging-exceptions from being logged.
This should prevent infinite growth of the log file when the notorious Python logging bug raises its ugly head.
15 years ago
ShyPike
30760cb0d4
Missing exe name when using -v option.
15 years ago
ShyPike
7ee7273740
Prevent --clean from crashing on undeletable files.
15 years ago
ShyPike
aac200cc0f
Add INI-only "log_new" option to enable modified RotatingFileHandler for Win32.
15 years ago
ShyPike
d01d6039c9
One more globber.
15 years ago
ShyPike
24659b5c89
More flexible repair mode.
0 = no repairs
1 = add orphaned jobs from "incomplete"
2 = do a full queue reconstruction from "incomplete" (ignore all existing admin)
15 years ago
ShyPike
e0c8c81abb
Full repair-mode "--repair-all".
Reconstruct queue from "incomplete" folder using the saved nzb file and attributes.txt in the admin folder of the jobs.
15 years ago
ShyPike
1d6ba732e3
Try solve the notorious Python logging bug on Windows.
15 years ago
ShyPike
4e2ea61695
Prevent crash on Linuix and OSX when HOME environment variable is missing, exit with panic() instead.
15 years ago
ShyPike
90d168cf3c
Use SABHelper also to guard the SABnzbd service.
Auto-restart when SABnzbd is no longer running and didn't sign-off properly.
15 years ago
ShyPike
bd877388c2
Fix the find_free_port() code and copy the found https port in the right variable.
15 years ago
ShyPike
a742f405f2
Make the SABnzbd service dependant on the SABHelper service.
15 years ago
ShyPike
d3c91364b2
Move mailslot.py to a seperate package. This way the SABHelper binary can be made a lot smaller.
15 years ago
ShyPike
8b3b22c489
Remind the user to install the Helper service too.
15 years ago
ShyPike
ae28a79b8a
Adding SABnzbdHelper service for restarting SABnzbd when it runs as a Windows Service.
MailSlot.py is used by both services.
15 years ago
ShyPike
3cc6a3d8b5
Merge 2381..2382 from 0.5.x.
Report IOerror 13 on Linux as a port permission problem.
Clear up port permission text.
Error reporting equal porsts for https and http cannot be translated because translations are not available yet, use fixed English text instead.
Add some accented characters to the email test.
15 years ago
ShyPike
532c11e240
New download queue design, first phase.
Move per-job data to the job folder in "incomplete".
Move general data to the "admin" folder.
Make sure "old-style" jobs are properly finished.
Add queue repair option.
Handle jobs removed from the "incomplete" folder.
Remove some obsolete code for testing downloaded->decoder queue.
15 years ago
ShyPike
c10e9fa3bb
Rename codecs.py to encoding.py to prevent name clash with the
standard codecs Python library.
15 years ago
ShyPike
08f9037738
Eliminate superfluous 'main' folder
15 years ago
shypike
4bf60b459a
Merge revisions 3376-3379 from 0.5.x to trunk.
15 years ago
shypike
43229e9184
Lowercase all option instances.
15 years ago
shypike
47cb1c8b2e
Merge changes from branch sabnzbd-0.5.x Rev 3261-3311 to trunk
15 years ago
shypike
ea6ad3aea4
Implement __call__ method for class Option so that every option.get() can be replaced by option().
15 years ago
shypike
ddc5b9dc9c
Merge changes from branch sabnzbd-0.5.x Rev 3195-3223 to trunk.
16 years ago
shypike
c860d9f4cb
Allow SABnzbd to be run as a Windows Service.
Implemented:
- Full service-enabled, install/update/start/stop
- Command-line parameters are stored in Service's reg-entry
To be done:
- Requires better Win logging
- Restart doesn't work from UI
- Support in installer
- Translated texts
Addresses #12 for trunk.
16 years ago
shypike
508057e2dc
Value of environment variable SABnzbd will be prepended to the command line options.
16 years ago
shypike
d42e8504d8
SABnzbd.py must be in Unix format.
16 years ago
shypike
7bea24975f
Prevent crash in error logging when one of those elusive Unicode conversion problems occurs in class guiHandler.
16 years ago
swi-tch
42928e034f
Replaced a few .find() with 'string' not in variable syntax for easier readability.
16 years ago
shypike
ed75ac1cae
localhost doesn't work properly for CherryPy on recent Ubuntu and Linux Mint releases. Let CherryPy use 127.0.0.1 instead of localhost when there's ambiguity. Try to let the browser user localhost when the first resolved value is "127.0.0.1".
16 years ago
shypike
66e962fa8c
Improve error reporting of invalid INI file.
Don't bother to translate the message, since we don't know the language yet.
16 years ago
shypike
98a66aa3da
Improve Windows x64 detection by reading the registry instead of checking for SysWow64 folder.
16 years ago
shypike
0e97288e3a
The Windows binary gets an extra SABnzbd*.exe command-line parameter when restarted. This causes problems because the real parameters are not seen.
Add a hack to remove the spurious one from the parameter list.
16 years ago