Commit Graph

2700 Commits

Author SHA1 Message Date
Noam 69405d4f0d Let Deluge Handle Certain Downloads
- Use Deluge's web.download_torrent_from_url for specific sites
2016-03-01 14:54:29 +02:00
Noam aff82e4755 Always Authenticate When Adding Torrents
- Avoid expired session cookies, just authenticate always
2016-03-01 13:16:33 +02:00
Noam a8476e89f4 Log User-Agent Switch 2016-03-01 12:17:13 +02:00
Noam 3ac15d880f Scrub Local Windows User Path
- Scrub Windows user path from logs
2016-03-01 10:40:22 +02:00
Noam 8ead17e25e Try Different User-Agent for Specific Sites
- DLing not working for some users, possibly because of the site - maybe
a different UA will make a difference
- Make links lowercase before testing them for content
2016-03-01 10:15:36 +02:00
Noam 9e943a9681 Handle ConnectionError Properly
- except requests.ConnectionError...
2016-02-29 16:26:34 +02:00
Noam b89dcfde65 More Scrubbing and Logging and Auto-Switch to HTTPS
- If Deluge is set to use HTTPS but there is no certificate configured
in HP, use HTTPS without verifying the certificate - connection will
still be encrypted but the certificate won't be validated - this will
show up as an ERROR in the logs
- Scrubbing session cookies
2016-02-29 13:45:30 +02:00
Noam c166e36c4e Log Scrubber
- Attempt to remove sensitive information from logs
2016-02-29 11:54:35 +02:00
Noam 2c9c4d32db Another Fix For Encoding Issues
- Apparently some torrents are already proper UTF8 so we don't need to
encode them...
2016-02-28 22:48:37 +02:00
Noam 06ae4e97a0 Handle UnicodeDecodeError
- Attempt at handling encoding errors with specific torrent files
2016-02-28 16:47:17 +02:00
Noam e2097fdb31 Expanded SSL Description 2016-02-28 13:42:34 +02:00
Noam ef08a50673 Deluge SSL and More Logging
- Added option to use Deluge WebUI SSL using certificate file path
- Added logging in order to understand other bugs
2016-02-28 12:37:44 +02:00
Andrzej Ciarkowski 97e405ee8c metadata.py: Use arbitrary variables from existing tags or database in renamer.
This commit adds the possiblity to use variables from tags already present in
the downloaded media files in file, folder and album art renaming routines. The
variable names translate directly to MediaFile field names, so it is now
possible to use variables like $mb_albumid, $genre, $bitrate, $samplerate, etc.
The full list can be read from MediaFile.readable_fields().
2016-02-27 18:34:05 +01:00
Andrzej Ciarkowski 55eed7c378 pathrender: Add unit tests module for pathrender.py 2016-02-27 17:09:29 +01:00
Noam 85f5dcf2cb Merge remote-tracking branch 'refs/remotes/rembo10/develop' into develop 2016-02-27 12:59:26 +02:00
satreix a4c9990df1 pep: fix e262 2016-02-26 19:33:30 +01:00
satreix 72b764cc51 pep: fix e502 2016-02-26 19:25:21 +01:00
Andrzej Ciarkowski 7e9bd432ce postprocessor.py: Safeguard against lack or ReleaseDate in metadata 2016-02-26 17:48:55 +01:00
rembo10 4b80e2b39b v0.5.13 v0.5.13 2016-02-25 19:44:11 +00:00
rembo10 0ac947099c Updated changelog for v0.5.13 2016-02-25 19:24:19 +00:00
rembo10 37a086d58d Possible fix for #2530 & #2526 2016-02-25 17:54:25 +00:00
rembo10 130cf51cc6 Fixed .pep8 for travis build (v0.5.12) v0.5.12-1 2016-02-25 17:30:55 +00:00
rembo10 7e4a1e453b Revert "Took out E123 from .pep8"
This reverts commit 56de4c63a7.
2016-02-25 17:29:43 +00:00
rembo10 9c946b69e1 v0.5.12 v0.5.12 2016-02-25 17:25:15 +00:00
rembo10 61ad94c0a0 Updated changelog for v0.5.12 2016-02-25 17:24:50 +00:00
rembo10 56de4c63a7 Took out E123 from .pep8 2016-02-25 17:23:41 +00:00
rembo10 1dfa31c275 Merge remote-tracking branch 'satreix/feat-pep-e302' into develop 2016-02-25 17:17:07 +00:00
rembo10 e16087eb54 Merge remote-tracking branch 'satreix/feat-pep-e111' into develop 2016-02-25 17:14:55 +00:00
rembo10 289293f23b Merge remote-tracking branch 'satreix/develop' into develop 2016-02-25 17:14:46 +00:00
rembo10 59112c1a83 Changed optional values for pathrender to use curly braces 2016-02-25 17:12:30 +00:00
satreix dd30ed460d pep: fix E111 2016-02-25 12:33:38 +01:00
satreix bc54b5abaf pep: fix E302 2016-02-25 12:24:06 +01:00
satreix 05d316615a pep: fix commenting 2016-02-25 11:15:24 +01:00
rembo10 0eb8702a8e Merge remote-tracking branch 'andrzejc/develop' into develop 2016-02-25 00:58:01 +00:00
rembo10 dfc6a6f93a Merge remote-tracking branch 'noam09/develop' into develop 2016-02-25 00:56:40 +00:00
Noam 1bb0b3c9bf No Need For Deluge Username
- Removed username configuration option, unneeded
2016-02-24 17:14:14 +02:00
Andrzej Ciarkowski 89d5649b4f config.html: Add explanation text for optional elements and single-quote escapes
This is follow up to the change introducing "pathrender.py" and extended path
formatting syntax.
2016-02-22 20:19:28 +01:00
rembo10 4b3b8d2795 v0.5.11 v0.5.11 2016-02-20 21:19:03 +00:00
rembo10 eeff731858 Updated changelog for release 2016-02-20 21:18:54 +00:00
rembo10 63abd73942 Merge remote-tracking branch 'andrzejc/date-in-patterns' into develop 2016-02-20 21:12:06 +00:00
rembo10 c74bec2d29 Merge remote-tracking branch 'andrzejc/transmission-session-id' into develop 2016-02-20 21:10:55 +00:00
Noam bd74d21c83 Moved Around Torrent-Type Checking
- From local/data->URL>magnet to magnet->URL->local/data. I feel stupid.
2016-02-19 11:38:37 +02:00
Noam 41aee3d6bb Encode UTF-8 Before Base64ing
- I was using UTF-8 when I started out, don't know why I changed it back
then... Oh well, hopefully this solves the encoding problems (note to
self: you can't base64 unicode)
2016-02-18 19:35:48 +02:00
Noam 396e75ed2d Exception Debugging
- Add traceback output to log
2016-02-18 17:02:44 +02:00
Andrzej Ciarkowski 769e9c1730 postprocessor.py: Allow $Date variable in file/folder name patterns.
Also lowercase variant $date, both resolve to the same field ReleaseDate taken
from metadata.
2016-02-17 22:46:46 +01:00
Andrzej Ciarkowski 33d38f33e5 transmission.py: Don't request session id in subsequent requests.
If session id from previous request to Transmission is present, try using it and
retry the request with new session id only if the first try fails with status
code 409. This will decrease number of required requests by half.
2016-02-17 22:26:48 +01:00
Noam 876b6402c4 Better URL Checking and Logging
- Improved if/else so that URLs won't end up in the file/data opener
- Log torrent file content
2016-02-17 17:55:46 +02:00
Noam 0e334a8f92 Label Debugging
- Labels not set properly, need log
2016-02-17 17:28:19 +02:00
Noam 6218734783 Encoding Change and More String Formatting
- Try base64 encoding utf-8 if ascii fails
- More string formatting
2016-02-17 17:22:59 +02:00
Noam da5ac9757a Remove requests iter_content
- inter_content might have been the reason for repeated encoding issues
- let's try with good old r.text
2016-02-17 16:20:37 +02:00