Commit Graph

135 Commits

Author SHA1 Message Date
hypsometric
b6388f7daa Fixes for Python 3.10
- deluge: b64encode returns bytes, transform into string before
  serializing to JSON.
- deluge: no more need to try different encodings for the torrent
  filename or the base64-encoded content, should all be unicode strings
  with Python 3
- collections.abc: Iterable, Mapping, MutableMapping, MutableSequence
  moved from collections to collections.abc since Python 3.3
- pygazelle: html.parser.HTMLParser().unescape() moved to
  html.unescape() in Python 3.4
2022-01-19 18:21:16 +01:00
rembo10
9551e1b04a Update pytz lib 2022-01-15 21:46:34 +05:30
rembo10
ab4dd18be4 Initial python3 changes
Mostly just updating libraries, removing string encoding/decoding,
fixing some edge cases. No new functionality was added in this
commit.
2022-01-14 10:38:06 +05:30
rembo10
ee58f62b2b Update root certificates for the requests lib 2021-10-15 08:13:49 +05:30
AdeHub
219f855dfc qBittorrent v2 api 2020-04-13 09:50:40 +12:00
AdeHub
5d145b6f8a revert to older requests version 2019-07-15 13:54:34 +12:00
AdeHub
3ab31f1da7 urllib3
requests supported version
2019-07-14 21:02:40 +12:00
AdeHub
cf85d94a37 requests packages 2019-07-14 20:46:19 +12:00
Ade
d7275e5a99 Update Requests lib 2019-01-06 12:12:32 +13:00
Hypsometric
f66a37abbd Redacted: use a FL token when available
- Use a FL token when available
- Added a configuration (default off) to enable the feature
- Skip prefetching the data with Deluge as with Transmission in
`preprocess()`

- Note: because QBittorrent & uTorrent need the data to compute the
torrenthash but still require the url to download the file, it will
result in 2 FL tokens used instead of one because the .torrent will be
downloaded twice from the server.

Fixes #3163
2018-12-13 16:41:22 +01:00
cheese1
694c17a40b fix typo 2018-09-02 20:38:54 +02:00
Fish2
ae328a15aa lossless compression of images saved 93KB 2017-06-04 11:41:07 +01:00
DJ-666
1da1f5124a Rename PTH to Redacted and fix invalid User-Agent (Again)
This is a duplicate of albshin's PR as I got impatient waiting for him
to submit it to the develop branch with the addition of removing the
previous user agents and replacing them with Headphones as the agent.
Redacted considers falsifying the agent as a bannable offence.

From albshin's PR;
"Changes all instances of PassTheHeadphones to Redacted. Removed the URL
option for Redacted as it's unnecessary(?).

Fixed a bug in the pyGazelle library in which the User-Agent was invalid
due to a missing space. Should work now for Redacted."
2017-03-31 23:36:34 +10:30
Ade
4095bf213e mutagen, musicbrainzngs, beets lib updates 2017-03-25 11:47:04 +13:00
Denzo
352b009e91 # Removed slash from ajax.php 2016-11-29 20:54:20 +01:00
Denzo
b6b33e1b1e + Added support for PassTheHeadphones.me
% Removed hardcoding for What.CD in pygazelle API, making it easy to add other Gazelle-based trackers

