167 Commits

Author SHA1 Message Date
Godzil
f26ea70ef8 Bugfix: if there is no season, they put 0 instead of 1. Let's correct that 2020-04-28 00:03:25 +01:00
Godzil
64200a1da9 Add support for the NEW Way.
It started as just a way to fix subtitles download. It ended in a
complete new way to get info about video stream AND subtitles.

Lots of things have change on CR since the last major update, and on
some pages, the old subtitle fetch fail. They changed the player on the
page from the old flash one to a HTML based one and albeit most scrapped
info are still valid, some are no longer working on some new releases.

It should be more reliable, but there are some drawback. I'm currently
unable to select the resolution, it is 1080 by default. It will probably
not work for non premium account, but, you know, I ask clearly for you
to only use that tool if you have a premium account, so well, I'm not
going to try to support non premium account if it does not work.

Oh, and it add the possibility to download subtitles in the languages of
your choice!

The old mechanism is still there as fallback, but may be removed in the
futur to clean up the code.
2020-04-27 22:48:24 +01:00
Godzil
8655874097 Remove no longer used entry for the config. 2020-04-27 22:39:51 +01:00
Godzil
99ba051b7f Remove some too verbose messages when an error occur and we are not
in verbose mode.
2020-04-27 22:39:30 +01:00
Godzil
d692199d07 CF don't like us if we go to fast. Let's add some delays. 2020-04-27 22:39:03 +01:00
Godzil
e058b8e699 We want to save the video format/quality infos in the config file. 2020-04-27 22:37:23 +01:00
Godzil
b3a96cd0e7 Let's make the headers a bit better. 2020-04-27 22:34:13 +01:00
Godzil
f25a62234c Add more to the dub ignore regexp. 2020-04-27 22:33:16 +01:00
Manoël Trapier
f086b3593e
Merge branch 'master' into master 2020-04-13 20:25:37 +01:00
Godzil
a7bc34df0d New way to specify episode range. Work in progress, may not work well. 2020-04-13 20:14:28 +01:00
Godzil
b2ecd05586 Trying to clean file name in a better way. 2020-04-13 20:13:23 +01:00
Godzil
8b9f9a5e1c The new version of the command line parser leave a lot of new things.
Let's remove them...
2020-04-13 20:12:32 +01:00
Godzil
376ff09632 Change my_request to be more clean and try to fix the login issue. 2020-04-13 20:11:56 +01:00
Godzil
7926b2fd9a Make the code compile again. 2020-04-13 20:09:30 +01:00
elisha464
fa4c68c239
fix logUsingCookie
* it seems that the site only cares about the cookie `session_id`
* when checking if the user is authenticated the cookie jar was not being used
2019-11-30 16:32:24 +02:00
Godzil
b77a35e0e9 Remove non production logs 2019-07-31 17:16:30 +02:00
ronserruya
95c0c4d6d3
Linter stuff 2019-07-31 14:29:49 +03:00
ronserruya
0d2d36251a
Fix title fetching 2019-07-31 14:26:22 +03:00
ronserruya
48a58ffca6
Fix login issue 2019-07-31 14:26:13 +03:00
Godzil
c82319a2c6 Make code (somwhat) compliant with latest version of CloudScraper and add some instrumentation to try to understand what is happening with web based login. Still unclear for now.. 2019-05-07 13:13:08 +02:00
Godzil
546ba9b45a Add a warn when login failed to be more explicit 2018-10-04 20:07:54 +01:00
Godzil
27bdf54782 Solve issue with redirection (now it should follow automatically) 2018-10-04 20:02:28 +01:00
Godzil
beed932e93 Javascript: I hate you.
(fix a **** stupid bug while doing version checking)
2018-08-27 18:16:23 +01:00
Godzil
2b201b0785 Fix #94 2018-08-27 13:16:22 +01:00
Godzil
fdf5805911 Fix for #88 2018-08-27 13:11:06 +01:00
Godzil
9191075f48 Fix for #92 when the version server is not answering properly 2018-08-27 13:08:01 +01:00
Godzil
9f73e4f865 Update `ignoredub` to support more form
(and also make it work with multiple languages)
2018-08-17 00:56:50 +01:00
Liam Townsend
da0fb17015 Filtering out Pipe Symbol in file names
updated sanitiseFileName to include the pipe symbol as this character is not allowed on windows, the error thast it currently throws is: {"errno":-4058,"code":"ENOENT","syscall":"open","path":"K:\\MediaDwn\\Is It Wrong to Try to Pick Up Girls in a Dungeon_\\Is It Wrong to Try to Pick Up Girls in a Dungeon_ - s01e01 - Bell Cranel | Adventurer - [CrunchyRoll].ass"}
2018-08-13 15:25:06 +01:00
Godzil
876def4392 Add code to check what langage CR is serving the page, and try to adapt
some regexp to that. The langage can be forced by the user

Fix #1 and Fix #76
2018-08-11 20:42:12 +01:00
Godzil
ce5038cf08 @ URL was broken since 1.3.7 doh! 2018-08-05 10:46:27 +01:00
Godzil
d19992f0d3 Make linter happy (and fix a mistake) 2018-08-05 10:30:22 +01:00
Godzil
a44d1ae668 Use a more stable and futur proof URL to get current version information 2018-08-05 09:30:14 +01:00
Godzil
14fd18479e Try to tweak ffmpeg setting, but there are still some stalling issues.. 2018-08-05 09:29:39 +01:00
Godzil
1106a28288 Make possible georestrictions messages more clear 2018-08-05 09:28:53 +01:00
Godzil
f1a5d1b6a8 Add a new warning type (more "strong" but still a warning) 2018-08-05 09:28:28 +01:00
Godzil
4193643306 Fix a missing invalid char for filename for windows ('\') 2018-08-05 09:27:46 +01:00
Godzil
7dcd932ee5 Add a warning message is a license infobox is display to say that maybe
some episodes would be missing

COOOOKIIIEEEEE!!!!

(I think I'm hungry, I should go to eat!)
2018-08-01 22:40:45 +01:00
Godzil
ed233de565 Add an experimental feature: ignoring episodes from season that end with 'dub)' as they are dubbed seasons. 2018-08-01 22:08:21 +01:00
Godzil
a679573bf3 Add support to change the user agent. 2018-08-01 21:26:11 +01:00
Godzil
25dabd4955 Fix #80, the batch file path should not be related to the output folder.
Also make sure that an absolute path is not treated as a relative one!



COOOKIESSSS!!!!!!
2018-08-01 21:21:46 +01:00
Godzil
ce65324c57 Add a message before login just to look pretty. 2018-08-01 20:38:14 +01:00
Godzil
a0f10252a1 Add back the old login method as fallback. 2018-08-01 20:37:50 +01:00
Godzil
6e638488dc Update user agent. 2018-08-01 20:37:07 +01:00
Godzil
2e8de8c5c2 Make lint happy (sorry cookie monster, nothing for you here :( ) 2018-08-01 19:57:29 +01:00
Godzil
9c3aaf220a Make authentification error report to work, and
warn user if trying to use API but not filling corresponding fields
2018-08-01 19:56:49 +01:00
Godzil
ab35bb4439 Add @ssttevee method of authentication (from pull request #43) 2018-08-01 02:07:21 +01:00
Godzil
b48877b786 Prepare to add multiples logins methods 2018-08-01 02:05:15 +01:00
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