Commit Graph

148 Commits

Author SHA1 Message Date
Xavier Xiong 1548263a6c
Adding simplified and traditional Chinese subtitles support (#1236) 2021-02-12 14:15:19 -05:00
morpheus65535 22cd45bc41
Languages profiles (#1232)
Implementing the languages profiles functionality.
2021-01-18 23:49:51 -05:00
morpheus65535 5d99d3ddf9 Small fix for external subtitles hi detection. 2020-11-03 15:30:38 -05:00
morpheus65535 52242d7256 Fix for #1170. 2020-10-24 17:39:01 -04:00
morpheus65535 acbc91f100 Fix for #1169. 2020-10-23 22:49:15 -04:00
Louis Vézina 75e603b508 Fixed some false positive for HI detection 2020-10-15 06:25:00 -04:00
Louis Vézina da434f49b9 Fix for subfolder wrongly implemented in store_subtitles 2020-10-02 16:14:00 -04:00
Louis Vézina 5d68247c2d Fix for exception management when detecting encoding of file. 2020-10-02 12:35:12 -04:00
Louis Vézina 9f0b6a85f0 Fix for continue in finally not supported under Python 3.7 2020-10-01 14:18:43 -04:00
Louis Vézina 16c7f21082 Fix for #1119 2020-10-01 11:46:44 -04:00
Louis Vézina c68180ec09 Fix for #1114. 2020-09-23 13:36:52 -04:00
Louis Vézina efafe4a126 Replaced chardet by charamel to improve character encoding detection. 2020-09-23 10:28:44 -04:00
Louis Vézina 0af655398d Fix for unknown language 2020-09-15 08:09:05 -04:00
Louis Vézina 98b1400863 Fix for unknown language 2020-09-15 08:08:12 -04:00
Louis Vézina ae731bb78b Fix for missing subtitles management after implementing HI. 2020-09-13 23:31:40 -04:00
Louis Vézina 1409a152e9 Fix for missing subtitles management after implementing HI. 2020-09-13 19:18:07 -04:00
Louis Vézina 23c25bd68f Fix for missing subtitles management after implementing HI. 2020-09-13 09:00:36 -04:00
Louis Vézina 4c19622456 Fix for missing subtitles management after implementing HI. 2020-09-12 10:13:52 -04:00
Louis Vézina 203432aca5 Fix for missing subtitles management after implementing HI. 2020-09-11 13:33:12 -04:00
Louis Vézina a79071797b Fix for missing subtitles management after implementing HI. 2020-09-11 10:45:20 -04:00
morpheus65535 5658a7a359
Hearing impaired (#1102) 2020-09-10 14:26:37 -04:00
Louis Vézina f7f30a4157 Performance improvement to event emission from backend and handling from frontend. 2020-08-11 10:36:14 -04:00
Louis Vézina 3564aff825 Fix for #1038. 2020-08-04 20:30:28 -04:00
disrupted 23f08323a7
Add setting to ignore embedded VobSub subtitles
additionally to the setting which ignores embedded PGS subtitles
2020-07-29 12:28:24 +02:00
Louis Vézina 13238b1218 Fix for .vtt files not being recognized as valid external subtitles. 2020-07-26 13:42:41 -04:00
Louis Vézina 9759425aa5 Fix for #1031. Indentation issue. 2020-07-26 09:45:25 -04:00
Louis Vézina d6ddf76b68 Fix for #1031. Still better improvement ;-) 2020-07-23 21:20:14 -04:00
Louis Vézina e47aed6490 Fix for #1031. Improvement to previous commit. 2020-07-23 18:20:58 -04:00
Louis Vézina a9da6e3343 Fix for #1031. Improvement to events sent to browser when using batch editor. 2020-07-23 14:03:04 -04:00
josdion d06cace2d6 Fix #886
Use the whole subtitle file to detect encoding. Seems like if trying to detect encoding only by a part of the file, is not always working. This modification will lead to worse performance, but should be more reliable.
2020-06-09 22:20:43 +03:00
Louis Vézina f908f0d04a WIP 2020-05-19 09:27:13 -04:00
Louis Vézina 7e0c298dd7 WIP 2020-05-18 08:21:16 -04:00
Louis Vézina e1c9c4c415 WIP 2020-05-12 08:25:03 -04:00
Louis Vézina 41b18cb5de WIP 2020-05-11 00:39:21 -04:00
Louis Vézina 961fae8aed WIP 2020-05-08 11:37:40 -04:00
Louis Vézina 6fd6ee234c Merge branch 'development' into hermes
# Conflicts:
#	.gitignore
#	bazarr/main.py
2020-05-06 08:12:24 -04:00
josdion 5ad70d940f Fix #886
Ignore external subtitles files only if the encoding confidence is below 0.6. Hope this will fix any remaining encoding related issues.
2020-05-03 11:17:15 +03:00
Louis Vézina 83d226a8a0 Merge branch 'development' into hermes
# Conflicts:
#	bazarr/main.py
#	bazarr/scheduler.py
2020-04-25 09:11:05 -04:00
josdion cd25386567 guess subtitle encoding - tune up confidence 2020-04-17 22:38:47 +03:00
Louis Vézina 2abc6a8a9a Merge branch 'development' into hermes
# Conflicts:
#	views/system.tpl
2020-04-17 11:52:06 -04:00
Louis Vézina 59c9ed1fcf Fix for PGS subtitles not ignored correctly. 2020-04-17 09:24:47 -04:00
Louis Vézina d9453121a6 Merge branch 'development' into hermes
# Conflicts:
#	bazarr/main.py
#	views/episodes.tpl
#	views/movie.tpl
#	views/providers.tpl
2020-03-29 10:02:10 -04:00
josdion be0411d50a improve character encoding detection 2020-03-26 20:10:58 +02:00
josdion 354454688d
Fix subtitle character encoding detection
Increase the size of the language recognition buffer to 32K
2020-03-25 22:04:04 +02:00
Louis Vézina aa1b9dfcf4 Merge branch 'development' into hermes
# Conflicts:
#	bazarr/embedded_subs_reader.py
#	bazarr/list_subtitles.py
#	bazarr/logger.py
#	bazarr/main.py
#	views/providers.tpl
2020-03-18 22:52:49 -04:00
josdion 4056796eb1 Convert subtitle text to unicode before sending to guess_language
- Remove is_binary as it test only the first 1024 bytes and the encoding of teh detected file must be above 0.9 to recognize the file as a text. The new implementation assumes that if the file is binary, then detection of character encoding will be with confidence lower than 80% or text.decode() will raise an exception.

- skip detection of subtitle files larger than 5M
2020-03-18 13:31:34 +02:00
Louis Vézina bfa438df7c WIP 2020-02-12 23:16:22 -05:00
Louis Vézina 8e134dcceb WIP 2020-02-12 12:41:40 -05:00
Louis Vézina d933108766 Merge branch 'development' into hermes
# Conflicts:
#	bazarr.py
#	bazarr/get_series.py
#	bazarr/list_subtitles.py
#	bazarr/main.py
2020-02-10 19:42:17 -05:00
Louis Vézina d738bab732 WIP 2020-02-07 12:40:43 -05:00