1
0
Fork 0
mirror of synced 2024-09-29 08:41:56 +13:00
Commit graph

91 commits

Author SHA1 Message Date
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
OMEGARAZER
f05e909008 Stop videos from being downloaded as images
Erroneous .gifv extensions such as .giff or .gift resolve to a static image and are downloaded by the direct downloader. (ex: https://i.imgur.com/OGeVuAe.giff  )
2021-11-16 17:05:46 +03:00
Serene-Arc
801784c46d Fix a crash when downloading a disabled pornhub video 2021-11-05 13:23:55 +10:00
Serene-Arc
c6c6002ab2 Update Erome module 2021-10-02 17:50:20 +10:00
Serene-Arc
eeb2054606 Switch to yt-dlp 2021-10-02 17:50:20 +10:00
Serene
e004ccd148
Merge pull request #521 from Serene-Arc/bug_fix_518
Fix bug with different Vidble links
2021-09-14 13:48:26 +10:00
Serene-Arc
80baab8de7 Fix bug with different Vidble links 2021-09-14 13:47:46 +10:00
Eli Lipsitz
33312687ac imgur: download videos as mp4 instead of gif
Some imgur URLS have the extension ".gifv" and show up as a gif,
even though they're actually supposed to be mp4 videos. Imgur
serves all videos/gifs as both .gif and .mp4. The image dict has
a key "prefer_video" to distinguish the two. This commit
overrides the .gif extension if "prefer_video" is true to ensure
we download the submission as originally intended.
2021-09-12 17:30:25 -05:00
Serene-Arc
aee6f4add9 Add Vidble to download factory 2021-09-11 12:15:35 +10:00
Serene-Arc
940d646d30 Add Vidble module 2021-09-11 12:13:21 +10:00