Files
Claude 4897d784eb feat(kaynak): Animeler kaynagi eklendi
turkanime.tv kapandi; yeni kaynak olarak Animeler.pw (eski animeler.me,
301 ile yonleniyor) eklendi. Turkce altyazili anime + donghua sitesi;
Laravel arka ucu, onunde JS sinamasi olmayan Cloudflare. Tarayici
gerekmiyor, curl_cffi (chrome131) yetiyor.

Nasil calisiyor (turkanime_api/sources/animeler.py):
- Arama: GET /ajax/search?q= (JSON, en cok 8 sonuc, alaka sirasiyla).
  Daha fazlasi istenirse /filter?search= kartlariyla tamamlaniyor.
  "Comic" kategorisi ve yetiskin turleri (Hentai/Erotica; tur listesi
  bir kez cekilip 12 sa onbellekte) atiliyor. Sonuc yoksa [], site
  yanit vermezse AnimelerHatasi (arama motoru "aranamadi" gosterir).
- Bolumler: GET /<slug>; satir ici `allEpisodesData` dizisi tam listeyi
  tasiyor (gorunen izgara 100'de kesiliyor). start/end ile izleme
  sirasi; bolum kimligi sitedeki yol ("one-piece/bolum-215-216").
- Akislar: GET /<slug>/bolum-N (sunucu 12-30 sn dusunuyor: YALNIZ bu
  istek 90 sn zaman asimli) -> `allEpisodeSources` JSON'u + csrf-token.
  Her kaynak icin POST /ajax/get-source-url, sayfanin taze jetonuyla ve
  sayfayi ceken AYNI oturumdan (bolum basina yeni oturum) -> /embed ->
  tek iframe. FirePlayer on yuzleri (play.animeler.pw, anizmplayer.com
  "Mugen") anizle.py'nin getVideo koduyla cozuluyor: o kod
  anizle.fireplayer_istegi / fireplayer_akisi olarak disa acildi, Anizle
  ayni ucu ayni basliklarla cagirmaya devam ediyor. loveulikeido.site
  aynalari CryptoJS AES (EVP_BytesToKey) ile cozuluyor, yalnizca taninan
  oynaticilar tutuluyor (pycryptodome yoksa -- sunucu imaji -- adim
  atlaniyor). Olmayan bolum icin site 200 ile 1. bolumu donduruyor;
  kanonik adres denetimi bunu 404 hatasi yapiyor. Siralama olculen
  yt-dlp basarisina gore (sibnet, mail.ru, Mugen HLS, gdrive,
  dailymotion, yadisk, sendvid, ..., ok.ru en sonda); "Yapay Zeka"
  (makine cevirisi) grubu insan cevirisinden sonra. Ayni fansub+sunucu
  adindan en cok 3 kaynak cozuluyor (JJK 1: 52 kaynak).
- Hatalar AnimelerHatasi(status_code) ile yukseliyor; tarayici 404'u
  kalici, 5xx'i gecici, 403/429'u engel sayiyor.

Kayit: kayit.py'ye tembel yukleyici + Kaynak("Animeler", "Animeler.pw",
"AN", ...) satiri (bolum_adresi, bolum_slugu, taranabilir). DISCLAIMER
tablolarina animeler.pw ve oynatici konaklari eklendi; crawler tablo
testi ve sunucu bagimlilik listesi guncellendi.

Testler: tests/test_kaynak_animeler.py (46 cevrimdisi + 1 --network),
sitenin gercek yanitlarindan kirpilmis fiksturler
tests/fixtures/animeler/ (her biri <= 58 KB).

Canli denetim (2026-09-24, bu makineden):
- frieren: 3 sonuc; sousou-no-frieren 28 bolum; bolum-1 7 akis (11.8 sn)
- one piece: 10 sonuc (8 ajax + filtre); one-piece 1157 bolum
  (son bolum-1161); bolum-1 9 akis (16.0 sn)
- naruto: 10 sonuc; naruto-shippuuden 482 bolum (ilk "bolum-1-2");
  bolum-1-2 8 akis (16.0 sn)
- jujutsu kaisen: 4 sonuc; 24 bolum; bolum-1 19 akis (52 kaynaktan)
- yt-dlp --simulate --get-url: frieren 3/4, one piece 4/5, naruto 3/4,
  jjk 4/5 oynatici turu cozuldu (sibnet, mail.ru, gdrive, sendvid,
  dailymotion). Aralikli GET: mail.ru/gdrive/sendvid 206 video/mp4;
  sibnet yt-dlp'nin kendi Referer'iyla 206 video/mp4. ok.ru yt-dlp'de
  "author blocked" (bu yuzden en sonda). Mugen HLS burada yt-dlp'de
  403: imza istek atan IP'ye bagli ve bu ortamin cikis IP'si donuyor;
  jeton+m3u8 ayni oturumdan: master 200, varyant 466 segment, segment
  206 (MPEG-TS). Tek IP'li kullanicida Anizle'deki gibi calisir.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015orra9NXZHpRa7PJyxoyR2
2026-09-25 12:34:31 +00:00

