Commit d3f7945
committed
[duplicated subtitle][YouTube] Restrict
- `SubtitleDeduplicator` relies on YouTube-specific subtitle URL semantics
(videoId, languageCode, translationCode) for cache file naming and
deduplication.
- Add `isYoutubeRelatedUrl()` to ensure deduplication logic is only
applied to YouTube URLs. For non-YouTube subtitle URLs, the original
subtitle URL is returned unchanged.SubtitleDeduplicator to YouTube-related URLs.1 parent 41e158c commit d3f7945
1 file changed
Lines changed: 20 additions & 0 deletions
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
20 | 23 | | |
21 | 24 | | |
22 | 25 | | |
| |||
75 | 78 | | |
76 | 79 | | |
77 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
78 | 88 | | |
79 | 89 | | |
80 | 90 | | |
| |||
488 | 498 | | |
489 | 499 | | |
490 | 500 | | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
491 | 511 | | |
492 | 512 | | |
493 | 513 | | |
| |||
0 commit comments