Fvitu commited on
Commit
efcb36e
·
verified ·
1 Parent(s): 7e086e4

Upload 5 files

Browse files
Files changed (5) hide show
  1. .gitignore +58 -0
  2. logic.py +0 -0
  3. routes.py +230 -21
  4. static/js/dashboard.js +19 -13
  5. static/js/translations.js +254 -226
.gitignore ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # Distribution / packaging
7
+ .Python
8
+ build/
9
+ dist/
10
+ *.egg-info/
11
+ *.egg
12
+
13
+ # Virtual environments
14
+ .env
15
+ .venv/
16
+ env/
17
+ venv/
18
+ ENV/
19
+
20
+ # IDE
21
+ .vscode/
22
+ *.code-workspace
23
+ .idea/
24
+
25
+ # Testing
26
+ .tox/
27
+ .coverage
28
+ .pytest_cache/
29
+ htmlcov/
30
+ test.py
31
+ .cache
32
+ .cache_ggshield
33
+ debug_cookies.py
34
+
35
+ # Flask
36
+ instance/
37
+
38
+ # Logs
39
+ logs/
40
+ *.log
41
+
42
+ # Sensitive data
43
+ config.json
44
+ cookies.txt
45
+
46
+ # Downloads
47
+ Downloads/
48
+ *.zip
49
+
50
+ # OS
51
+ .DS_Store
52
+ Thumbs.db
53
+
54
+ # Redis binaries (platform-specific, not tracked in VCS)
55
+ redis-server*
56
+ redis-cli*
57
+ # Added by ggshield
58
+ .cache_ggshield
logic.py CHANGED
The diff for this file is too large to render. See raw diff
 
routes.py CHANGED
@@ -117,7 +117,13 @@ class DownloadTracker:
117
  if entry["timestamp"] > one_day_ago
118
  ]
119
 
120
- def check_limits(self, ip, duration_seconds=0):
 
 
 
 
 
 
121
  """
122
  Checks if the user has exceeded download limits.
123
 
@@ -151,7 +157,10 @@ class DownloadTracker:
151
 
152
  # Check content duration limit
153
  duration_minutes = duration_seconds / 60
154
- if duration_minutes > app_config.MAX_CONTENT_DURATION:
 
 
 
155
  return {
156
  "allowed": False,
157
  "reason": f"content_duration_exceeded",
@@ -159,21 +168,25 @@ class DownloadTracker:
159
  "requested": int(duration_minutes),
160
  }
161
 
162
- # Check hourly download count
163
- if hourly_count >= app_config.MAX_DOWNLOADS_PER_HOUR:
 
 
164
  return {
165
  "allowed": False,
166
  "reason": "hourly_downloads_exceeded",
167
  "current": hourly_count,
 
168
  "max_allowed": app_config.MAX_DOWNLOADS_PER_HOUR,
169
  }
170
 
171
- # Check daily download count
172
- if daily_count >= app_config.MAX_DOWNLOADS_PER_DAY:
173
  return {
174
  "allowed": False,
175
  "reason": "daily_downloads_exceeded",
176
  "current": daily_count,
 
177
  "max_allowed": app_config.MAX_DOWNLOADS_PER_DAY,
178
  }
179
 
@@ -223,10 +236,12 @@ class DownloadTracker:
223
  self._downloads[ip] = {"hourly": [], "daily": []}
224
 
225
  now = datetime.utcnow()
226
- entry = {"timestamp": now, "duration": duration_seconds}
 
 
227
 
228
  # Record for both hourly and daily tracking
229
- for _ in range(item_count):
230
  self._downloads[ip]["hourly"].append(entry.copy())
231
  self._downloads[ip]["daily"].append(entry.copy())
232
 
@@ -237,6 +252,93 @@ class DownloadTracker:
237
  download_tracker = DownloadTracker()
238
 
239
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
240
  def register_routes(app, limiter):
241
  """Registers all application routes."""
242
 
@@ -290,7 +392,11 @@ def register_routes(app, limiter):
290
  400,
291
  )
292
 
293
- info = obtener_info_playlist(url, user_config)
 
 
 
 
294
 
295
  if not info:
296
  return (
@@ -314,6 +420,22 @@ def register_routes(app, limiter):
314
  400,
315
  )
316
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
317
  app.logger.info(
318
  f"Playlist info obtained: '{info['titulo']}' ({info['total']} items)"
319
  )
@@ -624,6 +746,7 @@ def register_routes(app, limiter):
624
  selected_urls = []
625
  total_duration = 0
626
  item_count = 0
 
627
 
628
  if is_playlist_mode and selected_urls_json:
629
  try:
@@ -649,9 +772,53 @@ def register_routes(app, limiter):
649
 
650
  # Calculate total duration from selected items
651
  item_count = len(selected_urls)
 
 
652
  for url_data in selected_urls:
 
 
 
653
  if isinstance(url_data, dict):
654
- total_duration += url_data.get("duracion_segundos", 0)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
655
 
656
  except json.JSONDecodeError:
657
  return jsonify({"error": "Error in playlist data."}), 400
@@ -663,30 +830,62 @@ def register_routes(app, limiter):
663
 
664
  media_info = obtener_info_media(input_url, user_config)
665
  if media_info:
666
- total_duration = media_info.get("duracion_segundos", 0)
667
  except Exception as e:
668
  app.logger.warning(f"Could not get media duration: {e}")
669
  total_duration = 0
670
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
671
  # Check download limits
672
- limit_check = download_tracker.check_limits(user_ip, total_duration)
 
 
 
 
 
673
 
674
  if not limit_check["allowed"]:
675
  reason = limit_check["reason"]
676
- error_messages = {
677
- "content_duration_exceeded": f"This content exceeds the maximum allowed duration. Maximum: {limit_check['max_allowed']} minutes, Requested: {limit_check['requested']} minutes.",
678
- "hourly_downloads_exceeded": f"You have exceeded the hourly download limit. Maximum: {limit_check['max_allowed']} downloads per hour. Current: {limit_check['current']}. Please try again later.",
679
- "daily_downloads_exceeded": f"You have exceeded the daily download limit. Maximum: {limit_check['max_allowed']} downloads per day. Current: {limit_check['current']}. Please try again tomorrow.",
680
- "hourly_duration_exceeded": f"Adding this content would exceed your hourly duration limit. Current: {limit_check['current']} minutes, Requested: {limit_check['requested']} minutes, Maximum: {limit_check['max_allowed']} minutes per hour.",
681
- "daily_duration_exceeded": f"Adding this content would exceed your daily duration limit. Current: {limit_check['current']} minutes, Requested: {limit_check['requested']} minutes, Maximum: {limit_check['max_allowed']} minutes per day.",
682
  }
683
-
684
- error_msg = error_messages.get(reason, "Download limit exceeded.")
685
  app.logger.warning(f"Download limit exceeded for {user_ip}: {reason}")
686
 
687
  return (
688
  jsonify(
689
- {"error": error_msg, "limit_exceeded": True, "reason": reason}
 
 
 
 
 
 
 
 
 
 
 
 
690
  ),
691
  429, # Too Many Requests
692
  )
@@ -722,6 +921,13 @@ def register_routes(app, limiter):
722
  job_timeout="30m", # generous timeout for large playlists
723
  )
724
 
 
 
 
 
 
 
 
725
  return jsonify({"request_id": task_id})
726
 
727
  except Exception as e:
@@ -826,6 +1032,9 @@ def register_error_handlers(app):
826
  @app.errorhandler(429)
827
  def ratelimit_handler(error):
828
  """Handles rate limit exceeded."""
 
 
 
829
  # Get current configuration for display
830
  limits = {
831
  "requests_per_hour": app_config.RATE_LIMIT_PER_HOUR,
 
117
  if entry["timestamp"] > one_day_ago
118
  ]
119
 
120
+ def check_limits(
121
+ self,
122
+ ip,
123
+ duration_seconds=0,
124
+ check_content_duration=True,
125
+ requested_item_count=1,
126
+ ):
127
  """
