Commit Graph

109 Commits

Author SHA1 Message Date
5b60e8c243 Implemented parsing HTML to remove all HTML tags after parsiong i, u and b
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-11-09 11:55:35 +01:00
a7c4b8c997 Added more checks because if you search for a movie with an imdb id of a series, then it gives you... a series.
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-11-05 21:50:02 +01:00
af1c4e4cc3 Added checks because receiving an empty file would make the bot crash (outoufbounds)
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-11-05 21:29:52 +01:00
02fc4b90f5 Bumped version to 0.3-SNAPSHOT
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-11-04 13:38:17 +01:00
c830abcb4d Added search capability in the quote command
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-11-04 13:37:31 +01:00
07f3d76502 Bumped version to 0.2-SNAPSHOT
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-11-04 11:24:06 +01:00
ceea5fa96d Removed now unused functions from the Command system
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-11-04 11:23:43 +01:00
a366662290 Implemented the new CLI args system to the ListLang command
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-11-04 11:22:14 +01:00
9a389f5dd3 Renamed listLangMovie to just listLang
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-11-04 11:09:32 +01:00
4214bcc8a4 Implemented the new CLI args system to the download command
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-11-04 11:07:56 +01:00
d1f847bc7a Bumped version to 0.1.5-SNAPSHOT
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-11-04 10:12:17 +01:00
8f4eb5349d Implemented a search option to specify a movie's title or imdb identifier
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-11-04 10:08:47 +01:00
0ea4385cf0 Removed formatting on usage printing on parsingError
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-11-03 23:51:18 +01:00
ebd37fa1b5 Implemented a better way to parse options for the Quote command
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-11-03 23:49:13 +01:00
07d094add9 Fixed Snowflake showing as itself instead of the id as a string
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-11-01 00:20:21 +01:00
b4a4188dc8 Added quoting people when successfully downloading a subtitle
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-10-31 21:22:01 +01:00
c2a6080cfe Fixed the fact that the importer id and the guild id were flipped
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-10-31 21:18:30 +01:00
bcf1bb766d Removed useless function in the LanguageManager and also added a way to reconnect when fetching data from OpenSubtitles and getting 401 due to inactivity
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-10-31 10:22:00 +01:00
5d96a15113 Sorted languages available instead of just getting the list
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-10-30 23:57:50 +01:00
2f3ebf0509 Removed the encoding limitation that I had, and also added a lang object to limit the interactions with the database
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-10-30 19:12:27 +01:00
d4d6f4a228 Added escaping for bold
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-10-30 17:48:33 +01:00
5bd2e7bbe9 Added escaping for italics
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-10-30 14:11:07 +01:00
2f23965e9a Fixed out of bounds error on downloading due to some recent changes on the way it checks for arguments
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-10-30 13:48:36 +01:00
059da9fce7 Merge branch 'dev' into 'master'
Added LICENSE

See merge request lovallat/moviesquotebot!3
2020-10-30 09:23:54 +00:00
4fec2a4fe0 Add LICENSE 2020-10-30 09:17:07 +00:00
d427c73090 Added more checks due to us disconnecting from OpenSubtitles
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-10-30 09:59:52 +01:00
a53ac01ae0 Merge branch 'dev' into 'master'
Added timestamp and green color on the version embed

See merge request lovallat/moviesquotebot!2
2020-10-29 23:56:39 +00:00
cbf4f5f37f Added timestamp and green color on the version embed
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-10-30 00:48:57 +01:00
f889492375 Merge branch 'dev' into 'master'
Fixed typo in version command, saying twice Subtitles for imported data...

See merge request lovallat/moviesquotebot!1
2020-10-29 23:15:03 +00:00
c2022568a6 Fixed typo in version command, saying twice Subtitles for imported data instead of subtitle lines & subtitles
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-10-29 23:07:04 +01:00
5de3db8064 Added Database schema
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-10-29 21:53:27 +01:00
71604291d1 Fixed typo in CI
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-10-29 21:22:31 +01:00
f833bb7d5b Modified gitlab-ci again and added a stage
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-10-29 21:05:16 +01:00
257d409860 Fixed typo in Dockerfile
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-10-29 19:46:05 +01:00
e72fd88c11 Removed docker pull as it is useless and only push to latest for now
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-10-29 19:29:41 +01:00
333ca1a932 Still trying to get auto-deploy to work 2
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-10-29 19:12:45 +01:00
7e15f2f633 Still trying to get auto-deploy to work
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-10-29 17:26:13 +01:00
3864269786 Renamed project to MoviesQuoteBot
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-10-29 17:03:50 +01:00
76e9aa3a36 Added alias for the deploy stage
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-10-29 16:25:46 +01:00
ee2318c553 Fixed typo in the README title
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-10-29 16:10:37 +01:00
dd43dc1f8f Added image declaration for the test phase and renamed release to deploy
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-10-29 16:04:48 +01:00
1bf04ee7ab Removed useless before_script docker login command
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-10-29 16:00:03 +01:00
31c5d54635 Attempt to setup auto-deploy on CI/CD
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-10-29 15:52:50 +01:00
9a57de9ad2 Setup Dockerfile 2/2
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-10-29 15:32:55 +01:00
080d4787f5 Setup Dockerfile
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-10-29 15:32:34 +01:00
f0e16f6b6e Added help command
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-10-29 15:09:30 +01:00
f056308923 Updated README to add disclaimer
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-10-29 14:50:26 +01:00
585033d78b Getting a quote now should be working
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-10-29 14:44:46 +01:00
af35537353 Added the number of lines the importer just added to our database
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-10-29 11:57:35 +01:00
2f5195ad0a Downloading subtitles is now kinda working
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-10-29 11:51:19 +01:00