+ Added URL parameter for What.CD and PTH, in case they come back under a new domain name
2016-11-29 20:49:52 +01:00
Bryon Roche
323d364572 Added missing support method for current FauxSocket for pypy 2016-07-14 05:27:07 -07:00
rembo10
ba4ed12ec8 Merge remote-tracking branch 'maxkoryukov/feature/unittestcompat-assert-items-equal' into develop 2016-06-02 23:13:34 +01:00
maxkoryukov
a5ab2e4080 UGP: improved unittestcompat. assertItemsEqual added 2016-04-13 14:57:18 +05:00
maxkoryukov
43d37b875f FIX: unittestcompat now support tests without python-doc.
That was an ugly bug...
2016-03-12 18:29:27 +05:00
maxkoryukov
b143a942ae Unittests for config.py 2016-02-14 16:56:59 +05:00
rembo10
2110eb9855 Revert "Migrate as much as possible to pip and requirements.txt"
This reverts commit 982594a4a5.
2016-01-29 15:38:12 +00:00
Jamie Magee
982594a4a5 Migrate as much as possible to pip and requirements.txt 2015-12-04 11:09:09 +01:00
Bas Stottelaar
715e497789 Upgraded requests to git-master and forced urllib3 to git-master. Fixes strange errors with pyOpenSSL. See https://github.com/shazow/urllib3/issues/556. 2015-09-10 19:42:07 +02:00
Ade
d2782179aa rutracker revision
- Now uses requests with more logging
- Update to latest BeautifulSoup and html5lib libs
2015-08-02 12:18:25 +12:00
rembo10
24d7647c08 Updated notifymyandroid library 2015-07-04 12:13:40 -07:00
Ade
206ea72a27 mb demo 2015-05-23 08:59:56 +12:00
rembo10
db1519bcea Updated musicbrainz library 2015-05-19 20:26:50 -07:00
Tim
24a52a294c Allow authentication on custom MusicBrainz servers using Basic HTTP Authentication. 2015-02-19 00:54:10 +02:00
Bas Stottelaar
8be598c533 Added enum backport 1.0.4 for beets 2015-01-27 22:31:49 +01:00
Bas Stottelaar
cf6a6a876f Upgraded beets to 1.3.10, including patches 2015-01-27 22:26:35 +01:00
Bas Stottelaar
ea842a95ca Upgraded mutagen to 1.27 2015-01-27 22:22:50 +01:00
Bas Stottelaar
f6f1328721 Upgrade mako to 1.0.1 2015-01-27 22:06:05 +01:00
Bas Stottelaar
1e2901810f Upgraded PyTZ to 2014.10 2015-01-27 22:03:18 +01:00
Bas Stottelaar
c5f67d070d Upgraded tzlocal to 1.1.2 2015-01-27 22:02:21 +01:00
Bas Stottelaar
527d2087c1 Upgraded unidecode to 0.04.17 2015-01-27 22:01:22 +01:00
Bas Stottelaar
f6b5c0190d Upgraded requests to 2.5.1 2015-01-27 21:55:49 +01:00
Ade
37d9cf11c3 Scheduling part 2
Remove job if interval changed to 0

Plus, fixup os x notify registering not working with yosemite and also
show album image in notification
2015-01-27 12:21:47 +13:00
Bas Stottelaar
5d69984ef9 Upgraded requests to 2.5.0 2014-12-19 21:09:54 +01:00
Ade
8ae0e6d4d3 xld encoding
Use python method to read plist, should give a bit more logging
2014-11-19 22:48:23 +13:00
Bas Stottelaar
3cf82f4dac Added the real pkg_resources from setuptools 7.0. Should fix #2001 2014-11-12 23:31:05 +01:00
Bas Stottelaar
f495fc01bc Fixed SSL too long errors in CherryPy.
The fix is suggested by https://bitbucket.org/cherrypy/cherrypy/issue/1298/ssl-not-working
2014-11-12 22:29:04 +01:00
Bas Stottelaar
fda4658e92 Fix for #1994 2014-11-10 20:47:27 +01:00
Jesse Mullan
015d269667 Fix E711 comparison to None should be if cond is None: 2014-11-01 16:22:05 -07:00
Bas Stottelaar
fd7bb4eb7e Add missing library for APScheduler. 2014-10-21 02:54:13 +02:00
Bas Stottelaar
553cc536c0 Upgraded APScheduler to 3.0.1. This includes pytz and tzlocal as dependencies. 2014-10-20 21:48:10 +02:00
andrenam
14c6f68fb7 - upgrade cherrypy to version 3.6.0
- dont't pass unicode hostname to cherrypy (see cherrypy-issue #1285,
https://bitbucket.org/cherrypy/cherrypy/issue/1285/n-must-be-a-native-str-got-unicode)
2014-10-14 02:43:55 +02:00
Bas Stottelaar
371401fa36 Updated requests library to 2.4.1. Should fix #1915 2014-09-25 14:08:27 +02:00
Ade
394876992b Lyrics mods
Switched to beets lyrics plugin
Fixes https://github.com/rembo10/headphones/issues/1896
2014-09-22 15:38:17 +12:00
Bas Stottelaar
5e98d96f65 Add proper support for logging in multiprocessing environment. Useful for multicore encoding. 2014-09-17 13:10:31 +02:00