128
  Checks if the user has exceeded download limits.
129
 
 
157
 
158
  # Check content duration limit
159
  duration_minutes = duration_seconds / 60
160
+ if (
161
+ check_content_duration
162
+ and duration_minutes > app_config.MAX_CONTENT_DURATION
163
+ ):
164
  return {
165
  "allowed": False,
166
  "reason": f"content_duration_exceeded",
 
168
  "requested": int(duration_minutes),
169
  }
170
 
171
+ safe_requested_count = max(1, int(requested_item_count or 1))
172
+
173
+ # Check hourly download count (including current request)
174
+ if hourly_count + safe_requested_count > app_config.MAX_DOWNLOADS_PER_HOUR:
175
  return {
176
  "allowed": False,
177
  "reason": "hourly_downloads_exceeded",
178
  "current": hourly_count,
179
+ "requested": safe_requested_count,
180
  "max_allowed": app_config.MAX_DOWNLOADS_PER_HOUR,
181
  }
182
 
183
+ # Check daily download count (including current request)
184
+ if daily_count + safe_requested_count > app_config.MAX_DOWNLOADS_PER_DAY:
185
  return {
186
  "allowed": False,
187
  "reason": "daily_downloads_exceeded",
188
  "current": daily_count,
189
+ "requested": safe_requested_count,
190
  "max_allowed": app_config.MAX_DOWNLOADS_PER_DAY,
191
  }
192
 
 
236
  self._downloads[ip] = {"hourly": [], "daily": []}
237
 
238
  now = datetime.utcnow()
239
+ safe_item_count = max(1, int(item_count or 1))
240
+ per_item_duration = duration_seconds / safe_item_count
241
+ entry = {"timestamp": now, "duration": per_item_duration}
242
 
243
  # Record for both hourly and daily tracking
244
+ for _ in range(safe_item_count):
245
  self._downloads[ip]["hourly"].append(entry.copy())
246
  self._downloads[ip]["daily"].append(entry.copy())
247
 
 
252
  download_tracker = DownloadTracker()
253
 
254
 
255
+ def _is_api_request() -> bool:
256
+ """Return True when the current request targets an API/AJAX endpoint."""
257
+ api_endpoints = {
258
+ "get_default_config",
259
+ "playlist_info",
260
+ "verificar_playlist",
261
+ "search_youtube",
262
+ "media_info",
263
+ "sponsorblock_info",
264
+ "descargar",
265
+ }
266
+ return request.endpoint in api_endpoints
267
+
268
+
269
+ def _rate_limit_error_payload(error) -> dict:
270
+ """Build a compact payload with a specific message key per limited endpoint."""
271
+ endpoint_to_limit = {
272
+ "search_youtube": ("search", "toast.rateLimitSearchExceeded"),
273
+ "playlist_info": ("playlist", "toast.rateLimitPlaylistExceeded"),
274
+ "verificar_playlist": ("media_info", "toast.rateLimitMediaInfoExceeded"),
275
+ "media_info": ("media_info", "toast.rateLimitMediaInfoExceeded"),
276
+ "sponsorblock_info": ("media_info", "toast.rateLimitMediaInfoExceeded"),
277
+ "descargar": ("download", "toast.rateLimitDownloadExceeded"),
278
+ }
279
+
280
+ limit_type, error_key = endpoint_to_limit.get(
281
+ request.endpoint,
282
+ ("general", "toast.rateLimitGeneralExceeded"),
283
+ )
284
+
285
+ payload = {
286
+ "error": "rate_limit_exceeded",
287
+ "error_key": error_key,
288
+ "limit_type": limit_type,
289
+ "status_code": 429,
290
+ }
291
+
292
+ retry_after = getattr(error, "retry_after", None)
293
+ if retry_after is not None:
294
+ payload["retry_after"] = retry_after
295
+
296
+ limit_info = getattr(error, "description", None)
297
+ if limit_info:
298
+ payload["limit"] = str(limit_info)
299
+
300
+ return payload
301
+
302
+
303
+ def _parse_duration_seconds(value) -> int:
304
+ """Best-effort conversion of duration values to seconds."""
305
+ if isinstance(value, (int, float)):
306
+ return max(0, int(value))
307
+
308
+ if isinstance(value, str):
309
+ text = value.strip()
310
+ if not text:
311
+ return 0
312
+
313
+ if text.isdigit():
314
+ return max(0, int(text))
315
+
316
+ parts = text.split(":")
317
+ try:
318
+ if len(parts) == 2:
319
+ mins, secs = int(parts[0]), int(parts[1])
320
+ return max(0, mins * 60 + secs)
321
+ if len(parts) == 3:
322
+ hours, mins, secs = int(parts[0]), int(parts[1]), int(parts[2])
323
+ return max(0, hours * 3600 + mins * 60 + secs)
324
+ except ValueError:
325
+ return 0
326
+
327
+ return 0
328
+
329
+
330
+ def _get_duration_from_media_info(media_info: dict | None) -> int:
331
+ """Extract duration seconds from media metadata with sane fallbacks."""
332
+ if not media_info:
333
+ return 0
334
+
335
+ dur_seconds = _parse_duration_seconds(media_info.get("duracion_segundos"))
336
+ if dur_seconds > 0:
337
+ return dur_seconds
338
+
339
+ return _parse_duration_seconds(media_info.get("duracion"))
340
+
341
+
342
  def register_routes(app, limiter):
343
  """Registers all application routes."""
344
 
 
392
  400,
393
  )
394
 
395
+ info = obtener_info_playlist(
396
+ url,
397
+ user_config,
398
+ max_items=app_config.MAX_PLAYLIST_ITEMS,
399
+ )
400
 
401
  if not info:
402
  return (
 
420
  400,
421
  )
422
 
