1
0
Fork 0
mirror of synced 2024-10-02 01:57:20 +13:00
Commit graph

100 commits

Author SHA1 Message Date
OMEGARAZER
0e28c7ed7c
Gfycat API
Moves Gfycat to use API via site access key.

Adds cachetools as dependency to reuse API keys for Gfycat/Redgifs at 95% of their TTL. Include tests to verify caching.

Updates versions of requests/yt-dlp/black/isort/pytest.

Added default timeout to requests calls.

Adds validate-pyproject and blacken-docs to pre-commit as well as updates versions.
2023-02-11 15:23:08 -05:00
Soulsuck24
0e23dcb8ad
Gfycat/Redgifs coverage
Coverage for direct gfycat links that redirect to redgifs. The redirect through the sites themselves are broken but this fixes that.

Coverage for o.imgur links and incorrect capitalisation of domains in download_factory.

Changed tests for direct as gfycat is handled by the gfycat downloader.

fix pornhub test as the previous video was removed.
2023-01-30 14:52:08 -05:00
OMEGARAZER
cf5f7bfd16
pep585 and pathlib updates 2023-01-25 22:23:59 -05:00
Serene
e96b167b71
Merge pull request #748 from Soulsuck24/development 2023-01-25 20:25:21 +10:00
Soulsuck24
105ceaf386
More Redgifs coverage 2023-01-25 04:43:06 -05:00
OMEGARAZER
5fbe64dc71
Move Imgur to API
Moves Imgur to use API with public Client-ID.
2023-01-21 17:49:31 -05:00
OMEGARAZER
8e60a12517
Imgur thumbnail coverage
Coverage for links posted to thumbnail variations.
2023-01-09 20:53:53 -05:00
OMEGARAZER
0f94c98733
Account for new gallery url
Coverage for gallery urls
2023-01-09 12:48:24 -05:00
Soulsuck24
579c5ab8eb
Add new Redgifs subdomain
Seems there's a v3 subdomain now (looks like it's mostly for mobile)
2023-01-06 11:56:54 -05:00
OMEGA_RAZER
954df88c86
Merge branch 'aliparlakci:development' into development 2023-01-01 06:51:47 -05:00
Soulsuck24
874c7e3117
Redgif fixes
Missing half of #733
2022-12-31 08:53:13 -05:00
OMEGARAZER
2bafb1b99b
Consolidate flake8 settings
Consolidates sane flake8 settings to pyproject with the Flake8-pyproject plugin.

Does not change logic of test workflow but allows base settings to live in pyproject for anyone using flake8 as an external linter (e.g. vscode)

Also fixes some flake8 errors that were not being picked up by current testing, mostly unused imports.
2022-12-28 10:00:43 -05:00
Soulsuck24
13887ca7e1
Redgif updates
Coverage for direct links.

The direct link won't work because it will have the wrong auth anyway but this will at least end up with the right API call.
2022-12-26 20:25:20 -05:00
Soulsuck24
fe9cc7f29f
Redgifs updates
Update Redgifs regex for further edge case.

Add test for checking ID.
2022-12-24 20:52:45 -05:00
Serene
c63a8842d9
Merge pull request #729 from OMEGARAZER/development 2022-12-22 18:11:16 +10:00
OMEGARAZER
57ac0130a6
revert init files 2022-12-20 12:16:31 -05:00
OMEGA_RAZER
b3e4777206
Update download_factory.py
Attempt to fix #724

Narrows down characters available to extensions in the regex. Outside of  3 and 4, the only extensions that I can think of this doesn't hit are bz2 and 7z (which wasn't caught before).
2022-12-19 22:02:16 -05:00
OMEGARAZER
83f45e7f60
Standardize shebang and coding declaration
Standardizes shebang and coding declarations.

Coding matches what's used by install tools such as pip(x).

