Commit 9ce9941
committed
fix: YouTube soft-404 detection was matching all videos
The Contains(" - YouTube") check matched every valid video
since YouTube's standard title format is "Title - YouTube".
Changed to only match the exact title "YouTube" which is
what unavailable videos actually return. Also strip the
" - YouTube" suffix for cleaner display titles.1 parent 08371d8 commit 9ce9941
1 file changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
33 | 37 | | |
34 | 38 | | |
35 | 39 | | |
| |||
0 commit comments