423
+ if len(info["items"]) > app_config.MAX_PLAYLIST_ITEMS:
424
+ return (
425
+ jsonify(
426
+ {
427
+ "error": "playlist_items_limit_exceeded",
428
+ "error_key": "toast.limitPlaylistItemsExceeded",
429
+ "error_params": {
430
+ "max_allowed": app_config.MAX_PLAYLIST_ITEMS,
431
+ "requested": len(info["items"]),
432
+ },
433
+ "limit_exceeded": True,
434
+ }
435
+ ),
436
+ 429,
437
+ )
438
+
439
  app.logger.info(
440
  f"Playlist info obtained: '{info['titulo']}' ({info['total']} items)"
441
  )
 
746
  selected_urls = []
747
  total_duration = 0
748
  item_count = 0
749
+ max_content_seconds = app_config.MAX_CONTENT_DURATION * 60
750
 
751
  if is_playlist_mode and selected_urls_json:
752
  try:
 
772
 
773
  # Calculate total duration from selected items
774
  item_count = len(selected_urls)
775
+ from logic import obtener_info_media
776
+
777
  for url_data in selected_urls:
778
+ item_url = None
779
+ item_duration = 0
780
+
781
  if isinstance(url_data, dict):
782
+ item_url = url_data.get("url")
783
+ item_duration = _parse_duration_seconds(
784
+ url_data.get("duracion_segundos")
785
+ )
786
+ if item_duration <= 0:
787
+ item_duration = _parse_duration_seconds(
788
+ url_data.get("duracion")
789
+ )
790
+ elif isinstance(url_data, str):
791
+ item_url = url_data
792
+
793
+ if item_duration <= 0 and item_url:
794
+ try:
795
+ media_info = obtener_info_media(item_url, user_config)
796
+ item_duration = _get_duration_from_media_info(
797
+ media_info
798
+ )
799
+ except Exception as e:
800
+ app.logger.warning(
801
+ f"Could not resolve playlist item duration for limits ({item_url}): {e}"
802
+ )
803
+
804
+ if item_duration > max_content_seconds:
805
+ return (
806
+ jsonify(
807
+ {
808
+ "error": "download_limit_exceeded",
809
+ "error_key": "toast.limitContentDurationExceeded",
810
+ "error_params": {
811
+ "requested": int(item_duration / 60),
812
+ "max_allowed": app_config.MAX_CONTENT_DURATION,
813
+ },
814
+ "limit_exceeded": True,
815
+ "reason": "content_duration_exceeded",
816
+ }
817
+ ),
818
+ 429,
819
+ )
820
+
821
+ total_duration += max(0, item_duration)
822
 
823
  except json.JSONDecodeError:
824
  return jsonify({"error": "Error in playlist data."}), 400
 
830
 
831
  media_info = obtener_info_media(input_url, user_config)
832
  if media_info:
833
+ total_duration = _get_duration_from_media_info(media_info)
834
  except Exception as e:
835
  app.logger.warning(f"Could not get media duration: {e}")
836
  total_duration = 0
837
 
838
+ if total_duration > max_content_seconds:
839
+ return (
840
+ jsonify(
841
+ {
842
+ "error": "download_limit_exceeded",
843
+ "error_key": "toast.limitContentDurationExceeded",
844
+ "error_params": {
845
+ "requested": int(total_duration / 60),
846
+ "max_allowed": app_config.MAX_CONTENT_DURATION,
847
+ },
848
+ "limit_exceeded": True,
849
+ "reason": "content_duration_exceeded",
850
+ }
851
+ ),
852
+ 429,
853
+ )
854
+
855
  # Check download limits
856
+ limit_check = download_tracker.check_limits(
857
+ user_ip,
858
+ total_duration,
859
+ check_content_duration=not is_playlist_mode,
860
+ requested_item_count=item_count,
861
+ )
862
 
863
  if not limit_check["allowed"]:
864
  reason = limit_check["reason"]
865
+ reason_to_key = {
866
+ "content_duration_exceeded": "toast.limitContentDurationExceeded",
867
+ "hourly_downloads_exceeded": "toast.limitHourlyDownloadsExceeded",
868
+ "daily_downloads_exceeded": "toast.limitDailyDownloadsExceeded",
869
+ "hourly_duration_exceeded": "toast.limitHourlyDurationExceeded",
870
+ "daily_duration_exceeded": "toast.limitDailyDurationExceeded",
871
  }
 
 
872
  app.logger.warning(f"Download limit exceeded for {user_ip}: {reason}")
873
 
874
  return (
875
  jsonify(
876
+ {
877
+ "error": "download_limit_exceeded",
878
+ "error_key": reason_to_key.get(
879
+ reason, "toast.rateLimitDownloadExceeded"
880
+ ),
881
+ "error_params": {
882
+ "current": limit_check.get("current"),
883
+ "requested": limit_check.get("requested"),
884
+ "max_allowed": limit_check.get("max_allowed"),
885
+ },
886
+ "limit_exceeded": True,
887
+ "reason": reason,
888
+ }
889
  ),
890
  429, # Too Many Requests
891
  )
 
921
  job_timeout="30m", # generous timeout for large playlists
922
  )
923
 
924
+ # Record accepted download request so hourly/daily limits are enforced.
925
+ download_tracker.record_download(
926
+ user_ip,
927
+ duration_seconds=total_duration,
928
+ item_count=item_count,
929
+ )
930
+
931
  return jsonify({"request_id": task_id})
932
 
933
  except Exception as e:
 
1032
  @app.errorhandler(429)
1033
  def ratelimit_handler(error):
1034
  """Handles rate limit exceeded."""
1035
+ if _is_api_request():
1036
+ return jsonify(_rate_limit_error_payload(error)), 429
1037
+
1038
  # Get current configuration for display
