Commit Graph

189 Commits

Author SHA1 Message Date
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
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 2bbf1b644e Change logging message 2022-07-23 17:24:05 +10:00
Serene-Arc f22a8aec4d Fix line length 2022-07-23 17:24:05 +10:00
Jacob Chapman 5d76fcd5aa Update downloader.py 2022-07-23 17:24:05 +10:00
Jacob Chapman 7eb2ab6d7d Update configuration.py 2022-07-23 17:24:05 +10:00
Jacob Chapman 9545407896 Update __main__.py 2022-07-23 17:24:05 +10:00
Jacob Chapman 4fc0d5dc1d Add score filtering 2022-07-23 17:24:05 +10:00
Serene-Arc af3f98f59c Change logger message level 2022-07-22 15:45:38 +10:00
Serene-Arc 23e20e6ddc Rename variable 2022-07-22 15:45:09 +10:00
Serene-Arc cb3415c62f Extract YAML function 2022-07-22 15:44:33 +10:00
Piotr Migdal 5f443fddff a better check for opts 2022-07-22 15:38:46 +10:00
Piotr Migdal 395bf9180a explicit warnings for non-exisitng args 2022-07-22 15:38:46 +10:00
Piotr Migdal 798ed728f5 yaml for options 2022-07-22 15:38:46 +10:00
Serene 8ab13b4480 Merge pull request #633 from chapmanjacobd/patch-3
fix: Redirect to /subreddits/search
2022-07-17 11:17:52 +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 8c59329ffa Add exclusion options to archiver 2022-07-15 15:18:28 +10:00
Serene-Arc 9f3dcece4d Strip any newline characters from names 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 e8d767050f Add file scheme naming for archiver 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
Serene-Arc a620ae91a1 Add --subscribed option 2022-07-15 15:18:28 +10:00
Jacob Chapman 1ad2b68e03 fix: Redirect to /subreddits/search
```
  File "/home/xk/github/o/bulk-downloader-for-reddit/bdfr/connector.py", line 413, in check_subreddit_status
    assert subreddit.id
  File "/home/xk/.local/share/virtualenvs/bulk-downloader-for-reddit-dCAFmVJi/lib/python3.10/site-packages/praw/models/reddit/base.py", line 34, in __getattr__
    self._fetch()
  File "/home/xk/.local/share/virtualenvs/bulk-downloader-for-reddit-dCAFmVJi/lib/python3.10/site-packages/praw/models/reddit/subreddit.py", line 584, in _fetch
    data = self._fetch_data()
  File "/home/xk/.local/share/virtualenvs/bulk-downloader-for-reddit-dCAFmVJi/lib/python3.10/site-packages/praw/models/reddit/subreddit.py", line 581, in _fetch_data
    return self._reddit.request("GET", path, params)
  File "/home/xk/.local/share/virtualenvs/bulk-downloader-for-reddit-dCAFmVJi/lib/python3.10/site-packages/praw/reddit.py", line 885, in request
    return self._core.request(
  File "/home/xk/.local/share/virtualenvs/bulk-downloader-for-reddit-dCAFmVJi/lib/python3.10/site-packages/prawcore/sessions.py", line 330, in request
    return self._request_with_retries(
  File "/home/xk/.local/share/virtualenvs/bulk-downloader-for-reddit-dCAFmVJi/lib/python3.10/site-packages/prawcore/sessions.py", line 266, in _request_with_retries
    raise self.STATUS_EXCEPTIONS[response.status_code](response)
prawcore.exceptions.Redirect: Redirect to /subreddits/search
```
2022-04-28 19:44:17 -05: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 806bd76f87 Strip any newline characters from names 2022-03-25 10:50:52 +10:00
Serene-Arc 06988c40b3 Switch redgifs to dynamic file extensions 2022-02-20 15:48:02 +10:00
Serene-Arc 7645319510 Fix gfycat after redgifs changes 2022-02-18 12:49:46 +10:00