Commit Graph

13 Commits

Author SHA1 Message Date
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
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
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
8c3af7029e Update test_imgur.py 2021-11-16 17:05:46 +03:00
OMEGARAZER
bd802df38c Update test_imgur.py
Adding test for .giff/.gift imgur extension
2021-11-16 17:05:46 +03: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
3cdae99490 Implement callbacks for downloading 2021-07-27 13:39:49 +10:00
Serene-Arc
8826fc5aa9 Fix outdated test 2021-07-18 14:42:20 +10:00
Serene-Arc
e8998da2f0 Catch some Imgur errors with weird links 2021-06-25 17:52:11 +10:00
Serene-Arc
8be3efb6e4 Fix bug with Imgur gifs being shortened too much
The rstrip function was used wrongly, it doesn't remove a substring but
rather removes any of the characters provided, so here it removed any I,
G, V, or F that finished the six character ID for Imgur, resulting in a
404 error for the resources in question.
2021-06-08 13:08:39 +10:00
Serene-Arc
3b28ad24b3 Fix bug with some Imgur extensions 2021-05-19 09:57:27 +10:00
Ali Parlakci
1c4cfbb580 tests: move outside of the package 2021-04-21 08:29:14 +10:00