1039
  limits = {
1040
  "requests_per_hour": app_config.RATE_LIMIT_PER_HOUR,
static/js/dashboard.js CHANGED
@@ -757,6 +757,16 @@ function resolveI18nMessage(message, params) {
757
  return String(message ?? "");
758
  }
759
 
 
 
 
 
 
 
 
 
 
 
760
  function showToast(message, type = "primary", params = undefined) {
761
  const container = document.getElementById("toastContainer");
762
  const toastId = "toast-" + Date.now() + "-" + Math.random().toString(36).slice(2, 6);
@@ -1138,11 +1148,7 @@ async function performSearch() {
1138
  showPlaylistSelector(data.playlist);
1139
  } else {
1140
  container.style.display = "none";
1141
- if (data.error) {
1142
- showToast(data.error, "warning");
1143
- } else {
1144
- showToast({ key: "toast.noResults" }, "warning");
1145
- }
1146
  }
1147
  } catch (error) {
1148
  console.error("Search error:", error);
@@ -1207,11 +1213,9 @@ async function checkForPlaylist() {
1207
  showToast({ key: "toast.notPlaylist" }, "info");
1208
  } else {
1209
  container.style.display = "none";
1210
- if (data.error) {
1211
- showToast(data.error, "danger");
1212
- } else {
1213
- showToast({ key: "toast.couldNotGetPlaylist" }, "danger");
1214
- }
1215
  }
1216
  } catch (error) {
1217
  console.error("Error:", error);
@@ -1791,6 +1795,9 @@ document.getElementById("downloadForm").addEventListener("submit", function (eve
1791
  throw new Error(t("error.invalidServerResponse"));
1792
  }
1793
  if (!response.ok) {
 
 
 
1794
  throw new Error(data.error || t("error.couldNotStartDownload"));
1795
  }
1796
  const requestId = data.request_id;
@@ -1965,9 +1972,8 @@ document.getElementById("downloadForm").addEventListener("submit", function (eve
1965
  try {
1966
  const text = await navigator.clipboard.readText();
1967
  if (text) {
1968
- input.value = text;
1969
- // trigger input events in case other scripts listen
1970
- input.dispatchEvent(new Event("input", { bubbles: true }));
1971
  }
1972
  } catch (e) {
1973
  // ignore errors and focus input
 
757
  return String(message ?? "");
758
  }
759
 
760
+ function getServerErrorMessage(serverData, fallbackKey = "toast.searchError") {
761
+ if (serverData && serverData.error_key) {
762
+ return { key: serverData.error_key, params: serverData.error_params };
763
+ }
764
+ if (serverData && serverData.error) {
765
+ return serverData.error;
766
+ }
767
+ return { key: fallbackKey };
768
+ }
769
+
770
  function showToast(message, type = "primary", params = undefined) {
771
  const container = document.getElementById("toastContainer");
772
  const toastId = "toast-" + Date.now() + "-" + Math.random().toString(36).slice(2, 6);
 
1148
  showPlaylistSelector(data.playlist);
1149
  } else {
1150
  container.style.display = "none";
1151
+ showToast(getServerErrorMessage(data, "toast.noResults"), "warning");
 
 
 
 
1152
  }
1153
  } catch (error) {
1154
  console.error("Search error:", error);
 
1213
  showToast({ key: "toast.notPlaylist" }, "info");
1214
  } else {
1215
  container.style.display = "none";
1216
+ const isLimitError =
1217
+ !!data?.limit_exceeded || String(data?.error_key || "").includes("rateLimit") || String(data?.error_key || "").includes("limit");
1218
+ showToast(getServerErrorMessage(data, "toast.couldNotGetPlaylist"), isLimitError ? "warning" : "danger");
 
 
1219
  }
1220
  } catch (error) {
1221
  console.error("Error:", error);
 
1795
  throw new Error(t("error.invalidServerResponse"));
1796
  }
1797
  if (!response.ok) {
1798
+ if (data.error_key) {
1799
+ throw new Error(resolveI18nMessage({ key: data.error_key, params: data.error_params }));
1800
+ }
1801
  throw new Error(data.error || t("error.couldNotStartDownload"));
1802
  }
1803
  const requestId = data.request_id;
 
1972
  try {
1973
  const text = await navigator.clipboard.readText();
1974
  if (text) {
1975
+ input.value = text.trim();
1976
+ await performSearch();
 
1977
  }
1978
  } catch (e) {
1979
  // ignore errors and focus input
static/js/translations.js CHANGED
@@ -1,229 +1,257 @@
1
  // Client-side translations
2
  window.OFFLINER_TRANSLATIONS = {
3
- en: {
4
- "lang.switch": "Language",
5
- "lang.switchTitle": "Switch language",
6
- "lang.english": "English",
7
- "lang.spanish": "Spanish",
8
-
9
- "hero.title": "Welcome to Offliner!",
10
- "hero.subtitle": "Easily download videos and audio from YouTube and Spotify. Your settings are saved locally in your browser.",
11
- "hero.privacy": "We do not store any of your data - your privacy is important.",
12
-
13
- "btn.downloadSettings": "Download Settings",
14
- "btn.saveSettings": "Save Settings",
15
- "btn.paste": "Paste",
16
- "btn.pasteTitle": "Paste from clipboard",
17
- "btn.startDownload": "Start Download",
18
- "btn.saving": "Saving...",
19
- "btn.downloadCount": "Download {count} item(s)",
20
-
21
- "download.sectionTitle": "Download Songs and Videos",
22
- "download.sectionHelp": "Enter a YouTube/Spotify URL or a song name to start downloading.",
23
- "download.autoDetect": "Platform and content type (song or playlist) are automatically detected.",
24
- "form.urlPlaceholder": "URL or song name...",
25
-
26
- "media.gettingInfo": "Getting info...",
27
- "media.untitled": "Untitled",
28
- "media.unknown": "Unknown",
29
-
30
- "playlist.loading": "Loading playlist...",
31
- "playlist.selectAll": "Select All",
32
- "playlist.deselectAll": "Deselect All",
33
- "playlist.bulkActions": "Bulk Actions",
34
- "playlist.setAllTo": "Set All To:",
35
- "playlist.audioFormats": "Audio Formats:",
36
- "playlist.videoFormats": "Video Formats:",
37
- "playlist.videosLabel": "videos",
38
- "playlist.meta": "{count} {videos} • {author}",
39
- "playlist.of": "of",
40
- "playlist.selected": "selected",
41
- "playlist.totalDuration": "Total duration:",
42
-
43
- "progress.startingDownload": "Starting download...",
44
- "progress.processing": "Processing...",
45
- "progress.starting": "Starting...",
46
- "progress.sendingRequest": "Sending request to server",
47
- "progress.downloadStarted": "Download started...",
48
- "progress.connectingStream": "Connecting to progress stream",
49
- "progress.completed": "Completed!",
50
- "progress.savingFile": "Saving file...",
51
- "progress.error": "Error",
52
- "progress.etaLabel": "ETA",
53
-
54
- "disclaimer.p1": "<strong>Disclaimer:</strong> We are not responsible for the content downloaded using this tool. Users must verify that the content is free of copyright restrictions and authorized for download prior to initiating any transfer. Copyrighted content is not available for download with this tool.",
55
- "disclaimer.p2": "By choosing to download, you acknowledge that the accessed content is for personal, non-commercial use only. You agree not to distribute, copy, modify, or otherwise use the downloaded content for commercial purposes, including but not limited to resale, public performance, or broadcasting. Any use beyond this scope may violate applicable copyright laws and Terms of Service. We assume no liability for unauthorized or improper use; the user assumes full responsibility for compliance with all relevant laws and contractual obligations.",
56
-
57
- "footer.createdWith": "Created with",
58
- "footer.by": "by",
59
-
60
- "modal.qualityTitle": "Audio/Video Quality",
61
- "modal.qualityDesc": "Select download quality.",
62
- "modal.qualityMin": "Minimum",
63
- "modal.qualityAvg": "Average",
64
- "modal.qualityMax": "Maximum",
65
- "modal.audioFormat": "Audio Format",
66
- "modal.videoFormat": "Video Format",
67
- "modal.downloadOptions": "Download Options",
68
- "modal.addMetadata": "Add Metadata",
69
- "modal.addMetadataDesc": "Title, artist, cover art",
70
- "modal.ytmTitle": "YouTube Music",
71
- "modal.ytmPrefer": "Prefer YouTube Music audio",
72
- "modal.ytmPreferDesc": "Pure audio without extra video content.",
73
- "badge.new": "New",
74
- "badge.beta": "Beta",
75
- "modal.sbEnable": "Enable SponsorBlock",
76
- "modal.sbSponsors": "Sponsors",
77
- "modal.sbNonMusic": "Non-music",
78
- "modal.sbIntros": "Intros",
79
- "modal.sbOutros": "Outros",
80
- "modal.sbSelfPromo": "Auto-promo",
81
- "modal.sbInteraction": "Interaction",
82
- "modal.cookiesTitle": "Cookies (Optional)",
83
- "modal.cookiesDesc": "Add cookies only if needed for private or age-restricted content. Leave blank to skip.",
84
- "modal.cookiesLabel": "Cookies content (Netscape format)",
85
- "modal.cookiesPlaceholder": "# Netscape HTTP Cookie File",
86
-
87
- "common.audio": "Audio",
88
- "common.video": "Video",
89
-
90
- "search.searching": "Searching: {query}...",
91
- "search.searchingYouTube": "Searching YouTube...",
92
-
93
- "toast.formatSet": "Format set to {format}",
94
- "toast.sponsorblockRemoved": "SponsorBlock: {count} segment(s) will be removed",
95
- "toast.invalidCookies": "Invalid Netscape cookies file. Please check the format.",
96
- "toast.settingsSaved": "Settings saved to your browser!",
97
- "toast.settingsSaveError": "Error saving settings",
98
- "toast.enterUrlOrSearch": "Please enter a URL or search term",
99
- "toast.noResults": "No results found",
100
- "toast.searchError": "Error performing search",
101
- "toast.notPlaylist": "This URL is not a playlist. You can download it directly.",
102
- "toast.couldNotGetPlaylist": "Could not get playlist",
103
- "toast.checkPlaylistError": "Error checking playlist",
104
- "toast.allItemsAudio": "All items set to AUDIO format",
105
- "toast.allItemsVideo": "All items set to VIDEO format",
106
- "toast.allItemsFileFormat": "All items set to {format} file format",
107
- "toast.enterUrlOrSong": "Please enter a URL or song name",
108
- "toast.selectOneItem": "Select at least one playlist item",
109
- "toast.downloadStarted": "Download started!",
110
- "toast.downloadError": "Download error. Please try again.",
111
- "toast.lostProgressStream": "Lost connection to progress stream. The download may still be running.",
112
- "error.invalidServerResponse": "Server returned an invalid response",
113
- "error.couldNotStartDownload": "Could not start download",
114
- "error.noRequestId": "No request ID received from server",
115
- },
116
- es: {
117
- "lang.switch": "Idioma",
118
- "lang.switchTitle": "Cambiar idioma",
119
- "lang.english": "Inglés",
120
- "lang.spanish": "Español",
121
-
122
- "hero.title": "¡Bienvenido a Offliner!",
123
- "hero.subtitle": "Descarga fácilmente videos y audio de YouTube y Spotify. Tus ajustes se guardan localmente en tu navegador.",
124
- "hero.privacy": "No almacenamos ninguno de tus datos: tu privacidad es importante.",
125
-
126
- "btn.downloadSettings": "Ajustes de descarga",
127
- "btn.saveSettings": "Guardar ajustes",
128
- "btn.paste": "Pegar",
129
- "btn.pasteTitle": "Pegar desde el portapapeles",
130
- "btn.startDownload": "Iniciar descarga",
131
- "btn.saving": "Guardando...",
132
- "btn.downloadCount": "Descargar {count} elemento(s)",
133
-
134
- "download.sectionTitle": "Descargar canciones y videos",
135
- "download.sectionHelp": "Ingresa una URL de YouTube/Spotify o el nombre de una canción para comenzar.",
136
- "download.autoDetect": "La plataforma y el tipo de contenido (canción o playlist) se detectan automáticamente.",
137
- "form.urlPlaceholder": "URL o nombre de canción...",
138
-
139
- "media.gettingInfo": "Obteniendo información...",
140
- "media.untitled": "Sin título",
141
- "media.unknown": "Desconocido",
142
-
143
- "playlist.loading": "Cargando playlist...",
144
- "playlist.selectAll": "Seleccionar todo",
145
- "playlist.deselectAll": "Deseleccionar todo",
146
- "playlist.bulkActions": "Acciones masivas",
147
- "playlist.setAllTo": "Aplicar a todos:",
148
- "playlist.audioFormats": "Formatos de audio:",
149
- "playlist.videoFormats": "Formatos de video:",
150
- "playlist.videosLabel": "videos",
151
- "playlist.meta": "{count} {videos} • {author}",
152
- "playlist.of": "de",
153
- "playlist.selected": "seleccionados",
154
- "playlist.totalDuration": "Duración total:",
155
-
156
- "progress.startingDownload": "Iniciando descarga...",
157
- "progress.processing": "Procesando...",
158
- "progress.starting": "Iniciando...",
159
- "progress.sendingRequest": "Enviando solicitud al servidor",
160
- "progress.downloadStarted": "Descarga iniciada...",
161
- "progress.connectingStream": "Conectando al progreso en tiempo real",
162
- "progress.completed": "¡Completado!",
163
- "progress.savingFile": "Guardando archivo...",
164
- "progress.error": "Error",
165
- "progress.etaLabel": "ETA",
166
-
167
- "disclaimer.p1": "<strong>Descargo de responsabilidad:</strong> No somos responsables del contenido descargado con esta herramienta. Los usuarios deben verificar que el contenido esté libre de restricciones de copyright y autorizado para descargar antes de iniciar cualquier transferencia. El contenido con copyright no está disponible para descargar con esta herramienta.",
168
- "disclaimer.p2": "Al elegir descargar, reconoces que el contenido accedido es solo para uso personal y no comercial. Aceptas no distribuir, copiar, modificar ni usar el contenido descargado con fines comerciales, incluyendo (entre otros) reventa, ejecución pública o difusión. Cualquier uso fuera de este alcance puede violar leyes de copyright y Términos de Servicio. No asumimos responsabilidad por usos no autorizados; el usuario asume toda la responsabilidad de cumplir con las leyes y obligaciones aplicables.",
169
-
170
- "footer.createdWith": "Creado con",
171
- "footer.by": "por",
172
-
173
- "modal.qualityTitle": "Calidad de audio/video",
174
- "modal.qualityDesc": "Selecciona la calidad de descarga.",
175
- "modal.qualityMin": "Mínima",
176
- "modal.qualityAvg": "Media",
177
- "modal.qualityMax": "Máxima",
178
- "modal.audioFormat": "Formato de audio",
179
- "modal.videoFormat": "Formato de video",
180
- "modal.downloadOptions": "Opciones de descarga",
181
- "modal.addMetadata": "Agregar metadatos",
182
- "modal.addMetadataDesc": "Título, artista, portada",
183
- "modal.ytmTitle": "YouTube Music",
184
- "modal.ytmPrefer": "Preferir audio de YouTube Music",
185
- "modal.ytmPreferDesc": "Audio puro sin contenido extra de video.",
186
- "badge.new": "Nuevo",
187
- "badge.beta": "Beta",
188
- "modal.sbEnable": "Habilitar SponsorBlock",
189
- "modal.sbSponsors": "Patrocinadores",
190
- "modal.sbNonMusic": "No musical",
191
- "modal.sbIntros": "Introducciones",
192
- "modal.sbOutros": "Cierres",
193
- "modal.sbSelfPromo": "Autopromo",
194
- "modal.sbInteraction": "Interacción",
195
- "modal.cookiesTitle": "Cookies (opcional)",
196
- "modal.cookiesDesc": "Agrega cookies solo si es necesario para contenido privado o con restricción de edad. Déjalo vacío para omitir.",
197
- "modal.cookiesLabel": "Contenido de cookies (formato Netscape)",
198
- "modal.cookiesPlaceholder": "# Archivo de cookies HTTP en formato Netscape",
199
-
200
- "common.audio": "Audio",
201
- "common.video": "Video",
202
-
203
- "search.searching": "Buscando: {query}...",
204
- "search.searchingYouTube": "Buscando en YouTube...",
205
-
206
- "toast.formatSet": "Formato establecido: {format}",
207
- "toast.sponsorblockRemoved": "SponsorBlock: se eliminarán {count} segmento(s)",
208
- "toast.invalidCookies": "Archivo de cookies Netscape inválido. Revisa el formato.",
209
- "toast.settingsSaved": "¡Ajustes guardados en tu navegador!",
210
- "toast.settingsSaveError": "Error al guardar los ajustes",
211
- "toast.enterUrlOrSearch": "Ingresa una URL o un término de búsqueda",
212
- "toast.noResults": "No se encontraron resultados",
213
- "toast.searchError": "Error al realizar la búsqueda",
214
- "toast.notPlaylist": "Esta URL no es una playlist. Puedes descargarla directamente.",
215
- "toast.couldNotGetPlaylist": "No se pudo obtener la playlist",
216
- "toast.checkPlaylistError": "Error al comprobar la playlist",
217
- "toast.allItemsAudio": "Todos los elementos en formato AUDIO",
218
- "toast.allItemsVideo": "Todos los elementos en formato VIDEO",
219
- "toast.allItemsFileFormat": "Todos los elementos en formato {format}",
220
- "toast.enterUrlOrSong": "Ingresa una URL o el nombre de una canción",
221
- "toast.selectOneItem": "Selecciona al menos un elemento de la playlist",
222
- "toast.downloadStarted": "¡Descarga iniciada!",
223
- "toast.downloadError": "Error de descarga. Inténtalo de nuevo.",
224
- "toast.lostProgressStream": "Se perdió la conexión del progreso. La descarga puede seguir ejecutándose.",
225
- "error.invalidServerResponse": "El servidor devolvió una respuesta inválida",
226
- "error.couldNotStartDownload": "No se pudo iniciar la descarga",
227
- "error.noRequestId": "No se recibió un ID de solicitud del servidor",
228
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
229
  };
 
1
  // Client-side translations
2
  window.OFFLINER_TRANSLATIONS = {
3
+ en: {
4
+ "lang.switch": "Language",
5
+ "lang.switchTitle": "Switch language",
6
+ "lang.english": "English",
7
+ "lang.spanish": "Spanish",
8
+
9
+ "hero.title": "Welcome to Offliner!",
10
+ "hero.subtitle": "Easily download videos and audio from YouTube and Spotify. Your settings are saved locally in your browser.",
11
+ "hero.privacy": "We do not store any of your data - your privacy is important.",
12
+
13
+ "btn.downloadSettings": "Download Settings",
14
+ "btn.saveSettings": "Save Settings",
15
+ "btn.paste": "Paste",
16
+ "btn.pasteTitle": "Paste from clipboard",
17
+ "btn.startDownload": "Start Download",
18
+ "btn.saving": "Saving...",
19
+ "btn.downloadCount": "Download {count} item(s)",
20
+
21
+ "download.sectionTitle": "Download Songs and Videos",
22
+ "download.sectionHelp": "Enter a YouTube/Spotify URL or a song name to start downloading.",
23
+ "download.autoDetect": "Platform and content type (song or playlist) are automatically detected.",
24
+ "form.urlPlaceholder": "URL or song name...",
25
+
26
+ "media.gettingInfo": "Getting info...",
27
+ "media.untitled": "Untitled",
28
+ "media.unknown": "Unknown",
29
+
30
+ "playlist.loading": "Loading playlist...",
31
+ "playlist.selectAll": "Select All",
32
+ "playlist.deselectAll": "Deselect All",
33
+ "playlist.bulkActions": "Bulk Actions",
34
+ "playlist.setAllTo": "Set All To:",
35
+ "playlist.audioFormats": "Audio Formats:",
36
+ "playlist.videoFormats": "Video Formats:",
37
+ "playlist.videosLabel": "videos",
38
+ "playlist.meta": "{count} {videos} • {author}",
39
+ "playlist.of": "of",
40
+ "playlist.selected": "selected",
41
+ "playlist.totalDuration": "Total duration:",
42
+
43
+ "progress.startingDownload": "Starting download...",
44
+ "progress.processing": "Processing...",
45
+ "progress.starting": "Starting...",
46
+ "progress.sendingRequest": "Sending request to server",
47
+ "progress.downloadStarted": "Download started...",
48
+ "progress.connectingStream": "Connecting to progress stream",
49
+ "progress.completed": "Completed!",
50
+ "progress.savingFile": "Saving file...",
51
+ "progress.error": "Error",
52
+ "progress.etaLabel": "ETA",
53
+
54
+ "disclaimer.p1":
55
+ "<strong>Disclaimer:</strong> We are not responsible for the content downloaded using this tool. Users must verify that the content is free of copyright restrictions and authorized for download prior to initiating any transfer. Copyrighted content is not available for download with this tool.",
56
+ "disclaimer.p2":
57
+ "By choosing to download, you acknowledge that the accessed content is for personal, non-commercial use only. You agree not to distribute, copy, modify, or otherwise use the downloaded content for commercial purposes, including but not limited to resale, public performance, or broadcasting. Any use beyond this scope may violate applicable copyright laws and Terms of Service. We assume no liability for unauthorized or improper use; the user assumes full responsibility for compliance with all relevant laws and contractual obligations.",
58
+
59
+ "footer.createdWith": "Created with",
60
+ "footer.by": "by",
61
+
62
+ "modal.qualityTitle": "Audio/Video Quality",
63
+ "modal.qualityDesc": "Select download quality.",
64
+ "modal.qualityMin": "Minimum",
65
+ "modal.qualityAvg": "Average",
66
+ "modal.qualityMax": "Maximum",
67
+ "modal.audioFormat": "Audio Format",
68
+ "modal.videoFormat": "Video Format",
69
+ "modal.downloadOptions": "Download Options",
70
+ "modal.addMetadata": "Add Metadata",
71
+ "modal.addMetadataDesc": "Title, artist, cover art",
72
+ "modal.ytmTitle": "YouTube Music",
73
+ "modal.ytmPrefer": "Prefer YouTube Music audio",
74
+ "modal.ytmPreferDesc": "Pure audio without extra video content.",
75
+ "badge.new": "New",
76
+ "badge.beta": "Beta",
77
+ "modal.sbEnable": "Enable SponsorBlock",
78
+ "modal.sbSponsors": "Sponsors",
79
+ "modal.sbNonMusic": "Non-music",
80
+ "modal.sbIntros": "Intros",
81
+ "modal.sbOutros": "Outros",
82
+ "modal.sbSelfPromo": "Auto-promo",
83
+ "modal.sbInteraction": "Interaction",
84
+ "modal.cookiesTitle": "Cookies (Optional)",
85
+ "modal.cookiesDesc": "Add cookies only if needed for private or age-restricted content. Leave blank to skip.",
86
+ "modal.cookiesLabel": "Cookies content (Netscape format)",
87
+ "modal.cookiesPlaceholder": "# Netscape HTTP Cookie File",
88
+
89
+ "common.audio": "Audio",
90
+ "common.video": "Video",
91
+
92
+ "search.searching": "Searching: {query}...",
93
+ "search.searchingYouTube": "Searching YouTube...",
94
+
95
+ "toast.formatSet": "Format set to {format}",
96
+ "toast.sponsorblockRemoved": "SponsorBlock: {count} segment(s) will be removed",
97
+ "toast.invalidCookies": "Invalid Netscape cookies file. Please check the format.",
98
+ "toast.settingsSaved": "Settings saved to your browser!",
99
+ "toast.settingsSaveError": "Error saving settings",
100
+ "toast.enterUrlOrSearch": "Please enter a URL or search term",
101
+ "toast.noResults": "No results found",
102
+ "toast.searchError": "Error performing search",
103
+ "toast.rateLimitSearchExceeded": "Search request limit exceeded. Please wait before trying again.",
104
+ "toast.rateLimitPlaylistExceeded": "Playlist request limit exceeded. Please wait before trying again.",
105
+ "toast.rateLimitMediaInfoExceeded": "Media info request limit exceeded. Please wait before trying again.",
106
+ "toast.rateLimitDownloadExceeded": "Download request limit exceeded. Please wait before trying again.",
107
+ "toast.rateLimitGeneralExceeded": "Request limit exceeded. Please wait before trying again.",
108
+ "toast.limitPlaylistItemsExceeded": "Playlist exceeds the maximum allowed items ({max_allowed}). Requested: {requested}.",
109
+ "toast.limitContentDurationExceeded": "This content exceeds the maximum allowed duration ({max_allowed} min). Requested: {requested} min.",
110
+ "toast.limitHourlyDownloadsExceeded": "You exceeded the hourly download limit ({max_allowed}). Current: {current}.",
111
+ "toast.limitDailyDownloadsExceeded": "You exceeded the daily download limit ({max_allowed}). Current: {current}.",
112
+ "toast.limitHourlyDurationExceeded": "Hourly duration limit exceeded. Current: {current} min, requested: {requested} min, max: {max_allowed} min.",
113
+ "toast.limitDailyDurationExceeded": "Daily duration limit exceeded. Current: {current} min, requested: {requested} min, max: {max_allowed} min.",
114
+ "toast.notPlaylist": "This URL is not a playlist. You can download it directly.",
115
+ "toast.couldNotGetPlaylist": "Could not get playlist",
116
+ "toast.checkPlaylistError": "Error checking playlist",
117
+ "toast.allItemsAudio": "All items set to AUDIO format",
118
+ "toast.allItemsVideo": "All items set to VIDEO format",
119
+ "toast.allItemsFileFormat": "All items set to {format} file format",
120
+ "toast.enterUrlOrSong": "Please enter a URL or song name",
121
+ "toast.selectOneItem": "Select at least one playlist item",
122
+ "toast.downloadStarted": "Download started!",
123
+ "toast.downloadError": "Download error. Please try again.",
124
+ "toast.lostProgressStream": "Lost connection to progress stream. The download may still be running.",
125
+ "error.invalidServerResponse": "Server returned an invalid response",
126
+ "error.couldNotStartDownload": "Could not start download",
127
+ "error.noRequestId": "No request ID received from server",
128
+ },
129
+ es: {
130
+ "lang.switch": "Idioma",
131
+ "lang.switchTitle": "Cambiar idioma",
132
+ "lang.english": "Inglés",
133
+ "lang.spanish": "Español",
134
+
135
+ "hero.title": "¡Bienvenido a Offliner!",
136
+ "hero.subtitle": "Descarga fácilmente videos y audio de YouTube y Spotify. Tus ajustes se guardan localmente en tu navegador.",
137
+ "hero.privacy": "No almacenamos ninguno de tus datos: tu privacidad es importante.",
138
+
139
+ "btn.downloadSettings": "Ajustes de descarga",
140
+ "btn.saveSettings": "Guardar ajustes",
141
+ "btn.paste": "Pegar",
142
+ "btn.pasteTitle": "Pegar desde el portapapeles",
143
+ "btn.startDownload": "Iniciar descarga",
144
+ "btn.saving": "Guardando...",
145
+ "btn.downloadCount": "Descargar {count} elemento(s)",
146
+
147
+ "download.sectionTitle": "Descargar canciones y videos",
148
+ "download.sectionHelp": "Ingresa una URL de YouTube/Spotify o el nombre de una canción para comenzar.",
149
+ "download.autoDetect": "La plataforma y el tipo de contenido (canción o playlist) se detectan automáticamente.",
150
+ "form.urlPlaceholder": "URL o nombre de canción...",
151
+
152
+ "media.gettingInfo": "Obteniendo información...",
153
+ "media.untitled": "Sin título",
154
+ "media.unknown": "Desconocido",
155
+
156
+ "playlist.loading": "Cargando playlist...",
157
+ "playlist.selectAll": "Seleccionar todo",
158
+ "playlist.deselectAll": "Deseleccionar todo",
159
+ "playlist.bulkActions": "Acciones masivas",
160
+ "playlist.setAllTo": "Aplicar a todos:",
161
+ "playlist.audioFormats": "Formatos de audio:",
162
+ "playlist.videoFormats": "Formatos de video:",
163
+ "playlist.videosLabel": "videos",
164
+ "playlist.meta": "{count} {videos} • {author}",
165
+ "playlist.of": "de",
166
+ "playlist.selected": "seleccionados",
167
+ "playlist.totalDuration": "Duración total:",
168
+
169
+ "progress.startingDownload": "Iniciando descarga...",
170
+ "progress.processing": "Procesando...",
171
+ "progress.starting": "Iniciando...",
172
+ "progress.sendingRequest": "Enviando solicitud al servidor",
173
+ "progress.downloadStarted": "Descarga iniciada...",
174
+ "progress.connectingStream": "Conectando al progreso en tiempo real",
175
+ "progress.completed": "¡Completado!",
176
+ "progress.savingFile": "Guardando archivo...",
177
+ "progress.error": "Error",
178
+ "progress.etaLabel": "ETA",
179
+
180
+ "disclaimer.p1":
181
+ "<strong>Descargo de responsabilidad:</strong> No somos responsables del contenido descargado con esta herramienta. Los usuarios deben verificar que el contenido esté libre de restricciones de copyright y autorizado para descargar antes de iniciar cualquier transferencia. El contenido con copyright no está disponible para descargar con esta herramienta.",
182
+ "disclaimer.p2":
183
+ "Al elegir descargar, reconoces que el contenido accedido es solo para uso personal y no comercial. Aceptas no distribuir, copiar, modificar ni usar el contenido descargado con fines comerciales, incluyendo (entre otros) reventa, ejecución pública o difusión. Cualquier uso fuera de este alcance puede violar leyes de copyright y Términos de Servicio. No asumimos responsabilidad por usos no autorizados; el usuario asume toda la responsabilidad de cumplir con las leyes y obligaciones aplicables.",
184
+
185
+ "footer.createdWith": "Creado con",
186
+ "footer.by": "por",
187
+
188
+ "modal.qualityTitle": "Calidad de audio/video",
189
+ "modal.qualityDesc": "Selecciona la calidad de descarga.",
190
+ "modal.qualityMin": "Mínima",
191
+ "modal.qualityAvg": "Media",
192
+ "modal.qualityMax": "Máxima",
193
+ "modal.audioFormat": "Formato de audio",
194
+ "modal.videoFormat": "Formato de video",
195
+ "modal.downloadOptions": "Opciones de descarga",
196
+ "modal.addMetadata": "Agregar metadatos",
197
+ "modal.addMetadataDesc": "Título, artista, portada",
198
+ "modal.ytmTitle": "YouTube Music",
199
+ "modal.ytmPrefer": "Preferir audio de YouTube Music",
200
+ "modal.ytmPreferDesc": "Audio puro sin contenido extra de video.",
201
+ "badge.new": "Nuevo",
202
+ "badge.beta": "Beta",
203
+ "modal.sbEnable": "Habilitar SponsorBlock",
204
+ "modal.sbSponsors": "Patrocinadores",
205
+ "modal.sbNonMusic": "No musical",
206
+ "modal.sbIntros": "Introducciones",
207
+ "modal.sbOutros": "Cierres",
208
+ "modal.sbSelfPromo": "Autopromo",
209
+ "modal.sbInteraction": "Interacción",
210
+ "modal.cookiesTitle": "Cookies (opcional)",
211
+ "modal.cookiesDesc": "Agrega cookies solo si es necesario para contenido privado o con restricción de edad. Déjalo vacío para omitir.",
212
+ "modal.cookiesLabel": "Contenido de cookies (formato Netscape)",
213
+ "modal.cookiesPlaceholder": "# Archivo de cookies HTTP en formato Netscape",
214
+
215
+ "common.audio": "Audio",
216
+ "common.video": "Video",
217
+
218
+ "search.searching": "Buscando: {query}...",
219
+ "search.searchingYouTube": "Buscando en YouTube...",
220
+
221
+ "toast.formatSet": "Formato establecido: {format}",
222
+ "toast.sponsorblockRemoved": "SponsorBlock: se eliminarán {count} segmento(s)",
223
+ "toast.invalidCookies": "Archivo de cookies Netscape inválido. Revisa el formato.",
224
+ "toast.settingsSaved": "¡Ajustes guardados en tu navegador!",
225
+ "toast.settingsSaveError": "Error al guardar los ajustes",
226
+ "toast.enterUrlOrSearch": "Ingresa una URL o un término de búsqueda",
227
+ "toast.noResults": "No se encontraron resultados",
228
+ "toast.searchError": "Error al realizar la búsqueda",
229
+ "toast.rateLimitSearchExceeded": "Se ha excedido el límite de peticiones de búsqueda. Espera un momento e inténtalo de nuevo.",
230
+ "toast.rateLimitPlaylistExceeded": "Se ha excedido el límite de peticiones de playlist. Espera un momento e inténtalo de nuevo.",
231
+ "toast.rateLimitMediaInfoExceeded": "Se ha excedido el límite de peticiones de información de medios. Espera un momento e inténtalo de nuevo.",
232
+ "toast.rateLimitDownloadExceeded": "Se ha excedido el límite de peticiones de descarga. Espera un momento e inténtalo de nuevo.",
233
+ "toast.rateLimitGeneralExceeded": "Se ha excedido el límite de peticiones. Espera un momento e inténtalo de nuevo.",
234
+ "toast.limitPlaylistItemsExceeded": "La playlist supera la cantidad máxima permitida ({max_allowed}). Solicitado: {requested}.",
235
+ "toast.limitContentDurationExceeded": "Este contenido supera la duración máxima permitida ({max_allowed} min). Solicitado: {requested} min.",
236
+ "toast.limitHourlyDownloadsExceeded": "Has superado el límite de descargas por hora ({max_allowed}). Actual: {current}.",
237
+ "toast.limitDailyDownloadsExceeded": "Has superado el límite de descargas por día ({max_allowed}). Actual: {current}.",
238
+ "toast.limitHourlyDurationExceeded":
239
+ "Se superó el límite de duración por hora. Actual: {current} min, solicitado: {requested} min, máximo: {max_allowed} min.",
240
+ "toast.limitDailyDurationExceeded":
241
+ "Se superó el límite de duración por día. Actual: {current} min, solicitado: {requested} min, máximo: {max_allowed} min.",
242
+ "toast.notPlaylist": "Esta URL no es una playlist. Puedes descargarla directamente.",
243
+ "toast.couldNotGetPlaylist": "No se pudo obtener la playlist",
244
+ "toast.checkPlaylistError": "Error al comprobar la playlist",
245
+ "toast.allItemsAudio": "Todos los elementos en formato AUDIO",
246
+ "toast.allItemsVideo": "Todos los elementos en formato VIDEO",
247
+ "toast.allItemsFileFormat": "Todos los elementos en formato {format}",
248
+ "toast.enterUrlOrSong": "Ingresa una URL o el nombre de una canción",
249
+ "toast.selectOneItem": "Selecciona al menos un elemento de la playlist",
250
+ "toast.downloadStarted": "¡Descarga iniciada!",
251
+ "toast.downloadError": "Error de descarga. Inténtalo de nuevo.",
252
+ "toast.lostProgressStream": "Se perdió la conexión del progreso. La descarga puede seguir ejecutándose.",
253
+ "error.invalidServerResponse": "El servidor devolvió una respuesta inválida",
254
+ "error.couldNotStartDownload": "No se pudo iniciar la descarga",
255
+ "error.noRequestId": "No se recibió un ID de solicitud del servidor",
256
+ },
257
  };