[2025-06-27 22:44:45] INFO: === STEP 1: Creating backup === [2025-06-27 22:44:45] INFO: Created backup: /workspace/stoney420/my-private-iptv-m3u1/backups/channels_20250627_224445.txt [2025-06-27 22:44:45] INFO: === STEP 2: Cleaning corrupted channels === [2025-06-27 22:44:45] INFO: Cleaning up any corrupted entries in channels.txt... [2025-06-27 22:44:45] INFO: No corrupted entries found to fix [2025-06-27 22:44:45] INFO: === STEP 3: Updating existing channels === [2025-06-27 22:44:45] INFO: FORCE re-detecting countries for ALL existing channels... [2025-06-27 22:44:45] DEBUG: Detected 🇬🇧 United Kingdom for: Sky Sports Mix FHD (keyword: 'sky') [2025-06-27 22:44:45] INFO: FORCED UPDATE: 'Sky Sports Mix FHD' from 'Sports' to '🇬🇧 United Kingdom' [2025-06-27 22:44:45] INFO: Created backup: channels.txt.backup.20250627_224445 [2025-06-27 22:44:45] INFO: FORCE updated ALL 1 channels (1 changes made) [2025-06-27 22:44:45] INFO: === STEP 4: Processing imports === [2025-06-27 22:44:45] INFO: ✅ Found bulk_import.m3u in current directory [2025-06-27 22:44:45] INFO: Import file has 181 characters [2025-06-27 22:44:45] INFO: Import file first 200 chars: #EXTINF:-1 tvg-id="SkySp.Mix.HD.uk" tvg-name="Sky Sports Mix FHD" tvg-logo="https://i.ibb.co/7kYj5gc/sky-mix.png" group-title="UK Sports",Sky Sports Mix FHD https://a1xs.vip/2000008 [2025-06-27 22:44:45] INFO: Processing bulk_import.m3u... [2025-06-27 22:44:45] INFO: Processing 2 lines after pre-processing... [2025-06-27 22:44:45] INFO: Cleaned up import file [2025-06-27 22:44:45] INFO: ✅ Cleared contents of bulk_import.m3u (file preserved for future imports) [2025-06-27 22:44:45] INFO: Saving 1 imported channels to file... [2025-06-27 22:44:45] INFO: FileManager initialized - root: /workspace/stoney420/my-private-iptv-m3u1 [2025-06-27 22:44:45] INFO: Appending 1 channels to: channels.txt [2025-06-27 22:44:45] INFO: Successfully appended 1 channels [2025-06-27 22:44:45] INFO: Verified: channels.txt now has 327 bytes [2025-06-27 22:44:45] INFO: ✅ Successfully saved 1 channels to channels.txt [2025-06-27 22:44:45] INFO: Successfully imported 1 channels [2025-06-27 22:44:45] INFO: Import returned 1 channels [2025-06-27 22:44:45] INFO: === STEP 5: Loading all channels === [2025-06-27 22:44:45] INFO: Attempting to load channels from: channels.txt [2025-06-27 22:44:45] INFO: Loaded 2 channels from file [2025-06-27 22:44:45] INFO: Loaded 2 total channels [2025-06-27 22:44:45] INFO: === STEP 6: Removing duplicates === [2025-06-27 22:44:45] INFO: Removed 1 duplicate channels [2025-06-27 22:44:45] INFO: After deduplication: 1 channels [2025-06-27 22:44:45] INFO: === STEP 9: Generating M3U === [2025-06-27 22:44:45] INFO: Generated playlist.m3u with 1 channels [2025-06-27 22:44:45] INFO: Top countries: {'🇬🇧 United Kingdom': 1} [2025-06-27 22:44:45] INFO: === STEP 10: Generating report === [2025-06-27 22:44:45] INFO: Report saved: reports/playlist_report_20250627_224445.md [2025-06-27 22:44:45] INFO: Playlist generation complete: 1 channels across 1 countries [2025-06-27 22:44:45] INFO: === FINAL DEBUG === [2025-06-27 22:44:45] INFO: === FILE SYSTEM DEBUG === [2025-06-27 22:44:45] INFO: Current working directory: /workspace/stoney420/my-private-iptv-m3u1 [2025-06-27 22:44:45] INFO: Files in current directory: ['docs', 'config', 'templates', 'playlist_update.log', '.git', 'README.md', 'playlist.m3u', 'channels.txt', 'scripts', 'reports', 'backups', '.forgejo', 'channels.txt.backup.20250627_224445', 'bulk_import.m3u'] [2025-06-27 22:44:45] INFO: ✅ Found bulk_import.m3u (size: 8 bytes) [2025-06-27 22:44:45] INFO: First 3 lines: ['#EXTM3U', '', ''] [2025-06-27 22:44:45] INFO: ✅ Found channels.txt (size: 327 bytes) [2025-06-27 22:44:45] INFO: ✅ Found playlist.m3u (size: 204 bytes) [2025-06-27 22:44:45] INFO: === END FILE SYSTEM DEBUG ===