Commit Graph

222 Commits

Author SHA1 Message Date
Serene-Arc
f40ac35f4a Add option to determine restriction scheme 2023-01-03 19:16:23 +10:00
OMEGA_RAZER
954df88c86 Merge branch 'aliparlakci:development' into development 2023-01-01 06:51:47 -05:00
Serene
b7aae727e5 Merge pull request #738 from Soulsuck24/development 2023-01-01 19:59:52 +10:00
OMEGARAZER
b6edc36753 Update connector for 7 digit ID's 2023-01-01 04:09:11 -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
OMEGA_RAZER
e92929ef07 Merge branch 'aliparlakci:development' into completion 2022-12-22 23:46:06 -05:00
Serene
c63a8842d9 Merge pull request #729 from OMEGARAZER/development 2022-12-22 18:11:16 +10:00
OMEGA_RAZER
7fef403757 Update completion.py 2022-12-20 13:32:43 -05:00
OMEGARAZER
2aea7d0d48 Move completion to pathlib 2022-12-20 13:05:50 -05: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
Serene
8d43cdeef7 Merge pull request #726 from Soulsuck24/development 2022-12-20 10:28:10 +10: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
OMEGARAZER
5d3a539eda Fix install of completion if dirs missing
Fixes situations if completion directories are missing and adds tests for installer.
2022-12-19 17:54:34 -05:00
OMEGARAZER
2e2dfe671b Fix fish/zsh completions
fixes mistake in fish/zsh completions.
2022-12-19 17:33:07 -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
OMEGARAZER
8c01a9e7a0 Consolidate to pyproject
Consolidates configs to pyproject.toml and updates workflows accordingly as well as sets sane minimums for dev requirements.

adds version check to main script.
2022-12-16 23:45:36 -05:00
OMEGARAZER
e32d322dbd Add shell completions 2022-12-16 14:56:44 -05:00
Serene
58e1d1a8f9 Merge pull request #713 from OMEGARAZER/development 2022-12-16 10:59:35 +10:00
Soulsuck24
15a9d25a9d Imgur webp coverage
update regex to catch _d in webp links from imgur.
2022-12-11 14:20:04 -05:00
OMEGARAZER
ac91c9089c Add 5xx soft fail for clone/archive 2022-12-10 21:19:29 -05:00
OMEGARAZER
3aa740e979 Add soft fail on 5xx Prawcore errors. 2022-12-10 12:36:54 -05:00
OMEGARAZER
d4bfe8fa19 Formatting cleanup
Cleanup some formatting from switch to Black
2022-12-03 14:49:39 -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
b30ced9be9 Redo Pylance typing changes 2022-11-30 21:48:10 -05:00
Serene
45429be27c Revert "Pylance typing" 2022-12-01 12:37:03 +10:00
OMEGARAZER
69fa1f3f09 Pylance typing
Fix Pylance warnings for typing
2022-11-30 21:29:07 -05: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
OMEGARAZER
fecb65c53a Lint run
Linting run through various things. Mostly markdownlint.
2022-11-29 11:48:24 -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
Serene-Arc
87104e7e6a Catch exceptions in cloner 2022-11-24 10:48:17 +10:00
OMEGARAZER
42416db8b9 Fix PRAW deprecations
Fix depreciations in MultiredditHelper and CommentForest.
2022-11-21 21:37:59 -05:00
Serene-Arc
5341d6f12c Add catch for per-submission praw errors 2022-11-20 18:54:56 +10:00
OMEGA_RAZER
0a586425d0 Merge branch 'aliparlakci:development' into DelayForReddit 2022-11-11 17:38:16 -05:00
Serene
25fdd28037 Merge pull request #692 from OMEGARAZER/hardlink_to 2022-11-09 09:55:54 +10:00
OMEGARAZER
3c7f85725e Narrow except
Narrow except to AttributeError
2022-11-08 12:06:20 -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
dc5a9ef497 link_to depreciation coverage
Futureproof for link_to depreciation.
https://bugs.python.org/issue39950
2022-10-14 18:15:49 -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