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
clinton-hall
fd5ee775e0
add debugging to track down #894
2015-12-18 23:57:07 +10:30
clinton-hall
c521e3beae
correctly list sym-links #894
2015-12-15 23:17:50 +10:30
clinton-hall
316cc64075
add option move-sym to create symlink to renamed files. Fixes #894
2015-12-15 22:52:01 +10:30
clinton-hall
a121cb6baf
don't use output directory if part of input directory. Fixes #911
2015-12-12 21:27:19 +10:30
fativi
3377cb338e
Merge pull request #1 from fativi/nightly
...
Nightly
2015-10-13 14:17:17 -04:00
Brian
b2ac5bbaf8
Added option to presrve archive files following extraction.
2015-10-11 15:52:43 -04:00
Hagai Cohen
d54d5a35b7
Fixed a small bug (missing not)
2015-09-26 11:12:46 +03:00
Hagai Cohen
96dfe7d765
Fixed torrent file handling
...
torrents sometimes comes as single file,
however, processors (Sickbeard for example) are expecting isolated
folder.
This patch will make sure that if processed item is not a directory,
then it will create a directory (similar to file name) and move
the media there.
2015-09-25 09:26:53 +03:00
Hagai Cohen
0d1e27c093
Add the ability to not resume torrent on failure
2015-09-25 09:26:53 +03:00
Hagai Cohen
ab4d02a240
Added the ability to chmod Torrent diretory before processing
2015-09-25 09:26:30 +03:00
clinton-hall
042fcce6b7
add plex library update. Fixes #566
2015-05-27 22:03:13 +09:30
clinton-hall
c80a678ded
rename nzbtomedia to core. Fixes #744 #746
2015-04-26 16:41:39 +09:30
clinton-hall
9f99d1be38
better warning logging for torrent actions.
2015-01-18 07:30:03 +10:30
clinton-hall
d5cdf2ad69
continue if failed to connect to torrent client.
2015-01-17 12:12:26 +10:30
clinton-hall
7f980a4964
only use Upper if hash exists. Fixes #651
2015-01-02 07:07:08 +10:30
clinton-hall
13a45b6aab
add download id. Fixes #583
...
Ref. https://github.com/Sonarr/Sonarr/pull/130
2014-11-04 11:06:28 +10:30
clinton-hall
b61aca7e68
fix issues with processing categories that are disabled. Fix category testing.
2014-09-11 15:25:23 +09:30
clinton-hall
8006d20df4
use avprobe. Fixes #503 and don't link single files for NZB. Fixes #519
2014-08-04 11:10:39 +09:30
clinton-hall
c048c03aa5
fix remote_Dri for HeadPhones. Fixes #499 Fix encoding on manual scan.
2014-07-23 11:35:32 +09:30
clinton-hall
de89fb2ce0
add printed return message. Fixes #493 Fixes #495 Fixes#496
2014-07-17 10:27:55 +09:30
clinton-hall
8a58dedd1d
add check for running instance. Fixes #466
2014-07-09 13:11:36 +09:30
clinton-hall
863fd3ef5c
Flatten after extract. Extract SubDirs and multi archives. Typo.
2014-07-08 16:52:39 +09:30
clinton-hall
d1ba449b9a
add external script for NZBs and add video check to userscript. Fixes #461
2014-07-04 23:41:51 +09:30
Michael Johnson
bc21aeab89
Specify Python version to use
2014-06-26 06:14:07 -04:00
clinton-hall
171eab48d1
added option to disable unique directory in output. Fixes #425
2014-06-16 09:46:25 +09:30
clinton-hall
c5103042ae
more userscript fixes. #425
2014-06-15 19:21:39 +09:30
clinton-hall
c26ffe58f1
more encoding tests. #424
2014-06-13 15:12:38 +09:30
clinton-hall
c6c729aef8
make logger safe and encode before database. Fixes #424
2014-06-13 09:57:33 +09:30
clinton-hall
71f9e9ae75
set encoding to handle european characters. Fixes #424
2014-06-11 15:03:19 +09:30
clinton-hall
51e790743d
add Chartranslator. Fixes #424
2014-06-10 14:23:25 +09:30
clinton-hall
5f2d50ba47
fix userscript settings. Fixes #425
2014-06-09 19:43:44 +09:30
clinton-hall
9eeff323ac
leave comic book archives alone. #351 #421
2014-06-06 12:36:27 +09:30
clinton-hall
07719e79b6
added safe_mode to prevent processing ALL downloads.
2014-05-27 15:48:52 +09:30
clinton-hall
0cf1fa0565
fix for HeadPhone directory preservation.
2014-05-19 10:05:55 +09:30