This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| from moviepy.editor import ImageClip, VideoFileClip, concatenate_videoclips, AudioFileClip, ColorClip, CompositeVideoClip | |
| import moviepy.audio.fx.all as afx | |
| # Configurații | |
| media_directory = r"g:\De pus pe FTP 2\masina de spalat" | |
| audio_path = r"g:\Muzica\Hamidshax - Yesterday (Original Mix).mp3" | |
| output_path = r"g:\De pus pe FTP 2\masina de spalat\Video_Masina_Spalat.mp4" | |
| TARGET_RES = (1920, 1080) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| from moviepy.editor import ImageClip, VideoFileClip, concatenate_videoclips, AudioFileClip, ColorClip, CompositeVideoClip | |
| import moviepy.audio.fx.all as afx | |
| # Configurații | |
| media_directory = r"g:\De pus pe FTP 2\masina de spalat" | |
| audio_path = r"g:\Muzica\Hamidshax - Yesterday (Original Mix).mp3" | |
| output_path = r"g:\De pus pe FTP 2\masina de spalat\Video_Masina_Spalat.mp4" | |
| TARGET_RES = (1920, 1080) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| from moviepy.editor import ImageClip, VideoFileClip, concatenate_videoclips, AudioFileClip, ColorClip, CompositeVideoClip | |
| # Configurații | |
| media_directory = r"g:\De pus pe FTP 2\masina de spalat" | |
| audio_path = r"g:\Muzica\Hamidshax - Yesterday (Original Mix).mp3" | |
| output_path = r"g:\De pus pe FTP 2\masina de spalat\Video_Masina_Spalat.mp4" | |
| TARGET_RES = (1920, 1080) | |
| SORT_METHOD = 'DATE' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Vezi mai intai ce problema are video | |
| import subprocess | |
| import json | |
| filepath = r"g:\De pus pe FTP 2\masina de spalat\VID_20260119_141236 - probleme.mp4" | |
| cmd = ['ffprobe', '-v', 'quiet', '-print_format', 'json', '-show_streams', '-select_streams', 'v:0', filepath] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import subprocess | |
| import json | |
| filepath = r"g:\De pus pe FTP 2\masina de spalat\VID_20260120_143332.mp4" | |
| cmd = ['ffprobe', '-v', 'quiet', '-print_format', 'json', '-show_streams', '-select_streams', 'v:0', filepath] | |
| result = subprocess.run(cmd, capture_output=True, text=True) | |
| print(result.stdout) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| setlocal enabledelayedexpansion | |
| echo Pornirea scripturilor Python... | |
| set PYTHON_PATH=c:\Users\necul\AppData\Local\Programs\Python\Python312\python.exe | |
| set LOG_FILE=C:\Folder1\fisiere_gata\errors.log | |
| :: Attempt to create a new log file with a unique name | |
| set TIMESTAMP=%DATE:~-4%%DATE:~3,2%%DATE:~0,2%_%TIME:~0,2%%TIME:~3,2%%TIME:~6,2% | |
| set TIMESTAMP=%TIMESTAMP: =0% | |
| set NEW_LOG_FILE=C:\Folder1\fisiere_gata\errors_%TIMESTAMP%.log | |
| echo Logfile: %NEW_LOG_FILE% > %NEW_LOG_FILE% |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """ | |
| Automatizare descărcare PDF-uri din Arcanum (FIXED VERSION cu SORTARE CRONOLOGICĂ): | |
| - FIXED: Scanează corect toate fișierele existente de pe disk | |
| - FIXED: Păstrează progresul parțial între zile | |
| - FIXED: Procesează și combină corect TOATE PDF-urile pentru fiecare issue | |
| - FIXED: Resume logic corect pentru issue-urile parțiale | |
| - FIXED: Detectează corect prefix-urile pentru fișiere | |
| - FIXED: Verifică corect issue-urile complete pentru skip URLs | |
| - FIXED: Elimină dublurile automat |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import re | |
| import sys | |
| import io | |
| from datetime import datetime | |
| from bs4 import BeautifulSoup | |
| # Fix encoding pentru Windows | |
| sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8', errors='replace') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FINAL limba romana. Corecturi gramaticale, punctuatie, stilistice si semantic-logice de pe site-ul https://neculaifantanaru.com | |
| Corectează gramatica, ortografia și punctuația textului dat in limba romana. Precizeaza ce anume nu e corect, logic si stilistic in textul dat, conform instrucțiunilor de mai jos: | |
| 1. Respectarea fidelă a textului original: | |
| - Analizează textul pentru a corecta greșelile gramaticale, de ortografie, punctuație și structură. | |
| - Păstrează cât mai mult posibil stilul, tonul și intenția originală a autorului. | |
| 2. Intervenții minime: | |
| - Corectează doar elementele care împiedică claritatea sau respectarea normelor limbii române. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import re | |
| # Test content - exact ca în fișierul HTML | |
| content = ' <a href="https://neculaifantanaru.com/stiinta-de-care-se-leaga-numele-meu.html"><img src="index_files/flag_lang_ro.jpg" title="ro" alt="ro" width="28" height="19" /></a> <a href="https://neculaifantanaru.com/fr/qualites-d-un-leader.html">' | |
| # Pattern pentru a găsi și înlocui href-ul RO | |
| pattern = r'(<a [^>]*?href=")https://neculaifantanaru\.com/[^"]*?("[^>]*?><img[^>]*?flag_lang_ro\.jpg[^>]*?></a>)' | |
| new_url = 'https://neculaifantanaru.com/manuscrisul-viu-al-vesniciei.html' | |
| replacement = r'\1' + new_url + r'\2' |
NewerOlder