Commit Graph

1740 Commits

Author SHA1 Message Date
morpheus65535 fa42346968 Fixed translation issue for episodes subtitles. #2214 2023-08-04 09:45:56 -04:00
k29t59dh f723f84467
Updated SignalR code to work with new ORM 2023-08-04 09:10:32 -04:00
morpheus65535 164dc95f23 Fixed download notifications not being sent properly. 2023-07-31 09:54:50 -04:00
William Hughes 18cec2c8e5
no log: Made 'id' description clearer (#2209)
I've been playing with the API for the last few hours and I noticed that this wasn't clear that the ID also needs to be set if it's a movie. At first I gave it a -1 ID because I presumed the ID wasn't needed as it wasn't an episode. 

This small change should help people in the future when utilizing the API.
2023-07-29 08:04:52 -04:00
morpheus65535 6bc46fe4e9 Fixed issue with unused rowid columns and removed custom score profiles tables as they aren't used anymore. 2023-07-27 17:51:03 -04:00
Vitiko c9ced57191 no log: Remove unused code (custom scores) 2023-07-27 17:08:53 -04:00
morpheus65535 6f03758bec Fixed issue with missing migrations directory in release asset. 2023-07-27 10:12:30 -04:00
morpheus65535 bccded275c
Replaced peewee with sqlalchemy as ORM. This is a major change, please report related issues on Discord. 2023-07-26 19:34:49 -04:00
morpheus65535 486d2f9481 Improved logging of failed attempt to authenticate to UI. Successful basic authentication attempt cannot be logged right now. 2023-07-25 16:49:04 -04:00
morpheus65535 a7562e06b5 Improved external subtitles file encoding guessing to ignore those who can't be guessed properly. 2023-07-22 12:24:53 -04:00
morpheus65535 faa9566431 Improved subtitles providers settings to reset Authentication or Configuration error throttling while saving. 2023-07-16 23:32:46 -04:00
morpheus65535 dd9ce4d6ea Moved file encoding to charset-normalizer instead of chardet that is causing too much issues. #2196 2023-07-07 12:28:39 -04:00
morpheus65535 90ac5519c7 no log: pep8 fix 2023-07-05 15:39:55 -04:00
morpheus65535 cfc8a91488 Fixed exception raised when get_episodesFiles_from_sonarr_api() doesn't return proper content. #2188 2023-07-04 12:07:11 -04:00
morpheus65535 dfd8bedd6a Fixed upgradable subtitles logic being called even if user do not want to upgrade existing subtitles. 2023-07-03 18:28:29 -04:00
morpheus65535 f371d0585b no log: added failsafe to encoding detection 2023-06-23 10:06:46 -04:00
morpheus65535 c92d574bf2 Added experimental Python 3.11 support 2023-06-23 00:03:23 -04:00
morpheus65535 fc01267d5b Removed leftover from legendas.tv provider. 2023-06-15 12:46:49 -04:00
morpheus65535 d4262e530a Fixed issue where subtitles would get upgraded even if not required anymore by shows languages profile. #2174 2023-06-15 12:06:18 -04:00
morpheus65535 2511c310f1 Added settings to choose desired UI theme. 2023-06-15 06:32:36 -04:00
Vitiko e3c4def89a Subf2m Provider: add user-agent header configuration
This change fixes empty queries.
2023-06-12 19:36:11 -04:00
morpheus65535 b9b97e980e Fixed Chinese translation issue (zh and zt inverted). #2166 2023-06-07 21:04:58 -04:00
Vitiko 547f8c428d
Added feature to treat couples of languages as equal when searching for subtitles
* Add 'Language-equals' support

This feature will treat couples of languages as equal for list-subtitles
operations. It's optional; its methods won't do anything if an empy list
is set. See more info at docstrings from 'subliminal_patch.core'.

For example, let's say I only want to have "Spanish (es.srt)" subtitles
and I don't care about the differences between Spain and LATAM spanish.
This feature will allow me to always get European Spanish even from
LATAM Spanish providers like Argenteam and Subdivx.

Example for config.ini:

language_equals = ['spa-MX:spa']

(Which means all Latam Spanish subtitles from every provider will be
converted to European Spanish)

* Add PT and ZH language tests

* Add HI and Forced parsing for language pairs

Format example: ["en@HI:en", "es-MX@forced:es-MX"]

* Update languages.py

* Update API definition to reflect the previous change

* Add language equals table to the UI (test only)

* Add global language selector and get language from code3 utilities

* Add unit tests for language equal feature

* Add encode function to language equal feature

* Add CRUD methods to the language equals panel

* Add equals description

* Add parsing support for alpha3 custom languages

* no log: add more tests

* Add forced and hi support to the language equal target

---------

Co-authored-by: morpheus65535 <louis_vezina@hotmail.com>
Co-authored-by: LASER-Yi <liangyi0007@gmail.com>
2023-05-27 09:38:55 -04:00
morpheus65535 205bceb38d no log: make it cleaner 2023-05-21 12:08:30 -04:00
morpheus65535 80414c08ab no log: fixed static folder path in dev environment 2023-05-21 12:02:09 -04:00
Alex Yancey 9c92dd493b
Specify ffmpeg path in case it's not in PATH envvar (#2147) 2023-05-20 21:02:48 -04:00
Vitiko 585c70c39d Add support for custom languages in audio tracks 2023-05-19 02:03:17 -04:00
Vitiko 13f965d725 Use literals instead of scripts for custom languages 2023-05-18 18:55:33 -04:00
morpheus65535 015beaf769 Emergency fix for custom languages issue 2023-05-17 06:41:37 -04:00
Vitiko c06dd620b7 Add mediainfo support for custom languages 2023-05-17 01:45:29 -04:00
morpheus65535 2b5cd2b72e Implemented gzip compression of http requests made to Bazarr 2023-05-09 21:25:54 -04:00
Mike Dallas 09f0a27833
Fixed SyntaxError under Python 3.7 2023-05-03 08:51:01 -04:00
morpheus65535 0f84ffb9cd
Fixed requirements.txt installation 2023-04-22 08:25:33 -04:00
Jens Lee e2ba532cee
Fixed zimuku that now require anti-captcha 2023-04-21 06:25:09 -04:00
morpheus65535 ac6dddd607
Fixed upgrade of non-existant subtitles files 2023-04-20 21:30:43 -04:00
Devin Buhl 695734abe6
Allow defining postgres connection settings via env vars 2023-04-14 09:58:02 -04:00
Alex Yancey 8b1db07e9f
Added OpenAI Whisper Provider 2023-04-05 14:43:24 -04:00
morpheus65535 17e62f2d29 Added announcements for deprecated Sonarr and Radarr versions end of support. 2023-03-23 17:31:02 -04:00
morpheus65535 3a10df7724 Disabling mediainfo path temporarily until issue with knowit is fixed. #2098 2023-03-22 17:12:34 -04:00
morpheus65535 7136383098 Added an option to prevent sleeping hard drives from being wake-up by video file hashing. 2023-03-20 23:13:25 -04:00
morpheus65535 9fb793a488 Fixed error when manual search return an invalid subtitles. #2102 2023-03-20 06:16:37 -04:00
morpheus65535 f276b70f5e no log: fixed analytics logging 2023-03-17 09:58:56 -04:00
morpheus65535 34b905efec no log: trying to fix pipeline issue 2023-03-17 09:14:48 -04:00
morpheus65535 abc48b4ed0
Replaced deprecated Google Universal Analytics by GA4 2023-03-17 09:01:15 -04:00
morpheus65535 e4bf041ecb Fixed subtitles file naming when using hearing-impaired removal mods. 2023-03-01 16:04:27 -05:00
Marian Moravcik fefec202d1 no log: added autorollback to postgresql 2023-02-28 19:53:16 +01:00
Marian Moravcik 2e8203f0d4 Fix postgresql reconnection #2071 2023-02-27 13:31:38 +01:00
morpheus65535 2acf2451b4 Fixed history logging of manually uploaded subtitles. #2072 2023-02-26 07:46:27 -05:00
morpheus65535 7502c59638 no log: small fix for announcements and enabled providers 2023-02-25 08:43:35 -05:00
morpheus65535 019613958e Fixed some issues after subtitles upgrade refactor. 2023-02-24 22:19:43 -05:00
morpheus65535 5dc4e782ae Added option to deeply analyze audio tracks from media files or not to determine languages. Default is to use Sonarr/Radarr provided languages instead. Should prevent API limit ban for cloud user. 2023-02-23 18:32:54 -05:00
morpheus65535 5b283098f9
Refactored subtitles upgrade 2023-02-23 11:18:57 -05:00
morpheus65535 58262bc299
Added Announcements section in System to be able to inform users of Bazarr's news. 2023-02-20 16:04:09 -05:00
Marian Moravcik 339883cff6 Fixed UI freeze on certain notification events 2023-02-18 21:13:20 +01:00
Marian Moravcik 6578710c8d Fixed Upgrade previously downloaded subtitles (#2059) 2023-02-17 17:18:54 +01:00
Marian Moravcik 5c01c3c2e2 Fixed upgradable icon in history now show properly 2023-02-17 17:18:29 +01:00
morpheus65535 8ac3b0c9b5 Fixed chmod not working after custom post-processing. 2023-02-14 12:55:37 -05:00
morpheus65535 3310f6aeb8 Improved audio track language detection by using our video parser instead of values provided by Sonarr/Radarr. We also added "treat as" concept for undefined languages audio and embedded subtitles tracks. #2050 2023-02-09 16:58:38 -05:00
morpheus65535 d39f41d7e2 Increased minimum subtitles search and upgrade frequencies to 6 hours instead of 3 to reduce the impact on providers' website. 2023-02-08 17:00:37 -05:00
Vitiko 47aff78ab0 Subf2m Provider: add optional config for SSL verification
Temporary
2023-01-31 16:39:38 -04:00
Marian Moravcik 11fff727b2 Fix for get movies/series response serializer 2023-01-31 21:33:55 +01:00
Marian Moravcik 738e10e075 Fix for #2051 2023-01-30 21:06:56 +01:00
halali d5911e78b5
Added PostgreSQL as optional database engine
Wiki: https://wiki.bazarr.media/Additional-Configuration/PostgreSQL-Database/
2023-01-29 16:44:56 -05:00
Cory Metcalfe f5d7b4d321
Added configurable request timeout to Sonarr and Radarr 2023-01-25 15:26:22 -05:00
morpheus65535 cf4571ba86 Fixed improper profile ID value preventing listing of series and movies. #2043 2023-01-24 22:35:24 -05:00
morpheus65535 b0f743767b Fixed unwanted injection of variables on API endpoints. 2023-01-24 20:13:34 -05:00
morpheus65535 5a98dfcf83 no log: pep8 style fix 2023-01-24 06:39:10 -05:00
morpheus65535 b08c8cf1a8 no log: added missing logging 2023-01-16 14:08:34 -05:00
morpheus65535 2babae1937 Fixed high CPU usage when improper timezone defined (will use UTC instead). #1914 2023-01-16 14:05:06 -05:00
morpheus65535 92be39beba Fixed analysis of corrupted video file that may wrongly throttle providers. #2034 2023-01-15 09:28:28 -05:00
morpheus65535 c2701fd26e no log: fixed indentation error 2023-01-13 07:33:06 -05:00
morpheus65535 fadda0ac40 Fixed post-processing output logging not returning anything if stdout is an empty string while stderr return the actual error. 2023-01-13 07:31:28 -05:00
morpheus65535 5d36b80c07 Removed Enzyme for embedded subtitles indexing and fixed mediainfo integration issues. #2007 2022-12-22 11:37:37 -05:00
morpheus65535 0970f19d96 Fixed mediainfo integration issues. #2007 2022-12-21 19:30:59 -05:00
morpheus65535 c4b8345e65 Added mediainfo as potential embedded subtitles parser. #2007 2022-12-20 23:37:52 -05:00
morpheus65535 6693b98811 Fixed issues with new database creation since e6d0893812 2022-12-15 11:00:56 -05:00
morpheus65535 2622a0896e Fixed Plex webhook trying to search for subtitles for pre-roll video. #2013 2022-12-14 12:56:33 -05:00
morpheus65535 e6d0893812 Added routine to remove deprecated providers from enabled providers in config.ini 2022-12-13 21:14:32 -05:00
morpheus65535 6a17a7fecd no log: fixed throttled providers count update of UI 2022-12-10 07:31:47 -05:00
morpheus65535 cc42e7bc5c Fixed improper page_size value that prevent series and movies page from loading. #1995 2022-12-07 06:38:43 -05:00
morpheus65535 e6cab17a29 Fixed some edge case where no media could be found in db with a specific path. #2003 2022-12-05 09:58:22 -05:00
morpheus65535 ea5bf9ad07 Removed call to deprecated language profile endpoint in Sonarr v4. #1998 2022-12-01 16:52:42 -05:00
morpheus65535 4ada83f747 no log: added no-signalr args 2022-11-24 13:53:22 -05:00
morpheus65535 60dfe6bb81 Merge remote-tracking branch 'origin/development' into development 2022-11-21 06:27:26 -05:00
morpheus65535 8c944c4cf2 Fixed log an backup download from UI after flask upgrade. 2022-11-21 06:27:08 -05:00
LASER-Yi 9165663cba Move pageSize in UI settings to backend 2022-11-21 00:24:09 +08:00
morpheus65535 551f57bc0e Fixed bad subtitles extension exception when uploading subtitles with uppercase extension. #1988 2022-11-20 11:21:47 -05:00
morpheus65535 05cffa9410 Fixed issue while downloading movie subtitles. 2022-11-20 10:16:24 -05:00
morpheus65535 0e8ac06e59 Fixed infinite loop while trying to connect to Sonarr with SignalR permission issue. 2022-11-17 16:52:05 -05:00
morpheus65535 2e2626ce43 Fixed issue with cutoff not enforced when searching for multiple languages at the same time. 2022-11-15 22:06:03 -05:00
morpheus65535 eb770c9faa no log: send events to update wanted and badges in ui when something's changed while saving languages profiles. 2022-11-15 15:01:10 -05:00
morpheus65535 2e4480dd5f no log: small fix 2022-11-10 20:57:40 -05:00
morpheus65535 c563262fa8 Revert "Fixed Sonarr v3 SignalR feed not connecting when mono is used to run Sonarr. #1985"
This reverts commit a26b86cb95.
2022-11-10 20:55:12 -05:00
morpheus65535 a26b86cb95 Fixed Sonarr v3 SignalR feed not connecting when mono is used to run Sonarr. #1985 2022-11-09 12:29:14 -05:00
morpheus65535 b8b916dc30 Added live(SignalR) feeds status for Sonarr and Radarr. 2022-11-09 09:44:47 -05:00
Vitiko 1ba9404129 Update database refiner 2022-11-08 22:15:48 -04:00
morpheus65535 bbe2483e21 Updated vendored dependencies. 2022-11-07 13:08:27 -05:00
Vitiko 708fbfcd8e Add support for configurable scores (movies and episodes)
Currently only configurable via manual `data/config/config.ini`
text edition.

New configurable values are `series_scores` and `movie_scores`.

For each config section, the sum of the config values (except hash)
must be equal to the hash value plus one (1), otherwise default
values will be used (notified via debug log).

Hash values are not meant to be modified; the value is shown in
`config.ini` for reference. Modifying hash values would imply
breaking Bazarr's score logic.
2022-11-05 01:07:06 -04:00
morpheus65535 0b8274ec3e Fixed improper update of providers pool when forced subtitles are involved. #1977 2022-10-31 06:46:01 -04:00
morpheus65535 a1594e5a08 Added automatic update of wanted subtitles count on use embedded subtitles settings modification. 2022-10-26 10:42:44 -04:00
morpheus65535 49fc597efb Fixed blacklist item removal issue. 2022-10-23 10:56:26 -04:00
morpheus65535 d7c8188f94 Fixed history statistic view not taking timezone into account. 2022-10-18 22:22:06 -04:00
morpheus65535 af70cf1fc9 Added support for series monitored status. #1964 2022-10-05 22:51:54 -04:00
morpheus65535 65c0e6b823 Fixed use original format when uploading subtitles. #1955 2022-10-03 23:21:57 -04:00
morpheus65535 c492de8b67 Fixed episodes subtitles search when notified of import by Sonarr v3 SignalR feed. #1946 2022-09-25 08:38:27 -04:00
morpheus65535 bc32ddbc57 no log: fixed unused import 2022-09-23 14:31:34 -04:00
morpheus65535 daa7ef3fd0 no log: fixed logout API endpoint 2022-09-23 14:06:32 -04:00
morpheus65535 e7d22687a0 no log: fixed import 2022-09-22 17:22:55 -04:00
morpheus65535 d3defa2e09 Added update mechanism sooner in the startup process to recover from a failed update more easily once a fixed release is available. 2022-09-22 17:16:18 -04:00
morpheus65535 131b4e5cde
Added Swagger documentation for Bazarr API 2022-09-21 23:51:34 -04:00
morpheus65535 7a2d2399fc Fixed incorrect IP or already used TCP port from preventing Bazarr initialization. 2022-09-16 23:57:58 -04:00
morpheus65535 fa8ddeb2aa Fix to deal with empty series/movies list during sync. #1941 2022-09-16 14:55:14 -04:00
morpheus65535 87b3e55aa1
Fix #1938 2022-09-06 23:17:23 -04:00
morpheus65535 93612434e5 Fixed improper parsing of series metadata when receiving an event from Sonarr SignalR feed. 2022-09-01 06:49:04 -04:00
morpheus65535 a880386184 Improved exceptions logging for events received through SignalR feeds. 2022-08-31 10:35:46 -04:00
MichaIng 7754ca54eb
no log: Update checksum of aarch64 unrar binary (#1912)
Companion PR to https://github.com/morpheus65535/bazarr-binaries/pull/1.

Signed-off-by: MichaIng <micha@dietpi.com>

Signed-off-by: MichaIng <micha@dietpi.com>
2022-08-30 22:38:38 -04:00
morpheus65535 c2c0cbda0b Improved API to return better message/code on errors 2022-08-23 21:13:06 -04:00
Sander van Kasteel 0d39928a7b
Added support for CORS headers 2022-08-22 15:35:35 -04:00
morpheus65535 a36b3ce2ba Added download link for backup archives. 2022-08-21 23:14:06 -04:00
morpheus65535 180a40e027 Improved live synchronization with Sonarr and Radarr trough SignalR feed by implementing dedicated threaded events queues, by preventing execution of duplicate events received, by filtering events to be processed and by logging at debug level events received to improve debugging. 2022-08-21 08:22:56 -04:00
morpheus65535 c6efda0f75 Fixed None type issue on the first subtitles indexation for episodes or movies. 2022-08-21 08:17:05 -04:00
morpheus65535 0fb928675c Fixed compatibility with the latest nightly version of Sonarr v4. 2022-08-17 16:46:12 -04:00
Diego Heras bc0a7c2e0f
Fix issue in external subtitles cache. #1916 2022-08-15 14:30:28 -04:00
morpheus65535 c74f9e9602 Tried to improve full disk daily indexing tasks resources usage. #1916 2022-08-10 22:34:06 -04:00
morpheus65535 b0abe81d12 Fixed integer conversion issue. #1918 2022-08-04 21:28:44 -04:00
morpheus65535 4382a05da1 Fixed double slashes stored in config.ini by sanitizing the config values. #1903 2022-08-03 21:55:53 -04:00
morpheus65535 ba1687a478 Fixed subtitles upgrade job trying to upgrade null scored subtitles (part 2). #1909 2022-07-28 08:40:13 -04:00
morpheus65535 0d12bcb39e no log: some pep8 fixes 2022-07-27 23:03:27 -04:00
morpheus65535 81e13e1eac Fixed episodes or movies importation skipped when Sonarr/Radarr improperly report that media file size is null. 2022-07-27 22:58:26 -04:00
morpheus65535 414900c24e Fixed subtitles upgrade job trying to upgrade null scored subtitles. #1909 2022-07-26 10:57:35 -04:00
vitiko98 5624ae431e Embedded Subtitles provider: add support for unknown language tags 2022-07-20 02:51:30 -04:00
Samuel Bartík 67259ec75d
Fix postprocessing escaping (#1907) 2022-07-13 14:26:45 -04:00
Caleb Rascon c622e1f710
Added option to always use audio track for subtitle syncing 2022-07-06 13:05:10 -04:00
Samuel Bartík 741a8172b2
Fixed quotation marks escaping in post-processing variables (#1882) 2022-07-06 12:57:19 -04:00
vitiko98 be93a92a35 no log: add mimetypes on runtime 2022-07-04 01:18:20 -04:00
vitiko98 d2b40bd781 Add Karagarga.in provider 2022-06-29 00:07:18 -04:00
morpheus65535 5fab67bca0 no log: fixed unused imports and indent issues 2022-06-28 23:35:19 -04:00
morpheus65535 f760d3198b Merge remote-tracking branch 'origin/development' into development 2022-06-28 23:31:30 -04:00
morpheus65535 44ffac67b3 Fixed uploaded subtitles not preserved when it should. #1879 2022-06-28 23:31:21 -04:00
vitiko98 8086bce5c4 Embedded Subtitles Provider: major update
* fese library was updated
* mergerfs_mode support was dropped. Too much false positives
* extended codec support (two new codecs added: webvtt and mov_text)
* disable conversion to srt by default
2022-06-28 23:21:31 -04:00
morpheus65535 3a14099e36 Fixed deletion of subtitles with file extension other than srt. 2022-06-28 08:55:30 -04:00
morpheus65535 c8c815e240 Fixed LegendasDivx throttling reset time to prevent IP from getting blocked. 2022-06-23 06:41:53 -04:00
morpheus65535 e1bd02396f Fixed cutoff being reached for a language even if forced subtitles is available but not requested. 2022-06-22 15:24:36 -04:00
LASER-Yi 4b71b8ae65 Fix missing images issue when serving via Flask 2022-06-18 17:25:17 +08:00
morpheus65535 a79c2187de Fixed throttle expiration for providers that reset at midnight. #1863 2022-06-14 15:56:04 -04:00
morpheus65535 4640badd4b no log: deal with potential exception with missing time zone info. 2022-06-14 09:01:19 -04:00
morpheus65535 f2eb8f1342 Fixed uptime in System-->Status and added time zone info. 2022-06-13 23:24:32 -04:00
morpheus65535 3c53db7353 Added translation to history. #1827 2022-06-11 07:44:38 -04:00
morpheus65535 0f4af48be6 Fixed root url redirect not working with base_url defined. #1857 2022-06-09 21:02:40 -04:00
morpheus65535 2a298860a4 Fixed hearing-impaired not taken into account when naming uploaded subtitles #1846 2022-06-09 11:25:56 -04:00