3f0ae729d6
Expand "is course" check to not download magazines or other weird things
2020-09-28 16:43:58 +02:00
55678d7fee
Pass string down to FileCookieJar
...
Some python versions just can't handle it *despite the documentation
stating they should*.
2020-08-12 09:09:14 +02:00
a57ee8b96b
Add timeout to video downloads to work around requests IPv6 bug
2020-08-11 14:40:30 +02:00
77a109bb7e
Fix ilias shibboleth authenticator
...
The shibboleth site got a visual overhaul that slightly changed the classes of a
form we need.
2020-07-28 19:13:51 +00:00
a3e1864a26
Allow long paths on windows
...
If you start PFERD a few folders deep in your home directory, it is
quite easy to reach the maximum path length limit on Windows (260
chars). This patch opts in to long paths ("\\?\" prefix) which lift that
restriction at the cost of ugly path names.
2020-07-25 13:44:49 +02:00
77874b432b
Also add personal_desktop to download summary
2020-07-15 22:47:44 +02:00
5c4c785e60
Fix HTML file downloading
...
Previously PFERD thought any HTML file was a "Error, no access" page
when downloading. Now it checks whether ILIAS sends a
content-disposition header, telling the browser to download the file. If
that is the case, it was just a HTML file uploaded to ILIAS. If it has
no header, it is probably an error message.
2020-07-15 15:12:14 +02:00
2aed4f6d1f
Only query the dir_filter for directories
2020-07-13 13:36:12 +02:00
34152fbe54
Set mtime and atime to ILIAS dates where possible
2020-07-13 13:29:18 +02:00
c26c9352f1
Make DownloadSummary private, provide property accessors
2020-06-26 17:30:45 +02:00
d9ea688145
Use pretty logger for summaries
2020-06-26 17:24:36 +02:00
e4b1fac045
Satisfy pylint
2020-06-26 15:38:22 +02:00
402ae81335
Fix type hints
2020-06-26 13:17:44 +00:00
52f31e2783
Add type hints to DownloadSummary
2020-06-26 13:02:37 +02:00
739522a151
Move download summary into a separate class
2020-06-25 23:07:11 +02:00
6c034209b6
Add deleted files to summary
2020-06-25 22:00:28 +02:00
f6fbd5e4bb
Add download summary
2020-06-25 19:19:34 +02:00
7024db1f13
Use transient progessbar
...
This will ensure no pesky newline ends up in the output, even on
windows.
2020-06-25 18:03:12 +02:00
23bfa42a0d
Never use the direct download button, as it is currently broken
2020-06-11 13:31:01 +02:00
fdb57884ed
Touch files with same content to update timestamps
2020-05-31 20:27:15 +02:00
8198c9ecaa
Reorder methods a bit
2020-05-30 19:06:36 +02:00
086b15d10f
Crawl a bit more iteratively
2020-05-30 15:47:15 +02:00
9d6ce331a5
Use IliasCrawlerEntry entries in the ilias scraper
2020-05-30 15:20:51 +02:00
821c7ade26
Move video url extraction logic to crawler
2020-05-30 00:22:31 +02:00
b969a1854a
Remove unneeded whitespace
2020-05-30 00:22:31 +02:00
62535b4452
Unpack videos in ILIAS downloader
2020-05-21 22:12:52 +02:00
c0056e5669
Correctly crawl video pages with multiple pages
2020-05-21 21:38:07 +02:00
03a801eecc
Correctly type hint swallow_and_print_errors decorator
2020-05-12 21:03:53 +02:00
072c6630bf
Avoid logging import in config
2020-05-12 18:19:23 +00:00
4f56c8f192
Pass element type to ilias directory filter
2020-05-12 14:41:13 +02:00
4fdb67128d
Fetch correct diva playlist id
2020-05-11 00:25:34 +02:00
a0f9d31d94
Use PrettyLogger warning everywhere
2020-05-10 21:56:12 +02:00
e7b08420ba
Warn when a marked file is added again
2020-05-10 21:42:30 +02:00
c1b21f7772
Only remove a progress task when we added it
2020-05-10 12:28:30 +02:00
9850ab1d73
Allow crawling the ILIAS Personal Desktop
2020-05-10 12:16:42 +02:00
9950144e97
Allow passing a playlist URL to diva instead of an id
2020-05-10 11:17:13 +02:00
f6faacabb0
Move FatalException to errors.py
2020-05-09 00:11:21 +02:00
19c1e3ac6f
Fail on invalid ILIAS course ids
2020-05-09 00:11:20 +02:00
afa48c2d2d
Swallow and print errors instead of crashing
2020-05-09 00:10:54 +02:00
a4c518bf4c
Update date find regex
2020-05-08 22:17:58 +02:00
057135022f
Try to accept that life sometimes is in English
2020-05-08 22:10:43 +02:00
755e9aa0d3
Try to add support for Shibboleth TFA token
2020-05-08 21:52:51 +02:00
c9deca19ca
Remove walrus to lower needed python version
2020-05-08 21:21:33 +02:00
a0c5572b59
Fix progress bars swallowing a line when they shouldn't
2020-05-08 19:55:53 +02:00
2d20d2934c
Color warning differently
2020-05-08 19:52:45 +02:00
2c48ab66d4
Use rich for log colorization
2020-05-08 19:31:54 +02:00
56f2394001
Add a download progress bar
2020-05-08 17:09:56 +02:00
bee3d70998
Added a diva playlist downloader
2020-04-30 17:18:45 +02:00
42345ecc61
Demangle "Morgen" too
2020-04-30 12:05:25 +02:00
920d521d68
Change PrettyLogger.warn to PrettyLogger.warning
2020-04-25 20:11:51 +02:00