22 Commits

Author SHA1 Message Date
Hypsometric
5efbd561d6 Allow the use of apikey with GazelleAPI & Redacted 2025-03-19 17:16:55 +01:00
rembo10
e8c392824f Fix regex warnings in pygazelle 2024-01-18 16:02:59 +05:30
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
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
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
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
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
Bas Stottelaar
a6fe517f87 Removed import lib.*/from lib.* 2014-09-16 22:06:41 +02:00
David
0c61eb11f5 Dropping trailing whitespaces 2014-08-06 12:46:26 +02:00
cohena
729a105377 Adding 'keeplogged' argument to maintain what.cd api login 2014-03-30 18:05:04 -07:00
cohena
ca8ab32eaf Handle login expiration 2014-03-30 13:07:38 -07:00
evanjd
03d577eb72 Fix for issues with what.cd authentication 2014-01-26 22:03:17 +11:00
cohena
162c3cb604 Fix search hang in pygazelle if server didn't respond, timeout is now 30 secs 2013-12-01 19:43:00 -08:00
cohena
e18cb4c5c2 Fix another edge case login loop 2013-11-07 01:36:30 -08:00
cohena
cb8a1c91a3 remove a bunch of old comments 2013-11-07 01:01:09 -08:00
cohena
e62b85810e Fix requests import 2013-11-07 00:58:51 -08:00
cohena
3dc6417e7a Update pygazelle version, including CRITICAL login hammering fix 2013-11-07 00:51:18 -08:00
Aaron Cohen
9b57d70893 Fixing import 2012-09-27 08:56:15 -07:00
Aaron Cohen
eb16244e69 Adding more verbose errors when login fails 2012-09-27 00:13:24 -07:00
Aaron Cohen
c2a44e53be Removing extraneous comments 2012-09-22 21:35:07 -07:00
Aaron Cohen
3d066d7e5b Switching to pygazelle 2012-09-22 21:08:14 -07:00