Commits
2026-09-23
Coklu kaynak sozlesmesi: sources listesi, OLE okuma, atlama durumlarıAhmet Kaan Gümüş · 02e5c99
Coklu kaynak sozlesmesi: sources listesi, OLE okuma, atlama durumları
Frozen contract'a hizalandi (backend seridiyle ayni anda):
- podcast.submit 'sources' tasir: [{key,name,content_type}], en cok 10;
key source_key guvenlik desenine tabi; legacy source_key tek girdiye
duser, ikisi de yoksa bad_request. source_keys kaldirildi (hic
uretimde gormedi, backend onu hic gondermedi).
- Cikarim sihirli baytlarla tur secmeye devam eder; OLE (.doc/.ppt)
artik antiword/catppt ile okunur (60 sn timeout, utf-8 -> cp1254).
Containerfile'a antiword + catdoc girdi; pip bagimliligi YOK.
- Bir belge okunamazsa is artık DUSMEZ: o kaynak atlanir, durumu
skipped:<kod> olarak is kaydındaki sources listesine yazilir ve
podcast.report yukune eklenen sources alanıyla backend'e gider
({key,name,status}). Tumu atlanirsa job ilk atlama koduyla, diskte
hic kaynak yoksa source_not_found ile, birlesik metin
PODCAST_MIN_TEXT_CHARS altindaysa no_text_layer ile duser.
- Birlesik metin belge basina \n\n=== <name> ===\n\n basligi tasir;
tek kaynakli is basliksiz kalir.
- PODCAST_MIN_TEXT_CHARS kontrolu belge basindan birlesik metne tandi;
boş belge no_text_layer ile atlanir, kisa belge birlenmis kontrolde
degerlendirilir.
- Testler: 461 -> 489. validate + ASCII/yorum denetimi + fuzz tohumu 1
yerelde temiz.Belge bicimlerini genislet (docx/pptx/odt/odp/metin) ve coklu kaynak destegi ekleMuhammet Ozdemir · b71953f
Belge bicimlerini genislet (docx/pptx/odt/odp/metin) ve coklu kaynak destegi ekle Yeni src/extract.py: tur uzantidan degil icerikten belirleniyor (blob'lar uzantisiz). docx/pptx/odt/odp/duz metin okunuyor; .docm/.potx/.ppsx gibi turevler ek kod istemeden calisiyor. Reddedilenler (.doc/.xlsx/.rtf) sebebini ve cikis yolunu soyluyor. Yeni bagimlilik yok - hepsi zip + XML, stdlib yetti. Coklu kaynak: tek is en fazla 20 belgeyi birlestirip tek podcast uretiyor. source_key tekil kaldi, source_keys EKLENDI; alan gelmezse eski davranis surer, boylece servis backend'den once dagitilabilir. Bir belge okunamazsa is duser, sessizce atlanmaz. 369 gercek Office dosyasinda cikarim hatasi sifir. Test paketi 416 -> 461. Not: iki ozellik de backend genislemeden uretimde gorunmez - newest_pdf() sorgusu hala sadece PDF filtreliyor, PodcastSubmitPayload tek source_key tasiyor.
feat: include the chapter transcript in the podcast done reportAhmet Kaan Gümüş · 6907766
feat: include the chapter transcript in the podcast done report The done report now carries one transcript string: API-engine chapter bodies joined with a blank line, or the metin fields of the local pipeline's .script.json files. A missing or empty transcript stays an empty string and the frame still encodes.
2026-09-17
✨ feat(bridge): resolve the source PDF from <school>/<source_key>Ahmet Kaan Gümüş · df0d16a
✨ feat(bridge): resolve the source PDF from <school>/<source_key>
podcast.submit now requires source_key, the blob key of the note's newest
PDF attachment; a payload without it takes the existing bad_request path.
The job record stores source_key next to source_id and the source resolves
at PODCAST_MEDIA_ROOT/<school>/<source_key>. The school segment is
pattern-bound ([a-z0-9-]{1,64}); both segments keep the pattern and
root-containment guards, so a "." key or an escaping slug raises instead of
resolving. The old flat-path lookup is gone, and source_key is a required
record field: a pre-change record is skipped at startup with a warning
instead of failing mid-run.✨ feat(engine): yerli API motoru (PODCAST_ENGINE=api) ve vendor'siz imajAhmet Kaan Gümüş · fe5e164
✨ feat(engine): yerli API motoru (PODCAST_ENGINE=api) ve vendor'siz imaj - api motoru: PDF -> PyMuPDF (+tesseract OCR) -> LLM (LLM_BASE_URL/LLM_MODEL/LLM_API_KEY) -> ElevenLabs HTTP -> ffmpeg mux - PODCAST_ENGINE=api|local (varsayilan api); local bugunku vendored yol olarak korunur, agac yoksa calisma aninda exit 2 - eksik anahtar/HTTP hatasi/timeout: is net kodla failed olur; yarim mp3 done isaretlenmez - Containerfile vendor agaci olmadan derlenir (kosullu COPY/semboller), tesseract-ocr-tur eklenir - CI: docker build ve deploy artik PIPELINE_REPO'ya bagli degil; kosu ozeti durumu yazar - unit: systemd EnvironmentFile + TEK --env-file stack.env (podman-compose 1.6 iki bayragin ilkini yok sayiyor) - konteyner adi hezarfen_text_to_podcast; deploy sonrasi ortam degiskeni pozitif kontrolu + rollback - 35 yeni test: stub sunucu (kick/TTS hata siniflari), uctan uca is akisi, on-fix'te kirmizi