327 lines
56 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<html lang="tr">
<head>
<title>Naruto izle - Anime izle - Animeler Pw - Turkanime - Tranimeizle</title>
<meta name="csrf-token" content="3WFaM4DJ8tQsONI2JxmeR92FBIKp9MZBuZJVbXg9">
<link rel="canonical" href="https://animeler.pw/naruto">
</head>
<body>
<!-- kirpildi: sayfanin geri kalani -->
<script>
(function($) {
"use strict";
var seasonEpisodesData = {
};
var allEpisodesData = [
{ id: 15925, url: "https://animeler.pw/naruto/bolum-1", start: 1, end: 1, display: "1", title: "Naruto 1. B\u00f6l\u00fcm izle" }, { id: 15926, url: "https://animeler.pw/naruto/bolum-2", start: 2, end: 2, display: "2", title: "Naruto 2. B\u00f6l\u00fcm izle" }, { id: 15927, url: "https://animeler.pw/naruto/bolum-3", start: 3, end: 3, display: "3", title: "Naruto 3. B\u00f6l\u00fcm izle" }, { id: 15928, url: "https://animeler.pw/naruto/bolum-4", start: 4, end: 4, display: "4", title: "Naruto 4. B\u00f6l\u00fcm izle" }, { id: 15929, url: "https://animeler.pw/naruto/bolum-5", start: 5, end: 5, display: "5", title: "Naruto 5. B\u00f6l\u00fcm izle" }, { id: 15930, url: "https://animeler.pw/naruto/bolum-6", start: 6, end: 6, display: "6", title: "Naruto 6. B\u00f6l\u00fcm izle" }, { id: 15931, url: "https://animeler.pw/naruto/bolum-7", start: 7, end: 7, display: "7", title: "Naruto 7. B\u00f6l\u00fcm izle" }, { id: 15932, url: "https://animeler.pw/naruto/bolum-8", start: 8, end: 8, display: "8", title: "Naruto 8. B\u00f6l\u00fcm izle" }, { id: 15933, url: "https://animeler.pw/naruto/bolum-9", start: 9, end: 9, display: "9", title: "Naruto 9. B\u00f6l\u00fcm izle" }, { id: 15934, url: "https://animeler.pw/naruto/bolum-10", start: 10, end: 10, display: "10", title: "Naruto 10. B\u00f6l\u00fcm izle" }, { id: 15935, url: "https://animeler.pw/naruto/bolum-11", start: 11, end: 11, display: "11", title: "Naruto 11. B\u00f6l\u00fcm izle" }, { id: 15936, url: "https://animeler.pw/naruto/bolum-12", start: 12, end: 12, display: "12", title: "Naruto 12. B\u00f6l\u00fcm izle" }, { id: 15937, url: "https://animeler.pw/naruto/bolum-13", start: 13, end: 13, display: "13", title: "Naruto 13. B\u00f6l\u00fcm izle" }, { id: 15938, url: "https://animeler.pw/naruto/bolum-14", start: 14, end: 14, display: "14", title: "Naruto 14. B\u00f6l\u00fcm izle" }, { id: 15939, url: "https://animeler.pw/naruto/bolum-15", start: 15, end: 15, display: "15", title: "Naruto 15. B\u00f6l\u00fcm izle" }, { id: 15940, url: "https://animeler.pw/naruto/bolum-16", start: 16, end: 16, display: "16", title: "Naruto 16. B\u00f6l\u00fcm izle" }, { id: 15941, url: "https://animeler.pw/naruto/bolum-17", start: 17, end: 17, display: "17", title: "Naruto 17. B\u00f6l\u00fcm izle" }, { id: 15942, url: "https://animeler.pw/naruto/bolum-18", start: 18, end: 18, display: "18", title: "Naruto 18. B\u00f6l\u00fcm izle" }, { id: 15943, url: "https://animeler.pw/naruto/bolum-19", start: 19, end: 19, display: "19", title: "Naruto 19. B\u00f6l\u00fcm izle" }, { id: 15944, url: "https://animeler.pw/naruto/bolum-20", start: 20, end: 20, display: "20", title: "Naruto 20. B\u00f6l\u00fcm izle" }, { id: 15945, url: "https://animeler.pw/naruto/bolum-21", start: 21, end: 21, display: "21", title: "Naruto 21. B\u00f6l\u00fcm izle" }, { id: 15946, url: "https://animeler.pw/naruto/bolum-22", start: 22, end: 22, display: "22", title: "Naruto 22. B\u00f6l\u00fcm izle" }, { id: 15947, url: "https://animeler.pw/naruto/bolum-23", start: 23, end: 23, display: "23", title: "Naruto 23. B\u00f6l\u00fcm izle" }, { id: 15948, url: "https://animeler.pw/naruto/bolum-24", start: 24, end: 24, display: "24", title: "Naruto 24. B\u00f6l\u00fcm izle" }, { id: 15949, url: "https://animeler.pw/naruto/bolum-25", start: 25, end: 25, display: "25", title: "Naruto 25. B\u00f6l\u00fcm izle" }, { id: 15950, url: "https://animeler.pw/naruto/bolum-26", start: 26, end: 26, display: "26", title: "Naruto 26. B\u00f6l\u00fcm izle" }, { id: 15951, url: "https://animeler.pw/naruto/bolum-27", start: 27, end: 27, display: "27", title: "Naruto 27. B\u00f6l\u00fcm izle" }, { id: 15952, url: "https://animeler.pw/naruto/bolum-28", start: 28, end: 28, display: "28", title: "Naruto 28. B\u00f6l\u00fcm izle" }, { id: 15953, url: "https://animeler.pw/naruto/bolum-29", start: 29, end: 29, display: "29", title: "Naruto 29. B\u00f6l\u00fcm izle" }, { id: 15954, url: "https://animeler.pw/naruto/bolum-30", start: 30, end: 30, display: "30", title: "Naruto 30. B\u00f6l\u00fcm izle" }, { id: 15955, url: "https://animeler.pw/naruto/bolum-31", start: 31, end: 31, display: "31", title: "Naruto 31. B\u00f6l\u00fcm izle" }, { id: 15956, url: "https://animeler.pw/naruto/bolum-32", start: 32, end: 32, display: "32", title: "Naruto 32. B\u00f6l\u00fcm izle" }, { id: 15957, url: "https://animeler.pw/naruto/bolum-33", start: 33, end: 33, display: "33", title: "Naruto 33. B\u00f6l\u00fcm izle" }, { id: 15958, url: "https://animeler.pw/naruto/bolum-34", start: 34, end: 34, display: "34", title: "Naruto 34. B\u00f6l\u00fcm izle" }, { id: 15959, url: "https://animeler.pw/naruto/bolum-35", start: 35, end: 35, display: "35", title: "Naruto 35. B\u00f6l\u00fcm izle" }, { id: 15960, url: "https://animeler.pw/naruto/bolum-36", start: 36, end: 36, display: "36", title: "Naruto 36. B\u00f6l\u00fcm izle" }, { id: 15961, url: "https://animeler.pw/naruto/bolum-37", start: 37, end: 37, display: "37", title: "Naruto 37. B\u00f6l\u00fcm izle" }, { id: 15962, url: "https://animeler.pw/naruto/bolum-38", start: 38, end: 38, display: "38", title: "Naruto 38. B\u00f6l\u00fcm izle" }, { id: 15963, url: "https://animeler.pw/naruto/bolum-39", start: 39, end: 39, display: "39", title: "Naruto 39. B\u00f6l\u00fcm izle" }, { id: 15964, url: "https://animeler.pw/naruto/bolum-40", start: 40, end: 40, display: "40", title: "Naruto 40. B\u00f6l\u00fcm izle" }, { id: 15965, url: "https://animeler.pw/naruto/bolum-41", start: 41, end: 41, display: "41", title: "Naruto 41. B\u00f6l\u00fcm izle" }, { id: 15966, url: "https://animeler.pw/naruto/bolum-42", start: 42, end: 42, display: "42", title: "Naruto 42. B\u00f6l\u00fcm izle" }, { id: 15967, url: "https://animeler.pw/naruto/bolum-43", start: 43, end: 43, display: "43", title: "Naruto 43. B\u00f6l\u00fcm izle" }, { id: 15968, url: "https://animeler.pw/naruto/bolum-44", start: 44, end: 44, display: "44", title: "Naruto 44. B\u00f6l\u00fcm izle" }, { id: 15969, url: "https://animeler.pw/naruto/bolum-45", start: 45, end: 45, display: "45", title: "Naruto 45. B\u00f6l\u00fcm izle" }, { id: 15970, url: "https://animeler.pw/naruto/bolum-46", start: 46, end: 46, display: "46", title: "Naruto 46. B\u00f6l\u00fcm izle" }, { id: 15971, url: "https://animeler.pw/naruto/bolum-47", start: 47, end: 47, display: "47", title: "Naruto 47. B\u00f6l\u00fcm izle" }, { id: 15972, url: "https://animeler.pw/naruto/bolum-48", start: 48, end: 48, display: "48", title: "Naruto 48. B\u00f6l\u00fcm izle" }, { id: 15973, url: "https://animeler.pw/naruto/bolum-49", start: 49, end: 49, display: "49", title: "Naruto 49. B\u00f6l\u00fcm izle" }, { id: 15974, url: "https://animeler.pw/naruto/bolum-50", start: 50, end: 50, display: "50", title: "Naruto 50. B\u00f6l\u00fcm izle" }, { id: 15975, url: "https://animeler.pw/naruto/bolum-51", start: 51, end: 51, display: "51", title: "Naruto 51. B\u00f6l\u00fcm izle" }, { id: 15976, url: "https://animeler.pw/naruto/bolum-52", start: 52, end: 52, display: "52", title: "Naruto 52. B\u00f6l\u00fcm izle" }, { id: 15977, url: "https://animeler.pw/naruto/bolum-53", start: 53, end: 53, display: "53", title: "Naruto 53. B\u00f6l\u00fcm izle" }, { id: 15978, url: "https://animeler.pw/naruto/bolum-54", start: 54, end: 54, display: "54", title: "Naruto 54. B\u00f6l\u00fcm izle" }, { id: 15979, url: "https://animeler.pw/naruto/bolum-55", start: 55, end: 55, display: "55", title: "Naruto 55. B\u00f6l\u00fcm izle" }, { id: 15980, url: "https://animeler.pw/naruto/bolum-56", start: 56, end: 56, display: "56", title: "Naruto 56. B\u00f6l\u00fcm izle" }, { id: 15981, url: "https://animeler.pw/naruto/bolum-57", start: 57, end: 57, display: "57", title: "Naruto 57. B\u00f6l\u00fcm izle" }, { id: 15982, url: "https://animeler.pw/naruto/bolum-58", start: 58, end: 58, display: "58", title: "Naruto 58. B\u00f6l\u00fcm izle" }, { id: 15983, url: "https://animeler.pw/naruto/bolum-59", start: 59, end: 59, display: "59", title: "Naruto 59. B\u00f6l\u00fcm izle" }, { id: 15984, url: "https://animeler.pw/naruto/bolum-60", start: 60, end: 60, display: "60", title: "Naruto 60. B\u00f6l\u00fcm izle" }, { id: 15985, url: "https://animeler.pw/naruto/bolum-61", start: 61, end: 61, display: "61", title: "Naruto 61. B\u00f6l\u00fcm izle" }, { id: 15986, url: "https://animeler.pw/naruto/bolum-62", start: 62, end: 62, display: "62", title: "Naruto 62. B\u00f6l\u00fcm izle" }, { id: 15987, url: "https://animeler.pw/naruto/bolum-63", start: 63, end: 63, display: "63", title: "Naruto 63. B\u00f6l\u00fcm izle" }, { id: 15988, url: "https://animeler.pw/naruto/bolum-64", start: 64, end: 64, display: "64", title: "Naruto 64. B\u00f6l\u00fcm izle" }, { id: 15989, url: "https://animeler.pw/naruto/bolum-65", start: 65, end: 65, display: "65", title: "Naruto 65. B\u00f6l\u00fcm izle" }, { id: 15990, url: "https://animeler.pw/naruto/bolum-66", start: 66, end: 66, display: "66", title: "Naruto 66. B\u00f6l\u00fcm izle" }, { id: 15991, url: "https://animeler.pw/naruto/bolum-67", start: 67, end: 67, display: "67", title: "Naruto 67. B\u00f6l\u00fcm izle" }, { id: 15992, url: "https://animeler.pw/naruto/bolum-68", start: 68, end: 68, display: "68", title: "Naruto 68. B\u00f6l\u00fcm izle" }, { id: 15993, url: "https://animeler.pw/naruto/bolum-69", start: 69, end: 69, display: "69", title: "Naruto 69. B\u00f6l\u00fcm izle" }, { id: 15994, url: "https://animeler.pw/naruto/bolum-70", start: 70, end: 70, display: "70", title: "Naruto 70. B\u00f6l\u00fcm izle" }, { id: 15995, url: "https://animeler.pw/naruto/bolum-71", start: 71, end: 71, display: "71", title: "Naruto 71. B\u00f6l\u00fcm izle" }, { id: 15996, url: "https://animeler.pw/naruto/bolum-72", start: 72, end: 72, display: "72", title: "Naruto 72. B\u00f6l\u00fcm izle" }, { id: 15997, url: "https://animeler.pw/naruto/bolum-73", start: 73, end: 73, display: "73", title: "Naruto 73. B\u00f6l\u00fcm izle" }, { id: 15998, url: "https://animeler.pw/naruto/bolum-74", start: 74, end: 74, display: "74", title: "Naruto 74. B\u00f6l\u00fcm izle" }, { id: 15999, url: "https://animeler.pw/naruto/bolum-75", start: 75, end: 75, display: "75", title: "Naruto 75. B\u00f6l\u00fcm izle" }, { id: 16000, url: "https://animeler.pw/naruto/bolum-76", start: 76, end: 76, display: "76", title: "Naruto 76. B\u00f6l\u00fcm izle" }, { id: 16001, url: "https://animeler.pw/naruto/bolum-77", start: 77, end: 77, display: "77", title: "Naruto 77. B\u00f6l\u00fcm izle" }, { id: 16002, url: "https://animeler.pw/naruto/bolum-78", start: 78, end: 78, display: "78", title: "Naruto 78. B\u00f6l\u00fcm izle" }, { id: 16003, url: "https://animeler.pw/naruto/bolum-79", start: 79, end: 79, display: "79", title: "Naruto 79. B\u00f6l\u00fcm izle" }, { id: 16004, url: "https://animeler.pw/naruto/bolum-80", start: 80, end: 80, display: "80", title: "Naruto 80. B\u00f6l\u00fcm izle" }, { id: 16005, url: "https://animeler.pw/naruto/bolum-81", start: 81, end: 81, display: "81", title: "Naruto 81. B\u00f6l\u00fcm izle" }, { id: 16006, url: "https://animeler.pw/naruto/bolum-82", start: 82, end: 82, display: "82", title: "Naruto 82. B\u00f6l\u00fcm izle" }, { id: 16007, url: "https://animeler.pw/naruto/bolum-83", start: 83, end: 83, display: "83", title: "Naruto 83. B\u00f6l\u00fcm izle" }, { id: 16008, url: "https://animeler.pw/naruto/bolum-84", start: 84, end: 84, display: "84", title: "Naruto 84. B\u00f6l\u00fcm izle" }, { id: 16009, url: "https://animeler.pw/naruto/bolum-85", start: 85, end: 85, display: "85", title: "Naruto 85. B\u00f6l\u00fcm izle" }, { id: 16010, url: "https://animeler.pw/naruto/bolum-86", start: 86, end: 86, display: "86", title: "Naruto 86. B\u00f6l\u00fcm izle" }, { id: 16011, url: "https://animeler.pw/naruto/bolum-87", start: 87, end: 87, display: "87", title: "Naruto 87. B\u00f6l\u00fcm izle" }, { id: 16012, url: "https://animeler.pw/naruto/bolum-88", start: 88, end: 88, display: "88", title: "Naruto 88. B\u00f6l\u00fcm izle" }, { id: 16013, url: "https://animeler.pw/naruto/bolum-89", start: 89, end: 89, display: "89", title: "Naruto 89. B\u00f6l\u00fcm izle" }, { id: 16014, url: "https://animeler.pw/naruto/bolum-90", start: 90, end: 90, display: "90", title: "Naruto 90. B\u00f6l\u00fcm izle" }, { id: 16015, url: "https://animeler.pw/naruto/bolum-91", start: 91, end: 91, display: "91", title: "Naruto 91. B\u00f6l\u00fcm izle" }, { id: 16016, url: "https://animeler.pw/naruto/bolum-92", start: 92, end: 92, display: "92", title: "Naruto 92. B\u00f6l\u00fcm izle" }, { id: 16017, url: "https://animeler.pw/naruto/bolum-93", start: 93, end: 93, display: "93", title: "Naruto 93. B\u00f6l\u00fcm izle" }, { id: 16018, url: "https://animeler.pw/naruto/bolum-94", start: 94, end: 94, display: "94", title: "Naruto 94. B\u00f6l\u00fcm izle" }, { id: 16019, url: "https://animeler.pw/naruto/bolum-95", start: 95, end: 95, display: "95", title: "Naruto 95. B\u00f6l\u00fcm izle" }, { id: 16020, url: "https://animeler.pw/naruto/bolum-96", start: 96, end: 96, display: "96", title: "Naruto 96. B\u00f6l\u00fcm izle" }, { id: 16021, url: "https://animeler.pw/naruto/bolum-97", start: 97, end: 97, display: "97", title: "Naruto 97. B\u00f6l\u00fcm izle" }, { id: 16022, url: "https://animeler.pw/naruto/bolum-98", start: 98, end: 98, display: "98", title: "Naruto 98. B\u00f6l\u00fcm izle" }, { id: 16023, url: "https://animeler.pw/naruto/bolum-99", start: 99, end: 99, display: "99", title: "Naruto 99. B\u00f6l\u00fcm izle" }, { id: 16024, url: "https://animeler.pw/naruto/bolum-100", start: 100, end: 100, display: "100", title: "Naruto 100. B\u00f6l\u00fcm izle" }, { id: 16025, url: "https://animeler.pw/naruto/bolum-101", start: 101, end: 101, display: "101", title: "Naruto 101. B\u00f6l\u00fcm izle" }, { id: 16026, url: "https://animeler.pw/naruto/bolum-102", start: 102, end: 102, display: "102", title: "Naruto 102. B\u00f6l\u00fcm izle" }, { id: 16027, url: "https://animeler.pw/naruto/bolum-103", start: 103, end: 103, display: "103", title: "Naruto 103. B\u00f6l\u00fcm izle" }, { id: 16028, url: "https://animeler.pw/naruto/bolum-104", start: 104, end: 104, display: "104", title: "Naruto 104. B\u00f6l\u00fcm izle" }, { id: 16029, url: "https://animeler.pw/naruto/bolum-105", start: 105, end: 105, display: "105", title: "Naruto 105. B\u00f6l\u00fcm izle" }, { id: 16030, url: "https://animeler.pw/naruto/bolum-106", start: 106, end: 106, display: "106", title: "Naruto 106. B\u00f6l\u00fcm izle" }, { id: 16031, url: "https://animeler.pw/naruto/bolum-107", start: 107, end: 107, display: "107", title: "Naruto 107. B\u00f6l\u00fcm izle" }, { id: 16032, url: "https://animeler.pw/naruto/bolum-108", start: 108, end: 108, display: "108", title: "Naruto 108. B\u00f6l\u00fcm izle" }, { id: 16033, url: "https://animeler.pw/naruto/bolum-109", start: 109, end: 109, display: "109", title: "Naruto 109. B\u00f6l\u00fcm izle" }, { id: 16034, url: "https://animeler.pw/naruto/bolum-110", start: 110, end: 110, display: "110", title: "Naruto 110. B\u00f6l\u00fcm izle" }, { id: 16035, url: "https://animeler.pw/naruto/bolum-111", start: 111, end: 111, display: "111", title: "Naruto 111. B\u00f6l\u00fcm izle" }, { id: 16036, url: "https://animeler.pw/naruto/bolum-112", start: 112, end: 112, display: "112", title: "Naruto 112. B\u00f6l\u00fcm izle" }, { id: 16037, url: "https://animeler.pw/naruto/bolum-113", start: 113, end: 113, display: "113", title: "Naruto 113. B\u00f6l\u00fcm izle" }, { id: 16038, url: "https://animeler.pw/naruto/bolum-114", start: 114, end: 114, display: "114", title: "Naruto 114. B\u00f6l\u00fcm izle" }, { id: 16039, url: "https://animeler.pw/naruto/bolum-115", start: 115, end: 115, display: "115", title: "Naruto 115. B\u00f6l\u00fcm izle" }, { id: 16040, url: "https://animeler.pw/naruto/bolum-116", start: 116, end: 116, display: "116", title: "Naruto 116. B\u00f6l\u00fcm izle" }, { id: 16041, url: "https://animeler.pw/naruto/bolum-117", start: 117, end: 117, display: "117", title: "Naruto 117. B\u00f6l\u00fcm izle" }, { id: 16042, url: "https://animeler.pw/naruto/bolum-118", start: 118, end: 118, display: "118", title: "Naruto 118. B\u00f6l\u00fcm izle" }, { id: 16043, url: "https://animeler.pw/naruto/bolum-119", start: 119, end: 119, display: "119", title: "Naruto 119. B\u00f6l\u00fcm izle" }, { id: 16044, url: "https://animeler.pw/naruto/bolum-120", start: 120, end: 120, display: "120", title: "Naruto 120. B\u00f6l\u00fcm izle" }, { id: 16045, url: "https://animeler.pw/naruto/bolum-121", start: 121, end: 121, display: "121", title: "Naruto 121. B\u00f6l\u00fcm izle" }, { id: 16046, url: "https://animeler.pw/naruto/bolum-122", start: 122, end: 122, display: "122", title: "Naruto 122. B\u00f6l\u00fcm izle" }, { id: 16047, url: "https://animeler.pw/naruto/bolum-123", start: 123, end: 123, display: "123", title: "Naruto 123. B\u00f6l\u00fcm izle" }, { id: 16048, url: "https://animeler.pw/naruto/bolum-124", start: 124, end: 124, display: "124", title: "Naruto 124. B\u00f6l\u00fcm izle" }, { id: 16049, url: "https://animeler.pw/naruto/bolum-125", start: 125, end: 125, display: "125", title: "Naruto 125. B\u00f6l\u00fcm izle" }, { id: 16050, url: "https://animeler.pw/naruto/bolum-126", start: 126, end: 126, display: "126", title: "Naruto 126. B\u00f6l\u00fcm izle" }, { id: 16051, url: "https://animeler.pw/naruto/bolum-127", start: 127, end: 127, display: "127", title: "Naruto 127. B\u00f6l\u00fcm izle" }, { id: 16052, url: "https://animeler.pw/naruto/bolum-128", start: 128, end: 128, display: "128", title: "Naruto 128. B\u00f6l\u00fcm izle" }, { id: 16053, url: "https://animeler.pw/naruto/bolum-129", start: 129, end: 129, display: "129", title: "Naruto 129. B\u00f6l\u00fcm izle" }, { id: 16054, url: "https://animeler.pw/naruto/bolum-130", start: 130, end: 130, display: "130", title: "Naruto 130. B\u00f6l\u00fcm izle" }, { id: 16055, url: "https://animeler.pw/naruto/bolum-131", start: 131, end: 131, display: "131", title: "Naruto 131. B\u00f6l\u00fcm izle" }, { id: 16056, url: "https://animeler.pw/naruto/bolum-132", start: 132, end: 132, display: "132", title: "Naruto 132. B\u00f6l\u00fcm izle" }, { id: 16057, url: "https://animeler.pw/naruto/bolum-133", start: 133, end: 133, display: "133", title: "Naruto 133. B\u00f6l\u00fcm izle" }, { id: 16058, url: "https://animeler.pw/naruto/bolum-134", start: 134, end: 134, display: "134", title: "Naruto 134. B\u00f6l\u00fcm izle" }, { id: 16059, url: "https://animeler.pw/naruto/bolum-135", start: 135, end: 135, display: "135", title: "Naruto 135. B\u00f6l\u00fcm izle" }, { id: 16060, url: "https://animeler.pw/naruto/bolum-136", start: 136, end: 136, display: "136", title: "Naruto 136. B\u00f6l\u00fcm izle" }, { id: 16061, url: "https://animeler.pw/naruto/bolum-137", start: 137, end: 137, display: "137", title: "Naruto 137. B\u00f6l\u00fcm izle" }, { id: 16062, url: "https://animeler.pw/naruto/bolum-138", start: 138, end: 138, display: "138", title: "Naruto 138. B\u00f6l\u00fcm izle" }, { id: 16063, url: "https://animeler.pw/naruto/bolum-139", start: 139, end: 139, display: "139", title: "Naruto 139. B\u00f6l\u00fcm izle" }, { id: 16064, url: "https://animeler.pw/naruto/bolum-140", start: 140, end: 140, display: "140", title: "Naruto 140. B\u00f6l\u00fcm izle" }, { id: 16065, url: "https://animeler.pw/naruto/bolum-141", start: 141, end: 141, display: "141", title: "Naruto 141. B\u00f6l\u00fcm izle" }, { id: 16066, url: "https://animeler.pw/naruto/bolum-142", start: 142, end: 142, display: "142", title: "Naruto 142. B\u00f6l\u00fcm izle" }, { id: 16067, url: "https://animeler.pw/naruto/bolum-143", start: 143, end: 143, display: "143", title: "Naruto 143. B\u00f6l\u00fcm izle" }, { id: 16068, url: "https://animeler.pw/naruto/bolum-144", start: 144, end: 144, display: "144", title: "Naruto 144. B\u00f6l\u00fcm izle" }, { id: 16069, url: "https://animeler.pw/naruto/bolum-145", start: 145, end: 145, display: "145", title: "Naruto 145. B\u00f6l\u00fcm izle" }, { id: 16070, url: "https://animeler.pw/naruto/bolum-146", start: 146, end: 146, display: "146", title: "Naruto 146. B\u00f6l\u00fcm izle" }, { id: 16071, url: "https://animeler.pw/naruto/bolum-147", start: 147, end: 147, display: "147", title: "Naruto 147. B\u00f6l\u00fcm izle" }, { id: 16072, url: "https://animeler.pw/naruto/bolum-148", start: 148, end: 148, display: "148", title: "Naruto 148. B\u00f6l\u00fcm izle" }, { id: 16073, url: "https://animeler.pw/naruto/bolum-149", start: 149, end: 149, display: "149", title: "Naruto 149. B\u00f6l\u00fcm izle" }, { id: 16074, url: "https://animeler.pw/naruto/bolum-150", start: 150, end: 150, display: "150", title: "Naruto 150. B\u00f6l\u00fcm izle" }, { id: 16075, url: "https://animeler.pw/naruto/bolum-151", start: 151, end: 151, display: "151", title: "Naruto 151. B\u00f6l\u00fcm izle" }, { id: 16076, url: "https://animeler.pw/naruto/bolum-152", start: 152, end: 152, display: "152", title: "Naruto 152. B\u00f6l\u00fcm izle" }, { id: 16077, url: "https://animeler.pw/naruto/bolum-153", start: 153, end: 153, display: "153", title: "Naruto 153. B\u00f6l\u00fcm izle" }, { id: 16078, url: "https://animeler.pw/naruto/bolum-154", start: 154, end: 154, display: "154", title: "Naruto 154. B\u00f6l\u00fcm izle" }, { id: 16079, url: "https://animeler.pw/naruto/bolum-155", start: 155, end: 155, display: "155", title: "Naruto 155. B\u00f6l\u00fcm izle" }, { id: 16080, url: "https://animeler.pw/naruto/bolum-156", start: 156, end: 156, display: "156", title: "Naruto 156. B\u00f6l\u00fcm izle" }, { id: 16081, url: "https://animeler.pw/naruto/bolum-157", start: 157, end: 157, display: "157", title: "Naruto 157. B\u00f6l\u00fcm izle" }, { id: 16082, url: "https://animeler.pw/naruto/bolum-158", start: 158, end: 158, display: "158", title: "Naruto 158. B\u00f6l\u00fcm izle" }, { id: 16083, url: "https://animeler.pw/naruto/bolum-159", start: 159, end: 159, display: "159", title: "Naruto 159. B\u00f6l\u00fcm izle" }, { id: 16084, url: "https://animeler.pw/naruto/bolum-160", start: 160, end: 160, display: "160", title: "Naruto 160. B\u00f6l\u00fcm izle" }, { id: 16085, url: "https://animeler.pw/naruto/bolum-161", start: 161, end: 161, display: "161", title: "Naruto 161. B\u00f6l\u00fcm izle" }, { id: 16086, url: "https://animeler.pw/naruto/bolum-162", start: 162, end: 162, display: "162", title: "Naruto 162. B\u00f6l\u00fcm izle" }, { id: 16087, url: "https://animeler.pw/naruto/bolum-163", start: 163, end: 163, display: "163", title: "Naruto 163. B\u00f6l\u00fcm izle" }, { id: 16088, url: "https://animeler.pw/naruto/bolum-164", start: 164, end: 164, display: "164", title: "Naruto 164. B\u00f6l\u00fcm izle" }, { id: 16089, url: "https://animeler.pw/naruto/bolum-165", start: 165, end: 165, display: "165", title: "Naruto 165. B\u00f6l\u00fcm izle" }, { id: 16090, url: "https://animeler.pw/naruto/bolum-166", start: 166, end: 166, display: "166", title: "Naruto 166. B\u00f6l\u00fcm izle" }, { id: 16091, url: "https://animeler.pw/naruto/bolum-167", start: 167, end: 167, display: "167", title: "Naruto 167. B\u00f6l\u00fcm izle" }, { id: 16092, url: "https://animeler.pw/naruto/bolum-168", start: 168, end: 168, display: "168", title: "Naruto 168. B\u00f6l\u00fcm izle" }, { id: 16093, url: "https://animeler.pw/naruto/bolum-169", start: 169, end: 169, display: "169", title: "Naruto 169. B\u00f6l\u00fcm izle" }, { id: 16094, url: "https://animeler.pw/naruto/bolum-170", start: 170, end: 170, display: "170", title: "Naruto 170. B\u00f6l\u00fcm izle" }, { id: 16095, url: "https://animeler.pw/naruto/bolum-171", start: 171, end: 171, display: "171", title: "Naruto 171. B\u00f6l\u00fcm izle" }, { id: 16096, url: "https://animeler.pw/naruto/bolum-172", start: 172, end: 172, display: "172", title: "Naruto 172. B\u00f6l\u00fcm izle" }, { id: 16097, url: "https://animeler.pw/naruto/bolum-173", start: 173, end: 173, display: "173", title: "Naruto 173. B\u00f6l\u00fcm izle" }, { id: 16098, url: "https://animeler.pw/naruto/bolum-174", start: 174, end: 174, display: "174", title: "Naruto 174. B\u00f6l\u00fcm izle" }, { id: 16099, url: "https://animeler.pw/naruto/bolum-175", start: 175, end: 175, display: "175", title: "Naruto 175. B\u00f6l\u00fcm izle" }, { id: 16100, url: "https://animeler.pw/naruto/bolum-176", start: 176, end: 176, display: "176", title: "Naruto 176. B\u00f6l\u00fcm izle" }, { id: 16101, url: "https://animeler.pw/naruto/bolum-177", start: 177, end: 177, display: "177", title: "Naruto 177. B\u00f6l\u00fcm izle" }, { id: 16102, url: "https://animeler.pw/naruto/bolum-178", start: 178, end: 178, display: "178", title: "Naruto 178. B\u00f6l\u00fcm izle" }, { id: 16103, url: "https://animeler.pw/naruto/bolum-179", start: 179, end: 179, display: "179", title: "Naruto 179. B\u00f6l\u00fcm izle" }, { id: 16104, url: "https://animeler.pw/naruto/bolum-180", start: 180, end: 180, display: "180", title: "Naruto 180. B\u00f6l\u00fcm izle" }, { id: 16105, url: "https://animeler.pw/naruto/bolum-181", start: 181, end: 181, display: "181", title: "Naruto 181. B\u00f6l\u00fcm izle" }, { id: 16106, url: "https://animeler.pw/naruto/bolum-182", start: 182, end: 182, display: "182", title: "Naruto 182. B\u00f6l\u00fcm izle" }, { id: 16107, url: "https://animeler.pw/naruto/bolum-183", start: 183, end: 183, display: "183", title: "Naruto 183. B\u00f6l\u00fcm izle" }, { id: 16108, url: "https://animeler.pw/naruto/bolum-184", start: 184, end: 184, display: "184", title: "Naruto 184. B\u00f6l\u00fcm izle" }, { id: 16109, url: "https://animeler.pw/naruto/bolum-185", start: 185, end: 185, display: "185", title: "Naruto 185. B\u00f6l\u00fcm izle" }, { id: 16110, url: "https://animeler.pw/naruto/bolum-186", start: 186, end: 186, display: "186", title: "Naruto 186. B\u00f6l\u00fcm izle" }, { id: 16111, url: "https://animeler.pw/naruto/bolum-187", start: 187, end: 187, display: "187", title: "Naruto 187. B\u00f6l\u00fcm izle" }, { id: 16112, url: "https://animeler.pw/naruto/bolum-188", start: 188, end: 188, display: "188", title: "Naruto 188. B\u00f6l\u00fcm izle" }, { id: 16113, url: "https://animeler.pw/naruto/bolum-189", start: 189, end: 189, display: "189", title: "Naruto 189. B\u00f6l\u00fcm izle" }, { id: 16114, url: "https://animeler.pw/naruto/bolum-190", start: 190, end: 190, display: "190", title: "Naruto 190. B\u00f6l\u00fcm izle" }, { id: 16115, url: "https://animeler.pw/naruto/bolum-191", start: 191, end: 191, display: "191", title: "Naruto 191. B\u00f6l\u00fcm izle" }, { id: 16116, url: "https://animeler.pw/naruto/bolum-192", start: 192, end: 192, display: "192", title: "Naruto 192. B\u00f6l\u00fcm izle" }, { id: 16117, url: "https://animeler.pw/naruto/bolum-193", start: 193, end: 193, display: "193", title: "Naruto 193. B\u00f6l\u00fcm izle" }, { id: 16118, url: "https://animeler.pw/naruto/bolum-194", start: 194, end: 194, display: "194", title: "Naruto 194. B\u00f6l\u00fcm izle" }, { id: 16119, url: "https://animeler.pw/naruto/bolum-195", start: 195, end: 195, display: "195", title: "Naruto 195. B\u00f6l\u00fcm izle" }, { id: 16120, url: "https://animeler.pw/naruto/bolum-196", start: 196, end: 196, display: "196", title: "Naruto 196. B\u00f6l\u00fcm izle" }, { id: 16121, url: "https://animeler.pw/naruto/bolum-197", start: 197, end: 197, display: "197", title: "Naruto 197. B\u00f6l\u00fcm izle" }, { id: 16122, url: "https://animeler.pw/naruto/bolum-198", start: 198, end: 198, display: "198", title: "Naruto 198. B\u00f6l\u00fcm izle" }, { id: 16123, url: "https://animeler.pw/naruto/bolum-199", start: 199, end: 199, display: "199", title: "Naruto 199. B\u00f6l\u00fcm izle" }, { id: 16124, url: "https://animeler.pw/naruto/bolum-200", start: 200, end: 200, display: "200", title: "Naruto 200. B\u00f6l\u00fcm izle" }, { id: 16125, url: "https://animeler.pw/naruto/bolum-201", start: 201, end: 201, display: "201", title: "Naruto 201. B\u00f6l\u00fcm izle" }, { id: 16126, url: "https://animeler.pw/naruto/bolum-202", start: 202, end: 202, display: "202", title: "Naruto 202. B\u00f6l\u00fcm izle" }, { id: 16127, url: "https://animeler.pw/naruto/bolum-203", start: 203, end: 203, display: "203", title: "Naruto 203. B\u00f6l\u00fcm izle" }, { id: 16128, url: "https://animeler.pw/naruto/bolum-204", start: 204, end: 204, display: "204", title: "Naruto 204. B\u00f6l\u00fcm izle" }, { id: 16129, url: "https://animeler.pw/naruto/bolum-205", start: 205, end: 205, display: "205", title: "Naruto 205. B\u00f6l\u00fcm izle" }, { id: 16130, url: "https://animeler.pw/naruto/bolum-206", start: 206, end: 206, display: "206", title: "Naruto 206. B\u00f6l\u00fcm izle" }, { id: 16131, url: "https://animeler.pw/naruto/bolum-207", start: 207, end: 207, display: "207", title: "Naruto 207. B\u00f6l\u00fcm izle" }, { id: 16132, url: "https://animeler.pw/naruto/bolum-208", start: 208, end: 208, display: "208", title: "Naruto 208. B\u00f6l\u00fcm izle" }, { id: 16133, url: "https://animeler.pw/naruto/bolum-209", start: 209, end: 209, display: "209", title: "Naruto 209. B\u00f6l\u00fcm izle" }, { id: 16134, url: "https://animeler.pw/naruto/bolum-210", start: 210, end: 210, display: "210", title: "Naruto 210. B\u00f6l\u00fcm izle" }, { id: 16135, url: "https://animeler.pw/naruto/bolum-211", start: 211, end: 211, display: "211", title: "Naruto 211. B\u00f6l\u00fcm izle" }, { id: 16136, url: "https://animeler.pw/naruto/bolum-212", start: 212, end: 212, display: "212", title: "Naruto 212. B\u00f6l\u00fcm izle" }, { id: 16137, url: "https://animeler.pw/naruto/bolum-213", start: 213, end: 213, display: "213", title: "Naruto 213. B\u00f6l\u00fcm izle" }, { id: 16138, url: "https://animeler.pw/naruto/bolum-214", start: 214, end: 214, display: "214", title: "Naruto 214. B\u00f6l\u00fcm izle" }, { id: 16139, url: "https://animeler.pw/naruto/bolum-215", start: 215, end: 215, display: "215", title: "Naruto 215. B\u00f6l\u00fcm izle" }, { id: 16140, url: "https://animeler.pw/naruto/bolum-216", start: 216, end: 216, display: "216", title: "Naruto 216. B\u00f6l\u00fcm izle" }, { id: 16141, url: "https://animeler.pw/naruto/bolum-217", start: 217, end: 217, display: "217", title: "Naruto 217. B\u00f6l\u00fcm izle" }, { id: 16142, url: "https://animeler.pw/naruto/bolum-218", start: 218, end: 218, display: "218", title: "Naruto 218. B\u00f6l\u00fcm izle" }, { id: 16143, url: "https://animeler.pw/naruto/bolum-219", start: 219, end: 219, display: "219", title: "Naruto 219. B\u00f6l\u00fcm izle" }, { id: 16144, url: "https://animeler.pw/naruto/bolum-220", start: 220, end: 220, display: "220", title: "Naruto 220. B\u00f6l\u00fcm izle" } ];
window.selectSeason = function(btn, seasonId) {
$('.season-btn').removeClass('active');
$(btn).addClass('active');
window.loadSeasonEpisodes(seasonId);
}
window.episodeViewMode = localStorage.getItem('animeDetailEpView') || 'grid';
window.setEpisodeView = function(mode) {
window.episodeViewMode = mode;
try { localStorage.setItem('animeDetailEpView', mode); } catch (e) {}
var container = document.getElementById('episodeContainer');
if (!container) return;
container.setAttribute('data-ep-view', mode);
var listEl = document.getElementById('episodeList');
if (listEl) listEl.setAttribute('aria-hidden', mode !== 'list');
if (typeof $ !== 'undefined') $('.ep-view-btn').removeClass('active').filter('[data-view="' + mode + '"]').addClass('active');
}
if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', function() {
var saved = (typeof localStorage !== 'undefined' && localStorage.getItem('animeDetailEpView')) || 'grid';
if (saved === 'list') setEpisodeView('list');
});
} else {
var saved = (typeof localStorage !== 'undefined' && localStorage.getItem('animeDetailEpView')) || 'grid';
if (saved === 'list') setEpisodeView('list');
}
$(document).on('click', '#episodeContainer .detail-ep-order-btn', function() {
var order = $(this).data('order');
if (!order || (order !== 'asc' && order !== 'desc')) return;
window.animeDetailEpisodeOrder = order;
try { localStorage.setItem('animeDetail_episode_order', order); } catch (e) {}
$('#episodeContainer .detail-ep-order-btn').removeClass('active').filter('[data-order="' + order + '"]').addClass('active');
applyDetailEpisodeOrderToContainer();
});
var currentPage = 0;
var perPage = 100;
window.animeDetailEpisodeOrder = (function() { try { return localStorage.getItem('animeDetail_episode_order') || 'asc'; } catch (e) { return 'asc'; } })();
function sortDetailPageEps(arr) {
var order = window.animeDetailEpisodeOrder || 'asc';
return arr.slice().sort(function(a, b) {
var na = parseInt(a.start, 10) || 0;
var nb = parseInt(b.start, 10) || 0;
return order === 'desc' ? nb - na : na - nb;
});
}
function applyDetailEpisodeOrderToContainer() {
var container = document.getElementById('episodeContainer');
if (!container) return;
var grid = container.querySelector('#episodeGrid');
var listEl = container.querySelector('#episodeList');
var order = window.animeDetailEpisodeOrder || 'asc';
function byEpNum(a, b) {
var na = parseInt(a.getAttribute('data-ep-num'), 10) || 0;
var nb = parseInt(b.getAttribute('data-ep-num'), 10) || 0;
return order === 'desc' ? nb - na : na - nb;
}
if (grid) {
var items = [].slice.call(grid.querySelectorAll('.ep-item'));
items.sort(byEpNum);
items.forEach(function(el) { grid.appendChild(el); });
}
if (listEl) {
var listItems = [].slice.call(listEl.querySelectorAll('.ep-list-item'));
listItems.sort(byEpNum);
listItems.forEach(function(el) { listEl.appendChild(el); });
}
if (typeof window.applyWatchedStyles === 'function') window.applyWatchedStyles();
}
window.loadSeasonEpisodes = function(seasonId) {
if (seasonId === null || !seasonEpisodesData[seasonId]) return;
const eps = seasonEpisodesData[seasonId];
const container = document.getElementById('episodeContainer');
if (!container) return;
const maxEnd = eps.length ? Math.max.apply(null, eps.map(function(e) { return e.end || 0; })) : 0;
const maxEpisodeNum = maxEnd >= 1 ? maxEnd : eps.length;
const totalPages = Math.max(1, Math.ceil(maxEpisodeNum / perPage));
let dropdownHtml = '';
for (let i = 0; i < totalPages; i++) {
const start = (i * perPage) + 1;
const end = Math.min((i + 1) * perPage, maxEpisodeNum);
dropdownHtml += '<option value="' + i + '">' + start + '-' + end + '</option>';
}
function getEpisodesInRange(epList, pageIndex, maxEp) {
var rStart = (pageIndex * perPage) + 1;
var rEnd = Math.min((pageIndex + 1) * perPage, maxEp);
return epList.filter(function(ep) {
var s = ep.start || 0;
var e = ep.end || s;
if (s < 1 && e < 1) return rStart <= 1;
return s <= rEnd && e >= rStart;
});
}
var pageEps = sortDetailPageEps(getEpisodesInRange(eps, 0, maxEpisodeNum));
var viewMode = window.episodeViewMode || 'grid';
var orderAsc = (window.animeDetailEpisodeOrder || 'asc') === 'asc';
var listHtml = '';
pageEps.forEach((ep, i) => {
listHtml += '<a href="' + ep.url + '" class="ep-list-item' + (i === 0 ? ' active' : '') + '" data-ep-id="' + (ep.id || '') + '" data-ep-num="' + ep.start + '"' + (ep.title ? ' data-episode-title="' + (ep.title || '').replace(/"/g, '&quot;') + '"' : '') + '><span class="ep-list-num">' + ep.display + '</span><span class="ep-list-label">' + ep.display + '. Bölüm</span>' + (ep.title ? '<span class="ep-title-sr" aria-hidden="true">' + (ep.title || '').replace(/</g, '&lt;').replace(/>/g, '&gt;') + '</span>' : '') + '<i class="fas fa-play ep-list-play"></i></a>';
});
let html = '<div class="episodenav">' +
'<div class="episode-view-toggle" role="group" aria-label="Bölüm görünümü">' +
'<button type="button" class="ep-view-btn' + (viewMode === 'grid' ? ' active' : '') + '" data-view="grid" onclick="setEpisodeView(\'grid\')" title="Izgara görünümü"><i class="fas fa-th-large"></i></button>' +
'<button type="button" class="ep-view-btn' + (viewMode === 'list' ? ' active' : '') + '" data-view="list" onclick="setEpisodeView(\'list\')" title="Liste görünümü"><i class="fas fa-list"></i></button>' +
'</div>' +
'<div class="episode-order-toggle d-flex align-items-center gap-1 flex-wrap" style="margin-bottom: 0;">' +
'<span class="text-muted small">Sıra:</span>' +
'<button type="button" class="detail-ep-order-btn btn btn-sm btn-outline-secondary' + (orderAsc ? ' active' : '') + '" data-order="asc" title="A-Z">A-Z</button>' +
'<button type="button" class="detail-ep-order-btn btn btn-sm btn-outline-secondary' + (!orderAsc ? ' active' : '') + '" data-order="desc" title="Z-A">Z-A</button>' +
'</div>' +
'<div class="episodenav__right">' +
'<div class="episode-search-bar episode-search-bar--in-toolbar">' +
'<input type="text" inputmode="numeric" class="ep-search-input" placeholder="Bölüm numarası girin" data-min="1" data-max="' + maxEpisodeNum + '" data-season-id="' + seasonId + '" autocomplete="off">' +
'<button class="ep-search-btn" onclick="window.goToEpisodeNumber(' + seasonId + ')" aria-label="Belirli Bölüme Git"><i class="fas fa-search"></i></button>' +
'</div>' +
'<div class="episodenav__range">' +
'<select class="ep-range-dropdown" id="epRangeSelect" onchange="window.changeEpisodeRange(this.value, ' + seasonId + ')">' + dropdownHtml + '</select>' +
'<button class="ep-nav-btn" onclick="window.navigateEpisodePage(\'prev\')" aria-label="Önceki Bölüm Sayfası"><i class="fas fa-chevron-left"></i></button>' +
'<button class="ep-nav-btn" onclick="window.navigateEpisodePage(\'next\')" aria-label="Sonraki Bölüm Sayfası"><i class="fas fa-chevron-right"></i></button>' +
'</div></div></div>' +
'<div class="episode-grid" id="episodeGrid" data-total="' + eps.length + '" data-max-ep="' + maxEpisodeNum + '" data-per-page="' + perPage + '" data-season-id="' + seasonId + '">';
pageEps.forEach((ep, i) => {
html += '<a href="' + ep.url + '" class="ep-item' + (i === 0 ? ' active' : '') + '" data-ep-id="' + (ep.id || '') + '" data-ep-num="' + ep.start + '"' + (ep.title ? ' data-episode-title="' + (ep.title || '').replace(/"/g, '&quot;') + '"' : '') + '>' + ep.display + (ep.title ? '<span class="ep-title-sr" aria-hidden="true">' + (ep.title || '').replace(/</g, '&lt;').replace(/>/g, '&gt;') + '</span>' : '') + '</a>';
});
html += '</div><div class="episode-list" id="episodeList" aria-hidden="' + (viewMode !== 'list') + '">' + listHtml + '</div>';
container.setAttribute('data-ep-view', viewMode);
container.innerHTML = html;
currentPage = 0;
if (typeof window.applyWatchedStyles === 'function') {
window.applyWatchedStyles();
}
};
window.changeEpisodeRange = function(page, seasonId) {
page = parseInt(page);
currentPage = page;
let eps;
if (seasonId !== null && seasonEpisodesData[seasonId]) {
eps = seasonEpisodesData[seasonId];
} else {
eps = allEpisodesData;
}
if (!eps) return;
var maxEp = 0;
eps.forEach(function(e) { var n = e.end || 0; if (n > maxEp) maxEp = n; });
if (maxEp < 1) maxEp = eps.length;
var gridEl = document.getElementById('episodeGrid');
if (gridEl && gridEl.getAttribute('data-max-ep')) maxEp = parseInt(gridEl.getAttribute('data-max-ep'), 10) || maxEp;
var rStart = (page * perPage) + 1;
var rEnd = Math.min((page + 1) * perPage, maxEp);
var pageEps = sortDetailPageEps(eps.filter(function(ep) {
var s = ep.start || 0;
var e = ep.end || s;
if (s < 1 && e < 1) return rStart <= 1;
return s <= rEnd && e >= rStart;
}));
const grid = document.getElementById('episodeGrid');
const listEl = document.getElementById('episodeList');
if (!grid) return;
let gridHtml = '';
let listHtml = '';
pageEps.forEach(function(ep, i) {
gridHtml += '<a href="' + ep.url + '" class="ep-item' + (i === 0 ? ' active' : '') + '" data-ep-id="' + (ep.id || '') + '" data-ep-num="' + ep.start + '"' + (ep.title ? ' data-episode-title="' + (ep.title || '').replace(/"/g, '&quot;') + '"' : '') + '>' + ep.display + (ep.title ? '<span class="ep-title-sr" aria-hidden="true">' + (ep.title || '').replace(/</g, '&lt;').replace(/>/g, '&gt;') + '</span>' : '') + '</a>';
listHtml += '<a href="' + ep.url + '" class="ep-list-item' + (i === 0 ? ' active' : '') + '" data-ep-id="' + (ep.id || '') + '" data-ep-num="' + ep.start + '"' + (ep.title ? ' data-episode-title="' + (ep.title || '').replace(/"/g, '&quot;') + '"' : '') + '><span class="ep-list-num">' + ep.display + '</span><span class="ep-list-label">' + ep.display + '. Bölüm</span>' + (ep.title ? '<span class="ep-title-sr" aria-hidden="true">' + (ep.title || '').replace(/</g, '&lt;').replace(/>/g, '&gt;') + '</span>' : '') + '<i class="fas fa-play ep-list-play"></i></a>';
});
grid.innerHTML = gridHtml;
if (listEl) listEl.innerHTML = listHtml;
if (typeof window.applyWatchedStyles === 'function') {
window.applyWatchedStyles();
}
};
(function initDetailEpisodeOrder() {
var order = window.animeDetailEpisodeOrder || 'asc';
if (typeof $ !== 'undefined') {
$('#episodeContainer .detail-ep-order-btn').removeClass('active').filter('[data-order="' + order + '"]').addClass('active');
}
applyDetailEpisodeOrderToContainer();
})();
function applyInitialEpisodeRange() {
var grid = document.getElementById('episodeGrid');
if (!grid) return;
var pp = parseInt(grid.getAttribute('data-per-page'), 10);
if (pp > 0) perPage = pp;
var sid = grid.getAttribute('data-season-id');
var seasonId = (sid === '' || sid === null || sid === undefined) ? null : sid;
if (seasonId !== null && typeof seasonEpisodesData !== 'undefined' && !seasonEpisodesData[seasonId]) return;
if (seasonId === null && (!window.allEpisodesData || allEpisodesData.length === 0)) return;
currentPage = 0;
var select = document.getElementById('epRangeSelect');
if (select) select.value = '0';
changeEpisodeRange(0, seasonId);
}
(function initDetailEpisodeRange() {
if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', function() {
setTimeout(applyInitialEpisodeRange, 0);
});
} else {
setTimeout(applyInitialEpisodeRange, 0);
}
})();
window.navigateEpisodePage = function(dir) {
const select = document.getElementById('epRangeSelect');
if (!select) return;
const currentVal = parseInt(select.value);
const maxVal = select.options.length - 1;
if (dir === 'prev' && currentVal > 0) {
select.value = currentVal - 1;
$(select).trigger('change');
} else if (dir === 'next' && currentVal < maxVal) {
select.value = currentVal + 1;
$(select).trigger('change');
}
}
window.goToEpisodeNumber = function(seasonId) {
const input = document.querySelector('.ep-search-input');
if (!input) return;
const num = parseInt(input.value, 10);
if (num <= 0) return;
var maxEp = parseInt(input.getAttribute('data-max'), 10) || 0;
if (maxEp && num > maxEp) {
alert('Geçersiz bölüm numarası (1-' + maxEp + ')');
return;
}
let eps;
if (seasonId !== null && seasonEpisodesData[seasonId]) {
eps = seasonEpisodesData[seasonId];
} else {
eps = allEpisodesData;
}
if (!eps || eps.length === 0) return;
var found = eps.find(function(ep) {
var start = ep.start || 0;
var end = ep.end || start;
return num >= start && num <= end;
});
if (found) {
window.location.href = found.url;
} else {
var byStart = eps.find(function(ep) { return (ep.start || 0) >= num; });
window.location.href = (byStart || eps[eps.length - 1]).url;
}
}
window.searchEpisode = function() {
window.goToEpisodeNumber(null);
}
window.searchEpisodeInSeason = function(seasonId) {
const input = document.querySelector(`.ep-search-input[data-season-id="${seasonId}"]`) || document.querySelector('.ep-search-input');
if (!input) return;
const num = parseInt(input.value);
if (num > 0) {
const items = document.querySelectorAll('.ep-item');
if (num <= items.length) {
window.location.href = items[num - 1].href;
}
}
}
window.toggleAllCharacters = function() {
const moreChars = document.getElementById('moreCharacters');
const btnText = document.getElementById('charBtnText');
const btnIcon = document.getElementById('charBtnIcon');
if (moreChars.classList.contains('d-none')) {
moreChars.classList.remove('d-none');
btnText.textContent = 'Daha Az Göster';
btnIcon.classList.replace('fa-chevron-down', 'fa-chevron-up');
} else {
moreChars.classList.add('d-none');
btnText.textContent = 'Tüm Karakterleri Göster (266)';
btnIcon.classList.replace('fa-chevron-up', 'fa-chevron-down');
}
}
})(jQuery);
</script>
</body>
</html>