Commit graph

392 commits

Author SHA1 Message Date
Labrys of Knossos
d973f4955f Refactor TORRENT_CLIENTAGENT -> TORRENT_CLIENT_AGENT 2019-01-19 14:34:02 -05:00
Labrys of Knossos
4bf842b4f4 Refactor TORRENT_DEFAULTDIR -> TORRENT_DEFAULT_DIRECTORY 2019-01-19 14:34:02 -05:00
Labrys of Knossos
a24367113b Refactor OUTPUTDIRECTORY -> OUTPUT_DIRECTORY 2019-01-19 14:34:02 -05:00
Labrys of Knossos
28f1bc35c5 Refactor USELINK -> USE_LINK 2019-01-19 14:34:01 -05:00
clinton-hall
3a2ed4bc57 fixed manual Torrent run result parsing. Fixes #1520 2019-01-13 19:41:04 +13:00
Labrys of Knossos
ada78a14f8 hotfix 2019-01-06 00:47:40 -05:00
Labrys of Knossos
325a6a03d5 Fix hash-bang 2019-01-01 00:07:21 -05:00
Labrys of Knossos
c5343889fb Fix quotes - standardize to single-quoted strings 2018-12-29 14:19:20 -05:00
Labrys of Knossos
8c4353bc90 Add ProcessResult to auto_process.common 2018-12-27 11:32:52 -05:00
Labrys of Knossos
d95fc59b45 Remove superfluous classes 2018-12-27 11:32:51 -05:00
Labrys of Knossos
018ded07d6 Fix PEP8 for bare exceptions 2018-12-26 11:29:38 -05:00
Labrys
52c6096b6a Fix PEP8 whitespace violations 2018-12-26 11:22:11 -05:00
Lizband
d1edf9f2a2 Merge branch 'release-11.7' into nightly
# Conflicts:
#	changelog.txt
#	core/versionCheck.py
#	nzbToMedia.py
2018-12-25 14:39:31 -05:00
Lizband
273f455602 Force cleanup during transitional period 2018-12-25 12:08:45 -05:00
Labrys of Knossos
6b52bb68d0 Refactor process_episode -> process 2018-12-19 17:26:49 -05:00
Labrys of Knossos
f61a17b8a0 Refactor nzbToMediaUtil -> utils 2018-12-19 17:20:56 -05:00
Labrys of Knossos
8176c2f007 Refactor nzbToMediaUserScripts -> user_scripts 2018-12-19 17:20:55 -05:00
Labrys of Knossos
9d9abffdb6 Refactor nzbToMediaDB -> main_db 2018-12-19 17:20:54 -05:00
clinton-hall
0700aa0400 fix six import in TorrentToMedia. #1433 2018-12-18 19:38:18 +13:00
Labrys of Knossos
41fa636fc2 PEP8 Argument should be lowercase 2018-12-16 23:33:31 -05:00
Labrys of Knossos
7f2a4d2605 PEP8 Class name should be CamelCase 2018-12-16 22:05:08 -05:00
Labrys of Knossos
d8cbf422dd PEP8 Function name should be lowercase 2018-12-16 21:59:24 -05:00
Labrys of Knossos
97e1ed71b3 PEP8 Variable in function should be lowercase 2018-12-16 21:59:24 -05:00
Labrys of Knossos
5bc789bca3 Optimize imports 2018-12-15 15:01:06 -05:00
clinton-hall
9baef39f99 dded flow and config for Lidarr handling. #1350 2018-05-20 09:33:56 +12:00
clinton-hall
b5ee0c241c added check for single file Torrent. Fixes #924 2018-04-12 21:31:59 +12:00
hjbotha
bb6eff806e improve user script media extension handling 2017-12-05 14:51:57 +00:00
clinton-hall
dc21f125b4 try to avoid spaces in outputdir. Fixes #1294 2017-09-12 21:46:16 +09:30
clinton-hall
f8e525abe7 add Radarr handling. #1170 2017-02-22 21:53:58 +10:30
labrys
e3fb399fad Apply fix #1071 to TorrentToMedia as well 2016-06-22 01:47:34 -04:00
labrys
d2767292fc Fix #1064: TypeError when key not found in config 2016-06-22 01:27:50 -04:00
Labrys
390b401ee2 Apply dict type-casting to section[usercat] in TorrentToMedia.py
* Fixes #1064
2016-06-18 21:12:26 -04:00
Labrys
8861e3afa5 PEP 8: Fix long line length 2016-06-18 20:57:34 -04:00
clinton-hall
9beeeaa752 not all categories support uniquePath. Fixes #1064 2016-06-18 10:27:23 +09:30
Labrys of Knossos
0ce7582da5 Merge pull request #1050 from clinton-hall/code-cleanup-3
Code cleanup 3
2016-06-12 03:42:18 -04:00
andrzejc
d500c61b95 TorrentToMedia: fix invalid indexing scope, select first elem of pair not char
Fix for issue manifesting itself with the following exception:

    Traceback (most recent call last):
      File "/opt/nzbToMedia/TorrentToMedia.py", line 366, in <module>
        exit(main(sys.argv))
      File "/opt/nzbToMedia/TorrentToMedia.py", line 303, in main
        result = processTorrent(inputDirectory, inputName, inputCategory, inputHash, inputID, clientAgent)
      File "/opt/nzbToMedia/TorrentToMedia.py", line 118, in processTorrent
        outputDestination = os.path.join(core.OUTPUTDIRECTORY, inputCategory, basename)  File "/usr/local/lib/python2.7/posixpath.py", line 68, in join
        if b.startswith('/'):
    AttributeError: 'tuple' object has no attribute 'startswith'

The indexing operator was applied to wrong object: should be selecting first
element of tuple returned by splitext() instead of first char of string passed
to splitext.
2016-06-11 14:22:20 +02: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
labrys
a3a59af3f8 Too broad exceptions:
* Use .get() with default value instead.
* Use UnicodeError to catch .encode exceptions
2016-06-06 09:02:40 -04:00
labrys
9f6ca4eaad Fix unresolved reference to replace_links 2016-06-06 09:02:39 -04:00
labrys
2671becdde Use six.text_type to standardize unicode function 2016-06-06 09:02:38 -04:00
labrys
84a89c62d5 PEP8: Tests for membership should use in/not in
PEP8: .has_key() is deprecated, use in
2016-06-06 08:57:53 -04:00
labrys
c2bf14f775 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
2016-06-06 08:57:52 -04:00
labrys
58d439f3eb Remove unused imports, variables, and redundant parentheses 2016-06-06 08:57:51 -04:00
labrys
1a3b1ce4b6 Add encoding declaration 2016-06-06 08:57:50 -04:00
Labrys
1cd073cd52 Use format() instead of % for string formatting 2016-06-05 12:54:24 -04:00
Rato
9225aa26ae Do not remove release group information from base folder 2016-05-17 21:23:56 +02:00
clinton-hall
d334b33a39 don't copy archives when set to extract. Fixes #980 2016-03-15 20:35:11 +10:30
clinton-hall
9f3dea8cdf pre-set variables incase decode fails. #954 2016-02-14 07:33:37 +10:30
clinton-hall
2ab0ec38f9 continue on encoding detection failure. #954 2016-02-13 08:33:37 +10:30