1
0
Fork 0
mirror of synced 2024-10-01 09:41:03 +13:00
Commit graph

208 commits

Author SHA1 Message Date
Serene-Arc
d977595bde Add error catch for youtube and site downloaders 2021-04-18 16:44:06 +03:00
Serene-Arc
9417e0cc04 Remove bad encapsulating try-except 2021-04-18 16:44:06 +03:00
Serene-Arc
4d91cf7c0f Shorten filenames that are too long 2021-04-18 16:44:06 +03:00
Serene-Arc
ba6cf42096 Add shortened Youtube links to downloader factory 2021-04-18 16:44:06 +03:00
Serene-Arc
ae0269e13b Add option to search for files pre-emptively 2021-04-18 16:44:06 +03:00
Serene-Arc
285d422c0e Add some more integration tests 2021-04-18 16:44:06 +03:00
Serene-Arc
af348a05dd Add some integration tests 2021-04-18 16:44:06 +03:00
Serene-Arc
2b9dc1b96c Allow subreddits and multireddits to fail individually 2021-04-18 16:44:06 +03:00
Serene-Arc
fc6e5872b2 Add log entry at end of program 2021-04-18 16:44:06 +03:00
Serene-Arc
6657f0803d Fix bug with users in un-authenticated sessions 2021-04-18 16:44:06 +03:00
Serene-Arc
3e18997652 Move logfiles into configuration directory on OS 2021-04-18 16:44:06 +03:00
Serene-Arc
6d6327a396 Add function to calculate all existing file hashes if wanted 2021-04-18 16:44:06 +03:00
Serene-Arc
f941161014 Add much more logging 2021-04-18 16:44:06 +03:00
Serene-Arc
312769cb66 Remove unused file 2021-04-18 16:44:06 +03:00
Serene-Arc
f7989ca518 Add method to sanitise subreddit inputs 2021-04-18 16:44:06 +03:00
Serene-Arc
d3c8897f6a Fix bug where file extension is never specified for text posts 2021-04-18 16:44:05 +03:00
Serene-Arc
945116063f Allow for ID or URL to be provided for submissions 2021-04-18 16:44:05 +03:00
Serene-Arc
3703d2b9b9 Load config from arguments first 2021-04-18 16:44:05 +03:00
Serene-Arc
50531c7b3e Switch from argparse to click 2021-04-18 16:44:05 +03:00
Serene-Arc
dd522c18d4 Add missing options to Configuration 2021-04-18 16:44:05 +03:00
Serene-Arc
f8347e2d31 Add function to process click contexts for config 2021-04-18 16:44:05 +03:00
Serene-Arc
271c0b989d Abstract configuration into class 2021-04-18 16:44:05 +03:00
Serene-Arc
92386000d8 Implement missed test 2021-04-18 16:44:05 +03:00
Serene-Arc
48233fad36 Update tests with new valid links 2021-04-18 16:44:05 +03:00
Serene-Arc
1046bcdf69 Add last few tests for RedditDownloader 2021-04-18 16:44:05 +03:00
Serene-Arc
d78c4ca78e Add indexing for multiple resources from one submission 2021-04-18 16:44:05 +03:00
Serene-Arc
eca5da7f46 Add test for resource 2021-04-18 16:44:05 +03:00
Serene-Arc
25f70463f3 Allow for single root folder 2021-04-18 16:44:05 +03:00
Serene-Arc
839b6f50a9 Update regex for finding extension 2021-04-18 16:44:05 +03:00
Serene-Arc
a471629287 Convert some strings to f-strings 2021-04-18 16:44:05 +03:00
Serene-Arc
09e42ff5f9 Add some more tests for downloader 2021-04-18 16:44:05 +03:00
Serene-Arc
d2cc3e8b6a Add authenticated Reddit instance fixture 2021-04-18 16:44:05 +03:00
Serene-Arc
14b63487bc Immediately write token to disk in case it is unused 2021-04-18 16:44:05 +03:00
Serene-Arc
cfd92a8d14 Add some logging output 2021-04-18 16:44:05 +03:00
Serene-Arc
1f62a7ccd6 Fix function return 2021-04-18 16:44:05 +03:00
Serene-Arc
d8a767e8da Fix option default 2021-04-18 16:44:05 +03:00
Serene-Arc
933be21392 Update tests 2021-04-18 16:44:05 +03:00
Serene-Arc
afe618916b Make sure refresh token is always written to file 2021-04-18 16:44:05 +03:00
Serene-Arc
db6c64d0ab Fix some tests 2021-04-18 16:44:05 +03:00
Serene-Arc
7d30af3559 Add empty authenticator 2021-04-18 16:44:05 +03:00
Serene-Arc
735833503f Fix wrong if condition 2021-04-18 16:44:05 +03:00
Serene-Arc
862121cac6 Fix OAuth2 2021-04-18 16:44:05 +03:00
Serene-Arc
36f516e3f0 Re-implement OAuth2 2021-04-18 16:44:05 +03:00
Serene-Arc
95876b3400 Fix typing 2021-04-18 16:44:05 +03:00
Serene-Arc
7c2b7b0e83 Move scope regex parsing 2021-04-18 16:44:05 +03:00
Serene-Arc
dd1831b0ea Remove unimplemented test 2021-04-18 16:44:05 +03:00
Serene-Arc
cf1029de80 Fix error with verbose argument settings 2021-04-18 16:44:05 +03:00
Serene-Arc
1422591bf4 Change quotes 2021-04-18 16:44:05 +03:00
Serene-Arc
5a2e045c77 Add OAuth2 class 2021-04-18 16:44:05 +03:00
Serene-Arc
aeb9afdc66 Rename file with custom exceptions 2021-04-18 16:44:05 +03:00
Serene-Arc
b705c31630 Add some more tests for RedditDownloader 2021-04-18 16:44:05 +03:00
Serene-Arc
6f86dbd552 Add error 2021-04-18 16:44:05 +03:00
Serene-Arc
5e914b5234 Re-add missing argument 2021-04-18 16:44:05 +03:00
Serene-Arc
ac08a639ba Tighten exception block 2021-04-18 16:44:05 +03:00
Serene-Arc
9e6ec9f1ca Add some tests for RedditDownloader 2021-04-18 16:44:05 +03:00
Serene-Arc
ea42471932 Add function to validate formatting strings 2021-04-18 16:44:05 +03:00
Serene-Arc
c01fc39671 Update arguments 2021-04-18 16:44:05 +03:00
Serene-Arc
7b33ec07fd Add test for Vreddit 2021-04-18 16:44:05 +03:00
Serene-Arc
2dce3108a1 Base Vreddit class on Youtube downloader 2021-04-18 16:44:05 +03:00
Serene-Arc
ad3aeece07 Refactor Youtube downloader 2021-04-18 16:44:05 +03:00
Serene-Arc
62d99a9cad Add rest of tests for DownloadFactory 2021-04-18 16:44:05 +03:00
Serene-Arc
d096580da7 Add some tests for DownloadFactory 2021-04-18 16:44:05 +03:00
Serene-Arc
caefb591dd Add tests for Youtube 2021-04-18 16:44:05 +03:00
Serene-Arc
be68d4eb1c Add tests for SelfPost 2021-04-18 16:44:05 +03:00
Serene-Arc
b699639b5c Add tests for Imgur 2021-04-18 16:44:05 +03:00
Serene-Arc
125b78a348 Add tests for downloader Erome 2021-04-18 16:44:05 +03:00
Serene-Arc
d1c0a7ece2 Add test for downloader Direct 2021-04-18 16:44:05 +03:00
Serene-Arc
06e7e81de0 Add tests for Redgifs 2021-04-18 16:44:05 +03:00
Serene-Arc
4146f181c7 Add tests for GifDeliveryNetwork and Gfycat 2021-04-18 16:44:05 +03:00
Serene-Arc
a55f35c025 Replace urllib with requests 2021-04-18 16:44:05 +03:00
Serene-Arc
37a91aa4df Add test for Resource 2021-04-18 16:43:55 +03:00
Serene-Arc
0c6a8e46a2 Add reddit flag for pytest 2021-04-18 16:43:55 +03:00
Serene-Arc
0652f53b50 Mark online tests 2021-04-18 16:43:55 +03:00
Serene-Arc
6fd7aca981 Add a test for Resource 2021-04-18 16:43:55 +03:00
Serene-Arc
0973e1e451 Rename file and class 2021-04-18 16:43:55 +03:00
Serene-Arc
3bc305c037 Implement changes in downloader 2021-04-18 16:43:55 +03:00
Serene-Arc
228cd5f687 Change Resource model 2021-04-18 16:43:55 +03:00
Serene-Arc
28f5ea69c3 Add authenticator module 2021-04-18 16:43:55 +03:00
Serene-Arc
e0d321c785 Integrate new base_downloader class 2021-04-18 16:43:55 +03:00
Serene-Arc
a75e94e43e Restructure test fixtures 2021-04-18 16:43:55 +03:00
Serene-Arc
ae5ed75226 Re-implement --link option 2021-04-18 16:43:55 +03:00
Serene-Arc
bb85fb8934 Add test for site downloader gallery 2021-04-18 16:43:55 +03:00
Serene-Arc
1b40b16970 Add logging message 2021-04-18 16:43:55 +03:00
Serene-Arc
efffc3ee3f Simplify errors 2021-04-18 16:43:55 +03:00
Serene-Arc
dd2804eb97 Remove unused class 2021-04-18 16:43:55 +03:00
Serene-Arc
714b6c5b72 Remove unused parameter 2021-04-18 16:43:55 +03:00
Serene-Arc
f71a3c5326 Fix wrong logic 2021-04-18 16:43:55 +03:00
Serene-Arc
289f7e7447 Fix bug with logging 2021-04-18 16:43:55 +03:00
Serene-Arc
8e54986357 Re-implement --limit option 2021-04-18 16:43:55 +03:00
Serene-Arc
866d94f37e Add gallery to factory 2021-04-18 16:43:55 +03:00
Serene-Arc
4bbe41a2f8 Re-implement --no-dupes flag 2021-04-18 16:43:55 +03:00
Serene-Arc
eac2381a0a Re-implement --no-download flag 2021-04-18 16:43:55 +03:00
Serene-Arc
70a992d299 Move args to instance variable 2021-04-18 16:43:55 +03:00
Serene-Arc
e646ae4a84 Add existence checking 2021-04-18 16:43:55 +03:00
Serene-Arc
722e6cb73a Add logging to file 2021-04-18 16:43:55 +03:00
Serene-Arc
91ae9924c3 Add search functionality 2021-04-18 16:43:55 +03:00
Serene-Arc
a7f1db14e5 Move to different program structure 2021-04-18 16:43:55 +03:00
Serene-Arc
c20fab2594 Add resource class 2021-04-18 16:43:15 +03:00
Serene-Arc
81293db8e9 Add downloader factory 2021-04-18 16:43:15 +03:00
Serene-Arc
358357590f Add file name formatter class 2021-04-18 16:43:15 +03:00
Serene-Arc
b1f0632a80 Add download filter class 2021-04-18 16:43:15 +03:00
Serene-Arc
f2415b6bd0 Rename folder 2021-04-18 16:43:15 +03:00
Serene-Arc
5ef58f147f Add some tests for base_download 2021-04-18 16:43:15 +03:00
Serene-Arc
f573038a21 Move to inheritance system for downloaders 2021-04-18 16:43:15 +03:00
Serene-Arc
69e21e46a2 Embed function 2021-04-18 16:42:59 +03:00
Serene-Arc
0d839329e5 Remove utils module for downloaders 2021-04-18 16:42:59 +03:00
Serene-Arc
be613949fe Rename files to conform to PEP8 2021-04-18 16:42:49 +03:00
Serene-Arc
d8a1204d8b Move to standard module structure 2021-04-18 16:42:49 +03:00