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

105 commits

Author SHA1 Message Date
OMEGARAZER
b081f5cc37
Refactor Imgur
Refactor Imgur to be able to test getting ID and mark downloads as slow as they are currently rate limited through Github.

Also removed hash tests for nsfw links as they are being removed by Imgur.
2023-05-25 18:14:35 -04:00
OMEGARAZER
38bef1d1e0
Add Catbox downloader
Adds downloader for catbox.moe collections.
2023-04-27 16:14:17 -04:00
OMEGARAZER
7fbd001e8a
Fix Youtube test
tested video now private. Updated to new video that should stay up.
2023-03-11 10:26:01 -05:00
Soulsuck24
dd283130e3
Imgur fixes
Update regex for links styled as direct and album
2023-02-27 15:53:47 -05:00
Soulsuck24
80c66c8c78
Erome fixes
Fixes searched class to not include thumbnails of other albums.
2023-02-18 23:59:32 -05:00
OMEGARAZER
a3b9e78f53
Update tests
Seems the thumbs subdomain was changed for these cases.
2023-02-17 15:17:25 -05:00
Serene
0051877e01
Merge pull request #769 from OMEGARAZER/gfycat-api 2023-02-12 11:45:25 +10:00
Serene
e5b184ef9a
Merge pull request #762 from OMEGARAZER/pyupgrade-lint 2023-02-12 11:45:00 +10:00
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
OMEGARAZER
afd2f88f91
Update test_direct.py
If this changes again another link should probably be found as this is only a few days old.
2023-02-01 14:36:23 -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
247ea5ddd0
UP009 2023-01-28 23:56:23 -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
Soulsuck24
874c7e3117
Redgif fixes
Missing half of #733
2022-12-31 08:53:13 -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
da74096cde
Update test_download_factory.py 2022-12-19 22:04:49 -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
0873a4a2b2 Format according to the black standard 2022-12-03 15:11:17 +10: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
9ee13aea23
Update tests
Suspended user in two tests.

Updated hashes and yt-dlp version.

Removed success check on known failure.
2022-11-26 14:36:19 -05:00
OMEGA_RAZER
0a586425d0
Merge branch 'aliparlakci:development' into DelayForReddit 2022-11-11 17:38:16 -05:00
OMEGARAZER
f3c7d796aa
Update for other failing tests
Seems there was some overlap in test names that was contributing to the test errors. Updated hash and test name.
2022-11-08 15:37:21 -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
OMEGARAZER
b536a486b6
Imgur argument tests
Add tests for links that have arguments added to the extension field in retrieved image_dict
2022-09-28 13:21:05 -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
b7d21161fb Update test 2022-09-27 10:53:12 +10:00
Serene-Arc
3b5f8bca67 Update hashes 2022-09-24 09:46:05 +10:00
Serene-Arc
c834314086 Update hash 2022-09-24 09:46:05 +10:00
Serene-Arc
7bb2a9adbb Remove obsolete test 2022-09-24 09:46:05 +10:00
Serene-Arc
57e59db458 Update Erome link regex 2022-09-24 09:46:05 +10:00
Serene-Arc
cd05bc388e Fix tests 2022-09-20 17:33:51 +10:00
Serene
f4598c4bec
Merge pull request #659 from Soulsuck24/development 2022-09-20 17:24:54 +10:00
Serene-Arc
5c343ef790 Fix Redgifs tests 2022-09-20 11:09:39 +10:00
Serene-Arc
35645da241 Add missing mark 2022-09-03 11:31:57 +10:00
Serene-Arc
5dbb4d00d4 Remove dead link tests 2022-09-03 11:29:31 +10:00
Serene-Arc
d60b4e7fdd Fix Redgifs module 2022-09-01 11:19:07 +10:00
Serene-Arc
86e451d49e Fix test case 2022-07-15 15:18:28 +10:00
Serene-Arc
7d4eb47643 Rename class 2022-07-15 15:18:28 +10:00
Serene-Arc
3fd5bad407 Update some test hashes 2022-07-15 15:18:28 +10:00
Serene-Arc
7d4916919d Add test case 2022-07-15 15:18:28 +10:00