120 Commits

Author SHA1 Message Date
Godzil
9fb85d4376 Now that we have cookies, persistant config file, we can log
and stay logged between run (or I hope so) so add a delog command,
and make the cookie monster happy.
2018-08-01 00:52:23 +01:00
Godzil
a582b15103 Check if the we got proper information about the session,
else die with a lot of suffers!
2018-08-01 00:50:38 +01:00
Godzil
da3a51991c Properly use the config info for API endpoint informations. 2018-08-01 00:49:49 +01:00
Godzil
22f70c86f5 Add a function to make the cookie monster happy! 2018-08-01 00:48:38 +01:00
Godzil
0daf4d895f Stop silently ignore login issues 2018-08-01 00:47:57 +01:00
Godzil
80165a76e0 Use a proper UUID v4 instead of the weird code to generate a device id 2018-08-01 00:47:33 +01:00
Godzil
a6b025bdbf Add a proper cookie store. 2018-08-01 00:46:14 +01:00
Godzil
6f192b1712 Now use the config file for base configuration, and command line parameter to
overide some of these parameter.

The config file is updated from the command line parameters
2018-08-01 00:43:07 +01:00
Godzil
b947a110e2 Create config manager to store part of the config in a json file.
Update the IConfig structure to add new values for API login.
2018-08-01 00:40:20 +01:00
Godzil
68885db538 Add subtitle dump just in case. 2018-07-30 22:47:38 +01:00
Godzil
0b54549c64 Fix a silly bug in error management (in case the error does not come from request) 2018-07-30 22:47:38 +01:00
Godzil
4990effa1c Try to fix #81 and probably some other issues when the URL is not valid to properly display that the URL is not valid. Also change a bit on how error are handled 2018-07-30 22:47:38 +01:00
Godzil
2459f342c5 Force debug file to be written synchronously 2018-07-30 22:47:38 +01:00
Godzil
02a9d763cd Add the episode title in the default file name template. 2018-07-30 22:47:38 +01:00
Godzil
1d596b02f7 Cleaning up the command line parameter to properly use default values 2018-07-30 22:47:37 +01:00
Godzil
cee53fb113 Fix for #78 (and a bit of cleanup) 2018-07-30 22:47:37 +01:00
Godzil
1e56cab73f Move error displaying when downloading an episode fail. 2018-07-30 22:47:37 +01:00
Godzil
6765b517ec Add a new episode filter and completely remove some dependencies on the config object. 2018-07-30 22:47:36 +01:00
Godzil
8c1e0f2e0c Stop messing with the config objet 2018-07-30 22:47:36 +01:00
Godzil
817843c40c Add more output to debug.txt 2018-07-30 22:47:36 +01:00
Godzil
66670547b9 Add a crude debug mechanism 2018-07-30 22:47:36 +01:00
Godzil
987e424324 Force an exit if authentication failed! 2018-07-30 22:47:35 +01:00
Godzil
523c780b18 Force to use a user account 2018-07-30 22:47:35 +01:00
Godzil
6c2100fbff Give access to the config objet to the subtitles for future changes. 2018-07-30 22:47:35 +01:00
Godzil
f10bead0dc Remove episode and volume filter, they were buggy and useless.
Use the @URL syntax do download a single episode.
2018-07-30 22:47:35 +01:00
Godzil
5edd7cf05a Fix 4 silly bugs 2018-07-30 22:47:35 +01:00
Godzil
2545c36241 Remove more DEP005 warning 2018-07-30 22:47:34 +01:00
Godzil
e2a4ba738f Make during series fetching error reporting a bit more clear 2018-07-30 22:47:34 +01:00
Godzil
e4e0fc3ea7 More error stack issue 2018-07-30 22:47:34 +01:00
Godzil
c56998312c Forgot to update config object with the new generated file name 2018-07-30 22:47:34 +01:00
Godzil
3ac1f4ee9e Don't display error stack when not needed, and if needed check it exist
before trying to display it.
2018-07-30 22:47:34 +01:00
Godzil
5a51d888b8 Remove DEP0005 warning from use of the Buffer object 2018-07-30 22:47:34 +01:00
Godzil
301fa1c860 Remove dependencies on fs and only use fs-extra 2018-07-30 22:47:34 +01:00
Godzil
bb70161652 Add a really simple and stupid way to check if you are running the latest version. 2018-07-30 22:47:33 +01:00
Godzil
7f2f983f55 using log instead of console is nicer 2018-07-30 22:47:33 +01:00
Godzil
8dab83b3ef Add log when not adding an episode when rebuilding the .crpresistent. 2018-07-30 22:47:33 +01:00
Godzil
cbafa5bc90 Now that retrying is there; force ffmpeg to fail in case or error (should now avoid to silently download a corrupted video file) 2018-07-30 22:47:33 +01:00
Godzil
67735fb52a Add a similar mechanism for episodes downloads.
If it can't fetch it after a couple of retry (5 by default, can be changed on the command line) it will just ignore it and go to the next episode.
2018-07-30 22:47:33 +01:00
Godzil
7d6f762f59 Add retry mechanism in case of episodes list retrieve failure instead of just failing.
If it can't after a couple of retry (5 by default, can be changed on the command line) it will just ignore it and go to the next anime.
2018-07-30 22:47:33 +01:00
Godzil
f3a0d0129d Correct a bug with ffmpeg where it will wait forever for the user to answer a question when trying to overwrite a file.
Fix #68
2018-07-30 22:47:33 +01:00
Godzil
65c9032839 Add an option to make ffmpeg, mkvmerge and rtmpdump running verbosely. 2018-07-30 22:47:33 +01:00
Godzil
4ee814864c Add support for changing the batchfile on the command line 2018-07-30 22:47:33 +01:00
Godzil
7c04fb7282 Make tslint happy! 2018-07-30 22:47:29 +01:00
Godzil
849c7612aa A bit of code reformating and add an option to regenerate the .crpersistant file in case it become corrupted and Crunchy try to redownload everything. 2018-07-30 22:46:29 +01:00
Roei Elisha
6ad4cbed0a make login work 2018-07-30 22:45:28 +01:00
Roei Elisha
b064b97f2d fix linter problems 2018-05-22 23:55:10 +03:00
Godzil
3bf5fea735 Make Crunchy to properly return a return code when running fine or failing 2018-05-08 21:37:34 +01:00
Godzil
547fdc4aa0 Add a way to select the resolution. Use 1080p by default
Fix #58
2018-03-29 22:29:13 +01:00
Godzil
090c7e4789 Trying to fix #59 by adding a referer to the header. Seems to fix it but need to be throughfully tested.. 2018-03-29 20:40:17 +01:00
Godzil
11f6b3feff Make tslint happy 2017-12-27 04:57:45 +01:00