-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlanguages.json
More file actions
168 lines (168 loc) · 12.1 KB
/
languages.json
File metadata and controls
168 lines (168 loc) · 12.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
{
"zh-TW": {
"main": {
"task_start": "==================== 任務啟動 ====================",
"mode_search": " [模式] 搜尋關鍵字: \"{query}\"",
"mode_user": " [模式] 指定用戶: @{username}",
"mode_home": " [模式] 預設首頁推薦內容",
"like_threshold": " [設定] 按讚門檻: {threshold}",
"like_disabled": "停用",
"download_threshold": " [設定] 下載門檻: {threshold}",
"scroll_depth": " [設定] 爬取深度 (滾動次數): {count}",
"output_dir": " [設定] 影片輸出目錄: {dir}",
"auto_upload": " [設定] 下載後自動上傳: {status}",
"yes": "是",
"no": "否",
"cleanup_threshold": " [上傳設定] 清理閾值: {threshold} GB",
"upload_limit": " [上傳設定] 本次上傳數量上限: {limit}",
"unlimited": "無限制",
"task_end": "==================================================",
"db_info": "[DB] 資料庫中已存在 {videos} 筆影片紀錄,{likes} 筆按讚紀錄。",
"operation_aborted": "操作中止:{error}",
"no_new_videos": "未抓取到任何符合下載條件的新影片。",
"scraping_complete": "篩選完成,共 {count} 個影片待下載",
"processing_video": "正在處理影片 ID: {video_id}, 作者: {author}, 內容: {caption}...",
"download_failed": "影片 {video_id} 下載失敗,跳過紀錄。",
"db_write_failed": "寫入資料庫失敗: {error},中止執行。",
"total_downloaded": "本次共下載了 {count} 個新影片",
"starting_uploader": "\n--- 所有下載任務已完成,即將啟動上傳器... ---",
"uploader_import_error": "[錯誤] 無法匯入 uploader.py 模組。",
"uploader_exec_failed": "[錯誤] uploader.py 執行失敗: {error}",
"upload_param_warning": "錯誤:參數 '-n' 或 '-du' 必須與 '-u' (自動上傳) 參數一起使用。請修正您的指令。"
},
"scraper": {
"cleanup_failed": "[Scraper] 刪除舊的暫存檔失敗: {error}",
"no_cookie": "錯誤:請在 .env 檔案中設定 THREADS_SESSION_COOKIE。",
"scraper_start": "正在啟動爬蟲 (V5 API 模擬引擎)...",
"injecting_cookie": "正在注入 Cookie...",
"validating_cookie": "正在驗證 Cookie 有效性...",
"cookie_invalid": "Cookie 已失效或無效,請更新您的 .env 檔案中的 THREADS_SESSION_COOKIE。",
"cookie_valid": "Cookie 驗證成功,帳號已登入。",
"like_token_failed": "無法獲取按讚權杖,按讚功能將被停用。",
"navigating_to_url": "\n正在導航至目標頁面: {url}",
"waiting_page_load": "等待頁面載入...",
"scrolling_page": "開始滾動頁面 ({count} 次)...",
"max_scroll_reached": "已達到最大滾動次數上限,停止滾動。",
"scroll_progress": " 滾動 {current}/{total}...",
"analysis_start": "\n--- 分析開始:解析所有捕獲的 GraphQL 數據包 ---",
"no_graphql_requests": "未能捕獲到任何包含貼文數據的 GraphQL API 請求。",
"packet_error": "處理數據包時發生錯誤: {error}",
"no_posts_parsed": "警告:未能從 API 回應中解析出任何貼文。目標頁面可能沒有內容,或 API 結構已變更。",
"parsing_posts": "解析到 {count} 個總貼文項目。開始根據門檻進行互動與篩選...",
"liking_post": "[互動] 貼文 {post_id} 讚數 ({like_count}) 已達門檻 ({threshold}),準備呼叫 API 按讚...",
"post_already_liked": "[互動] 貼文 {post_id} 已存在於按讚紀錄中,跳過。",
"collecting_videos": "[篩選] Post ID: {post_id} 讚數 ({like_count}) 已達下載門檻 ({threshold}),蒐集影片中...",
"video_added_to_list": " [+] 已將影片加入待下載清單: {video_id}",
"continuous_mode_continue": "目前蒐集到 {count}/5 個影片,繼續滾動...",
"scraping_error": "爬取過程中發生錯誤: {error}",
"session_end": "爬取會話結束,瀏覽器將由上下文管理器自動關閉。",
"total_videos_scraped": "\n本次運行共篩選出 {count} 個符合條件的影片。"
},
"uploader": {
"folder_size_check": "'{folder}' 資料夾目前大小: {size:.2f} GB。清理閾值為: {threshold} GB。",
"cleanup_triggered": "資料夾大小已超過閾值。觸發已上傳檔案的清理程序...",
"cleanup_not_needed": "資料夾大小在限制範圍內,無需清理。",
"no_videos_to_upload": "資料庫中沒有新的影片需要上傳。",
"upload_limit_info": "根據 --num_videos 參數,本次最多上傳 {count} 部影片。",
"videos_found": "發現 {count} 部影片待上傳。",
"video_file_not_found_delete": "影片檔案不存在於: {path}。將從資料庫中刪除此紀錄。",
"video_file_not_found": "跳過影片 ID {video_id},因為檔案不存在: {path}",
"processing_video": "--- 正在處理第 {current}/{total} 部影片: {filename} ---",
"metadata_gen_failed": "因元數據生成失敗,跳過影片 '{video_id}'。",
"db_update_failed": "致命錯誤: 更新影片 {video_id} 的資料庫狀態失敗: {error}",
"upload_failed": "影片 '{video_id}' 上傳失敗。中止本次上傳任務。",
"upload_failed_continue": "影片 '{video_id}' 上傳失敗。將繼續處理下一部影片。",
"youtube_quota_exceeded": "YouTube API 上傳配額已用盡。中止本次所有上傳任務。",
"upload_task_complete": "所有上傳任務已完成。",
"cleanup_start": "開始清理已上傳的檔案...",
"cleanup_no_files": "資料庫中沒有已上傳的影片可供清理。",
"cleanup_deleted_video": "已刪除已上傳的影片: {path}",
"cleanup_deleted_meta": "已刪除對應的元數據檔案: {path}",
"cleanup_delete_error": "刪除檔案 {path} 時發生錯誤: {error}",
"cleanup_done": "清理完畢。共刪除了 {count} 個影片檔案。"
}
},
"en": {
"main": {
"task_start": "==================== Task Start ====================",
"mode_search": " [Mode] Search keyword: \"{query}\"",
"mode_user": " [Mode] Target user: @{username}",
"mode_home": " [Mode] Default homepage feed",
"like_threshold": " [Config] Like threshold: {threshold}",
"like_disabled": "Disabled",
"download_threshold": " [Config] Download threshold: {threshold}",
"scroll_depth": " [Config] Scroll depth (scroll count): {count}",
"output_dir": " [Config] Video output directory: {dir}",
"auto_upload": " [Config] Auto upload after download: {status}",
"yes": "Yes",
"no": "No",
"cleanup_threshold": " [Upload Config] Cleanup threshold: {threshold} GB",
"upload_limit": " [Upload Config] Upload limit for this run: {limit}",
"unlimited": "Unlimited",
"task_end": "===================================================",
"db_info": "[DB] Found {videos} video records and {likes} liked post records in the database.",
"operation_aborted": "Operation aborted: {error}",
"no_new_videos": "No new videos found matching the download criteria.",
"scraping_complete": "Scraping complete, {count} videos pending download.",
"processing_video": "Processing video ID: {video_id}, Author: {author}, Caption: {caption}...",
"download_failed": "Failed to download video {video_id}, skipping record.",
"db_write_failed": "Failed to write to database: {error}, aborting execution.",
"total_downloaded": "Downloaded {count} new videos in this session.",
"starting_uploader": "\n--- All download tasks are complete, starting uploader... ---",
"uploader_import_error": "[ERROR] Failed to import uploader.py module.",
"uploader_exec_failed": "[ERROR] Failed to execute uploader.py: {error}",
"upload_param_warning": "ERROR: Parameters '-n' or '-du' must be used with the '-u' (auto-upload) parameter. Please correct your command."
},
"scraper": {
"cleanup_failed": "[Scraper] Failed to delete old temporary file: {error}",
"no_cookie": "Error: THREADS_SESSION_COOKIE is not set in the .env file.",
"scraper_start": "Starting scraper (V5 API emulation engine)...",
"injecting_cookie": "Injecting cookie...",
"validating_cookie": "Validating cookie...",
"cookie_invalid": "Cookie has expired or is invalid. Please update THREADS_SESSION_COOKIE in your .env file.",
"cookie_valid": "Cookie validation successful, account is logged in.",
"like_token_failed": "Failed to get like tokens, like functionality will be disabled.",
"navigating_to_url": "\nNavigating to target URL: {url}",
"waiting_page_load": "Waiting for page to load...",
"scrolling_page": "Starting to scroll page ({count} times)...",
"max_scroll_reached": "Maximum scroll limit reached, stopping scroll.",
"scroll_progress": " Scrolling {current}/{total}...",
"analysis_start": "\n--- Analysis start: Parsing all captured GraphQL data packets ---",
"no_graphql_requests": "Failed to capture any GraphQL API requests containing post data.",
"packet_error": "Error processing data packet: {error}",
"no_posts_parsed": "Warning: Failed to parse any posts from the API response. The target page may have no content, or the API structure may have changed.",
"parsing_posts": "Parsed {count} total post items. Starting interaction and filtering based on thresholds...",
"liking_post": "[Interaction] Post {post_id} like count ({like_count}) has reached the threshold ({threshold}), preparing to call like API...",
"post_already_liked": "[Interaction] Post {post_id} is already in the liked records, skipping.",
"collecting_videos": "[Filter] Post ID: {post_id} like count ({like_count}) has reached the download threshold ({threshold}), collecting videos...",
"video_added_to_list": " [+] Added video to download list: {video_id}",
"continuous_mode_continue": "Collected {count}/5 videos so far, continuing to scroll...",
"scraping_error": "An error occurred during scraping: {error}",
"session_end": "Scraping session ended, browser will be closed automatically by the context manager.",
"total_videos_scraped": "\nA total of {count} videos matching the criteria were filtered in this run."
},
"uploader": {
"folder_size_check": "Folder '{folder}' current size: {size:.2f} GB. Cleanup threshold: {threshold} GB.",
"cleanup_triggered": "Folder size exceeds threshold. Triggering cleanup of uploaded files...",
"cleanup_not_needed": "Folder size is within limits, no cleanup needed.",
"no_videos_to_upload": "No new videos to upload in the database.",
"upload_limit_info": "Based on the --num_videos parameter, uploading a maximum of {count} videos this run.",
"videos_found": "Found {count} videos to upload.",
"video_file_not_found_delete": "Video file not found at: {path}. Deleting record from database.",
"video_file_not_found": "Skipping video ID {video_id} because the file does not exist: {path}",
"processing_video": "--- Processing video {current}/{total}: {filename} ---",
"metadata_gen_failed": "Skipping video '{video_id}' due to metadata generation failure.",
"db_update_failed": "CRITICAL ERROR: Failed to update database status for video {video_id}: {error}",
"upload_failed": "Upload failed for video '{video_id}'. Aborting this upload task.",
"upload_failed_continue": "Upload failed for video '{video_id}'. Continuing to the next video.",
"youtube_quota_exceeded": "YouTube API upload quota has been exceeded. Aborting all upload tasks.",
"upload_task_complete": "All upload tasks are complete.",
"cleanup_start": "Starting cleanup of uploaded files...",
"cleanup_no_files": "No uploaded videos found in the database to clean up.",
"cleanup_deleted_video": "Deleted uploaded video: {path}",
"cleanup_deleted_meta": "Deleted corresponding metadata file: {path}",
"cleanup_delete_error": "Error deleting file {path}: {error}",
"cleanup_done": "Cleanup finished. Deleted {count} video files in total."
}
}
}