Commit graph

549 commits

Author SHA1 Message Date
Labrys
1085c5851c Apply dict type-casting in autoFork too.
* Fixes #1056
2016-06-07 08:53:36 -04:00
labrys
c5b60adb33 Fix spelling 2016-06-06 09:08:32 -04:00
labrys
2ad9f2e35f Standardize string formatting to use .format instead of concat 2016-06-06 09:08:24 -04:00
clinton-hall
f093fafd8d move import of six after addition of path. 2016-06-06 21:29:50 +09:30
Labrys
df8c6bc20f Too broad exceptions.
* Use .get() with default value instead.
2016-06-05 13:35:46 -04:00
Labrys
1cd073cd52 Use format() instead of % for string formatting 2016-06-05 12:54:24 -04:00
Labrys
94e8a45c62 Code cleanup
* Streamline variable assignment
* Replace assignment with augmented assignment
* Remove unused variables and redundant parentheses
2016-06-05 12:54:23 -04:00
Labrys
47c585d81c Rewrite dictionary creation as a dictionary literal 2016-06-05 12:54:22 -04:00
Labrys
a983c6c7be Streamline conditional statements
* Non-zero ints evaluate True.
2016-06-05 12:54:20 -04:00
Labrys
eb1ee8b5f5 Set expected, but passing list 2016-06-05 12:54:05 -04:00
Labrys
22daf02167 Python 3: Raise with no arguments can only be used in an except block 2016-06-05 12:54:05 -04:00
Labrys
76a00b2493 Convert to new-style class by inheriting from object 2016-06-05 12:54:04 -04:00
Labrys
8434fd5419 Python 3: Fix relative imports 2016-06-05 12:54:03 -04:00
Labrys
ec71e7806d Python 3: Convert except ExceptClass, Target: to except ExceptClass as Target: 2016-06-05 12:54:02 -04:00
Labrys
5903538ae5 Python 3: Make long = int 2016-06-05 12:50:35 -04:00
Labrys
ec2fc8d538 Use six.text_type
* Standarizes unicode function between Python 2 and Python 3
2016-06-05 12:15:05 -04:00
Labrys
abf63d6bbe Use six.iteritems helper
* Standardizes dict.iteritems between Python 2 and Python 3
2016-06-05 12:14:04 -04:00
Labrys
d4e5809a29 Use print_function to standardize printing between Python 2 and Python 3 2016-06-05 12:09:39 -04:00
Labrys
cf1ae938fc Use six to standardize imports between Python 2 and Python 3 2016-06-05 12:09:09 -04:00
Labrys
382d108db2 Optimize imports
* PEP8: Fix module level import not at top of file
* Remove unused imports
* Remove simplejson
* Replace mimetools with email
2016-06-05 12:03:16 -04:00
Labrys
3acaf29f1e Update six to 1.10.0 2016-06-05 12:00:21 -04:00
Labrys
1fd904eb5b PEP8: Tests for membership should use in/not in
* .has_key() is deprecated, use `in`
2016-06-05 12:00:20 -04:00
Labrys
92ae852513 PEP8: comparison to None, True, or False should use is/is not 2016-06-05 12:00:20 -04:00
Labrys
8cd0e76ef8 PEP8: Fix formatting
* Remove redundant backslash between brackets
* Fix multiple statements on one line
* Fix missing/excess whitespace
* Fix comments not starting with a single # and a space
* Convert tabs to spaces
* Use triple-quoted docstring
2016-06-05 11:59:58 -04:00
Labrys
81ffe0456d Add encoding declaration 2016-06-05 02:01:03 -04:00
Labrys
a4fd80e695 Fix TypeError for missing keys by type-casting config to dict 2016-06-05 01:45:04 -04:00
Labrys
b4541d3236 Fix config option extract never being used 2016-06-05 01:40:13 -04:00
Labrys
51d2c73054 Use format() instead of % for string formatting 2016-05-31 12:02:40 -04:00
labrys
0c45961382 Streamline variable assignment 2016-05-31 12:00:45 -04:00
labrys
88c9d74206 Fix log message:
* Renamed url1 to url
* Added `section` argument to CDH
* Removed undefined variable `good_files`
2016-05-31 12:00:42 -04:00
labrys
8880d11e8a Too broad exceptions.
* Use .get() with default value instead.
* Use ValueError to catch JSONDecodeError from simplejson and ValueError from json standard lib
* Use request.RequestException instead.
2016-05-31 12:00:41 -04:00
labrys
8235134fad Rewrite dictionary creation as a dictionary literal 2016-05-31 12:00:38 -04:00
labrys
4a4087180b Python 3: Convert 'except exceptClass, Target' to 'except exceptClass as Target' 2016-05-31 12:00:36 -04:00
labrys
03fa8bc973 Replace assignment with augmented assignment 2016-05-31 12:00:34 -04:00
labrys
c5c5279a8b PEP8: .has_key() is deprecated, use 'in' 2016-05-31 12:00:30 -04:00
labrys
948ead5408 PEP8: comparison to None should be 'if cond is not None:' 2016-05-31 12:00:28 -04:00
labrys
061a167b56 PEP8: Test for membership should be 'not in' 2016-05-31 12:00:25 -04:00
Labrys
38ed3350ac PEP8: Fix formatting
* Remove redundant backslash between brackets
* Fix multiple statements on one line
* Fix missing/excess whitespace
* Fix comments not starting with a single `#` and a space
* Convert tabs to spaces
2016-05-31 11:59:25 -04:00
labrys
0a1fe84306 Convert to new-style class by inheriting from object 2016-05-31 11:56:33 -04:00
Labrys
c7defa37da Fix faulty logic in conditional 2016-05-31 11:56:29 -04:00
labrys
230cc794d0 Fix spelling 2016-05-31 11:56:03 -04:00
labrys
d15fa76fc9 Remove unused imports, unused variables, and redundant parentheses 2016-05-31 11:55:50 -04:00
Labrys
b7c7ec000b Add missing os import 2016-05-31 11:55:36 -04:00
Labrys
0e1437eb7e Add encoding declaaration 2016-05-31 11:52:43 -04:00
clinton-hall
2d770510a2 V10.15 ready for merge. 2016-05-29 18:41:44 +09:30
clinton-hall
c1b73be96a fix string and integer concat error. Fixes #1036 2016-05-19 13:27:39 +09:30
clinton-hall
417b79db12 don't add imdb id when torrent move-sym in use. Fixes #1030 2016-05-19 12:45:40 +09:30
miigotu
1af2178f08 Adjust params for SickRage
31aad15d12 (diff-28ff6581a210bae54e9ae080d11e7a3dL22)
2016-04-11 00:50:13 -07:00
clinton-hall
ada354886e Sort listMediaFiles results by path length #998
Thanks @RyanMelena
2016-04-06 19:29:09 +09:30
clinton-hall
3f0bf71d71 remove sickrage failed and torrent. Just check for params. Fixes #971 2016-03-22 07:18:07 +10:30