Commit Graph

752 Commits

Author SHA1 Message Date
levlam
1348723205 Support file reference repair when edit story cover. 2024-07-27 23:02:29 +03:00
levlam
b42009a433 Improve includes. 2024-07-25 14:51:50 +03:00
levlam
086f598411 Simplify download error handling. 2024-07-25 13:53:01 +03:00
levlam
8f7e9e116b Fix FILE_UPLOAD_RESTART. 2024-07-25 13:45:34 +03:00
levlam
2760db1fe4 Separate Download/Generate/Upload queries. 2024-07-24 16:10:13 +03:00
levlam
016663d807 Split FileManager::on_error_impl. 2024-07-24 15:49:16 +03:00
levlam
f730830154 Rename loop() to try_stop(). 2024-07-16 14:18:29 +03:00
levlam
b46b108060 Call loop() in close_node. 2024-07-16 14:11:57 +03:00
levlam
fee576f702 Don't inherit FileFromBytes from FileLoaderActor. 2024-07-16 14:07:20 +03:00
levlam
e2c17af598 Make inherited FileHashUploader methods private. 2024-07-16 14:00:57 +03:00
levlam
0971292303 Remove update_downloaded_part from FileLoaderActor. 2024-07-16 13:58:48 +03:00
levlam
ee4794b343 Remove update_local_file_location from FileLoaderActor. 2024-07-15 14:44:36 +03:00
levlam
34e81dc272 Set stop_flag_ in FileiDownloader::on_error. 2024-07-14 00:16:53 +03:00
levlam
6564c43d58 Inline FileDownloader::init. 2024-07-13 23:29:19 +03:00
levlam
cd33aa82cc Merge FileLoader and FileDownloader. 2024-07-13 23:20:13 +03:00
levlam
284fe8be53 Remove some unused private fields. 2024-07-13 17:54:38 +03:00
levlam
826ba49660 Set stop_flag_ in FileUploader::on_error. 2024-07-13 10:53:57 +03:00
levlam
bb0eb35027 Inline FileLoader to FileUploader. 2024-07-13 00:59:24 +03:00
levlam
8fee0251f9 Remove unused start_part result value. 2024-07-13 00:48:47 +03:00
levlam
8755d39bc1 Simplify file_type_ update. 2024-07-13 00:42:33 +03:00
levlam
11ef2ec81a Remove unused duplicate private fields. 2024-07-12 23:46:50 +03:00
levlam
706a4336c9 Fix expected size for file uploader. 2024-07-12 21:26:52 +03:00
levlam
72019eab50 Add FileGenerateManager::QueryId. 2024-07-12 18:44:41 +03:00
levlam
755d9e6689 Minor improvements. 2024-07-12 18:21:23 +03:00
levlam
fd822a6372 Move out FileDownloadManager from FileLoadManager. 2024-07-12 18:15:44 +03:00
levlam
30e4e8cecb Add separate FileUploadManager. 2024-07-12 17:27:26 +03:00
levlam
82807ea456 Remove using QueryId = FileLoadManager::QueryId. 2024-07-12 16:24:07 +03:00
levlam
1d6e7f5b1c Don't inherit FileManager from FileLoadManager::Callback. 2024-07-12 16:21:35 +03:00
levlam
1c3d52eec6 Fix misprint. 2024-07-12 15:53:20 +03:00
levlam
b500efff91 Remove FileLoader::Callback. 2024-07-12 15:38:10 +03:00
levlam
c1629cf597 Remove FileLoader::get_callback(). 2024-07-12 15:35:49 +03:00
levlam
eb8f3419bb Various fixes. 2024-06-30 09:29:53 +03:00
levlam
606d9bf32a Support single paid media in extract_was_uploaded. 2024-06-26 14:55:57 +03:00
levlam
719c03b0a2 Add and use FileManager::extract_file_references. 2024-06-24 18:57:32 +03:00
levlam
d75adbf2c5 Improve logging. 2024-05-17 18:25:46 +03:00
levlam
061e11690d Improve log messages. 2024-04-29 22:08:58 +03:00
levlam
4c72dc8ec5 Add and use FileManager::try_merge_documents. 2024-04-18 00:21:17 +03:00
levlam
c46af3318d Add FileManager::delete_partial_remote_location_if_needed. 2024-03-12 18:52:23 +03:00
levlam
4bc3b380b8 Support sending of queries with a prefix. 2024-03-07 18:37:28 +03:00
levlam
c92948e8b9 Improve error message. 2024-01-29 00:39:07 +03:00
levlam
d963044eb9 Update copyright year. 2024-01-01 03:07:21 +03:00
levlam
15931d90e2 Optimize FullLocalFileLocation comparison. 2023-11-15 14:02:16 +03:00
levlam
131d96bc04 Optimize FullRemoteFileLocation::operator<. 2023-11-15 13:54:14 +03:00
levlam
ab673a959b Add some index checks. 2023-09-26 14:03:10 +03:00
levlam
11c78406c3 Explicitly check returned errors. 2023-09-21 14:47:17 +03:00
levlam
0ada45c361 Fix video story network statistics. 2023-09-11 17:02:58 +03:00
levlam
61eeab055a Improve FileStats logging. 2023-09-11 16:56:21 +03:00
levlam
c3a985fade Always fix video story file type in scan_fs. 2023-09-11 16:38:41 +03:00
levlam
622762f6ef Move guess_file_type_by_path to FileType.cpp. 2023-09-11 16:34:00 +03:00
levlam
468f92d0e5 Always scan file database to get file statistics to fix file type of video stories. 2023-09-11 16:07:53 +03:00