Removes a few init files that were not needed.
2022-12-19 18:32:37 -05:00
Soulsuck24
603e7de04d
Redgifs fix
Handle redgifs link with trailing / causing id to return empty string.
2022-12-19 11:02:06 -05:00
Soulsuck24
15a9d25a9d
Imgur webp coverage
update regex to catch _d in webp links from imgur.
2022-12-11 14:20:04 -05:00
Serene-Arc
c4f636c388 Fix import formatting 2022-12-03 15:33:13 +10:00
Serene-Arc
0873a4a2b2 Format according to the black standard 2022-12-03 15:11:17 +10:00
OMEGARAZER
831f49daa6
Refurb linting
Lint with [refurb](https://github.com/dosisod/refurb) using `--disable 126 --python-version 3.9`
2022-11-30 17:19:02 -05:00
Soulsuck24
48c96beba2
Redgifs improvements
Add check to verify token was received.
Update headers sent to content API.

Add availability check for videos to resolve last part of #472 where only SD version is available.
2022-11-27 18:07:43 -05:00
OMEGARAZER
dfc21295e3
Add Delay for Reddit support
Adds support for delayforreddit.com non-direct links.
2022-11-05 10:51:33 -04:00
Soulsuck24
0e90a2e900
Switch Redgifs to temporary tokens
Initial switch to temporary tokens for Redgifs. Gets a new auth token for every API request.
2022-10-24 12:45:26 -04:00
Soulsuck24
df30a3a3ac
Temp fix for Redgifs
TEMPORARY FIX.

I can't stress enough this is is temporary and will likely stop working at some point. It works for now though.
2022-10-18 15:38:53 -04:00
OMEGARAZER
02b6e66941
Imgur edge case coverage
Covers edge case of additional arguments on extension.

Also removed duplicate or redundant tests.
2022-09-28 00:55:10 -04:00
Serene-Arc
1dff7500e7 Remove duplicate entries 2022-09-20 17:33:44 +10:00
Serene
06816098dc
Merge branch 'development' into imgur 2022-09-20 17:28:48 +10:00
SoulSuck24
106d7596b1 Imgur updates
Update Imgur logic to cover malformed links that cause a redirect leading to the html of the page being saved as an image.
2022-09-18 23:27:17 -04:00
SoulSuck24
7bd957aafa Redo edge case coverage for Redgifs
Cover edge cases that shouldn't ever happen but probably will sometime.
2022-09-18 14:32:12 -04:00
SoulSuck24
d4f7deaa68 Revert "Edge case coverage"
This reverts commit 2f2b5b749c.
2022-09-18 14:30:43 -04:00
SoulSuck24
2f2b5b749c Edge case coverage
Cover edge cases that shouldn't ever happen but probably will sometime.

Also included Imgur changes to cover similar situations of malformed/redirected links.
2022-09-18 13:24:42 -04:00
SoulSuck24
95749584ec Redgifs fixed?
If this doesn't work then I give up...
2022-09-16 20:41:17 -04:00
SoulSuck24
0a9ecac410 Redgif image fixes 2022-09-16 14:47:55 -04:00
SoulSuck24
e0a36f4eab Re-fix Redgifs
API seems to return incorrect signature value when sending header. Other fixes seems to have worked temporarily but have stopped working so they're removed.
2022-09-12 22:26:02 -04:00
Serene-Arc
d60b4e7fdd Fix Redgifs module 2022-09-01 11:19:07 +10:00
Serene-Arc
9277903308 Base VReddit class off of Youtube class 2022-07-15 15:18:28 +10:00
Serene-Arc
7d4eb47643 Rename class 2022-07-15 15:18:28 +10:00
Serene-Arc
12982c00cd Switch redgifs to dynamic file extensions 2022-07-15 15:18:28 +10:00
Serene-Arc
f49a1d7a2d Fix gfycat after redgifs changes 2022-07-15 15:18:28 +10:00
Serene-Arc
90a2eac90d Add support for Redgifs images and galleries 2022-07-15 15:18:28 +10:00
BlipRanger
d64acc25f5 Add tests, fix style. 2022-04-25 12:53:59 -04:00
BlipRanger
dbd0c6cd42 Add support for v.reddit links. 2022-04-25 12:09:09 -04:00
Serene-Arc
af0a545c16 Catch additional error in Gallery 2021-12-20 20:43:09 +10:00
Serene-Arc
36ff95de6b Add Patreon image support 2021-12-19 13:44:24 +10:00
Serene-Arc
8925643331 Rename module to reflect backend change 2021-11-24 10:40:18 +10:00
Serene-Arc
17939fe47c Fix bug with youtube class and children 2021-11-22 14:37:21 +10:00
Serene-Arc
53562f4873 Fix regex 2021-11-16 17:05:46 +03:00