3 views
XiaoYouChR/Ghost-Downloader-3
The only downloader you need. 下载器的集大成者。
Python★ 15,444+701 that day#9 on trending
E14.5/100
Duplication1
55.2% in typescript, python, tsx, c, javascript, bash, cmakeDead code39
10.3%Complexity66
30.2% The score is jscpd's own --health model: markup, data and text left out, tests kept. The numbers below are the trending scan's.
1.55%duplicated code · 829 of 53,581 lines
80clones in code
252code files of 405 scanned
51.04%duplicated over all files · 13,005 clones
Most complex files
- features/ffmpeg_pack/container.py385 cx
- features/bili_pack/task.py288 cx
- features/yt_dlp_pack/task.py285 cx
- browser_extension/app/src/page-media/attribution/attribution.ts265 cx
- features/bili_pack/cards.py260 cx
- tools/updater/updater.c241 cx
- browser_extension/app/src/background/resource-bridge.ts234 cx
- app/services/task_service.py226 cx
- app/platform/desktop_notification.py213 cx
- app/view/pages/task_page.py211 cx
Dead code 10.29% unused · 116 findings
- features/ffmpeg_pack/container.pyunused-file
- features/bili_pack/cards.pyunused-file
- features/bili_pack/task.pyunused-file
- browser_extension/app/src/background.tsunused-file
- features/yt_dlp_pack/task.pyunused-file
- features/yt_dlp_pack/cards.pyunused-file
- browser_extension/app/src/page-media/media-button/media-button.tsunused-file
- features/ffmpeg_pack/task.pyunused-file
- features/ftp_pack/task.pyunused-file
- browser_extension/app/src/background/resource-cache.tsunused-file
The code number leaves out tests, fixtures, docs, examples, data files, styles, translations and vendored code.
Largest clones in the code
- 23 lines in 2 placespython187 tokens
166 parent.appendRow([nameItem, sizeItem, startItem, endItem]) 167 168def _initLayout(self) -> None: 169 actionsLayout = QHBoxLayout() 170 actionsLayout.setContentsMargins(0, 0, 0, 0) 171 actionsLayout.setSpacing(8) 172 actionsLayout.addWidget(self.selectAllButton) 173 actionsLayout.addWidget(self.clearButton) 174 actionsLayout.addWidget(self.invertButton) 175 actionsLayout.addStretch(1)First 10 of 23 lines.
- 15 lines in 2 placespython160 tokens
254self._trackBar.videoButton.setOptions(buildVideoTiers(mediaInfo, self.tr("最佳画质"))) 255self._trackBar.audioButton.setOptions(buildAudioTiers(mediaInfo, self.tr("最佳音质"))) 256self._audioLanguageChoices = buildAudioLanguageChoices(mediaInfo) 257self._audioLanguageButton.setTrackEnabled(bool(self._audioLanguageChoices)) 258if self._audioLanguageChoices and not task.audioLanguages: 259 task.setAudioLanguages(self._audioLanguageChoices[0][0]) 260 self._audioLanguageButton.setChecked(True) 261choices, autoLangs = buildSubtitleChoices(mediaInfo, self.tr("自动")) 262self._subtitleChoices = choices 263self._autoLangs = autoLangs437self._trackBar.videoButton.setOptions(buildVideoTiers(mediaInfo, self.tr("最佳画质"))) 438self._trackBar.audioButton.setOptions(buildAudioTiers(mediaInfo, self.tr("最佳音质"))) 439self._audioLanguageChoices = buildAudioLanguageChoices(mediaInfo) 440self._audioLanguageButton.setTrackEnabled(bool(self._audioLanguageChoices)) 441if self._audioLanguageChoices and not task.audioLanguages: 442 task.setAudioLanguages(self._audioLanguageChoices[0][0]) 443 self._audioLanguageButton.setChecked(True) 444 445choices, autoLangs = buildSubtitleChoices(mediaInfo, self.tr("自动")) 446self._subtitleChoices = choicesFirst 10 of 15 lines, the second copy on the right.
- 20 lines in 2 placespython140 tokens
39def parseTimeInput(text: str) -> int: 40 text = text.strip() 41 if not text: 42 return 0 43 parts = text.split(":") 44 try: 45 if len(parts) == 2: 46 return int(parts[0]) * 60 + int(parts[1]) 47 if len(parts) == 3: 48 return int(parts[0]) * 3600 + int(parts[1]) * 60 + int(parts[2])First 10 of 20 lines.
7 more
- 18 lines in 2 placespython139 tokens
- 22 lines in 2 placespython125 tokens
- 10 lines in 3 placespython62 tokens
- 9 lines in 3 placespython61 tokens
- 14 lines in 2 placespython120 tokens
- 17 lines in 2 placespython115 tokens
- 10 lines in 2 placespython113 tokens
Largest clones over all files, tests and data included
- 13 lines in 15 placestypescripttranslations159 tokensapp/assets/i18n/gd3.ar_SA.ts:302–314app/assets/i18n/gd3.de_DE.ts:302–314app/assets/i18n/gd3.en_US.ts:302–314app/assets/i18n/gd3.es_ES.ts:302–314app/assets/i18n/gd3.fr_FR.ts:302–314and 10 more
302 <translation>إضافة دفعة</translation> 303 </message> 304 <message> 305 <location filename="../../view/dialogs/batch_url.py" line="112"/> 306 <source>http://example.com/img/[001-100].jpg 307http://example.com/{mp4,mkv}/video</source> 308 <translation>http://example.com/img/[001-100].jpg 309http://example.com/{mp4,mkv}/video</translation> 310 </message> 311 <message>First 10 of 13 lines.
- 9 lines in 15 placestypescripttranslations138 tokensapp/assets/i18n/gd3.ar_SA.ts:6288–6296app/assets/i18n/gd3.de_DE.ts:6283–6291app/assets/i18n/gd3.en_US.ts:6297–6305app/assets/i18n/gd3.es_ES.ts:6288–6296app/assets/i18n/gd3.fr_FR.ts:6289–6297and 10 more
6288 <translation>أفضل جودة</translation> 6289</message> 6290<message> 6291 <location filename="../../../features/yt_dlp_pack/android.py" line="44"/> 6292 <location filename="../../../features/yt_dlp_pack/cards.py" line="255"/> 6293 <location filename="../../../features/yt_dlp_pack/cards.py" line="271"/> 6294 <location filename="../../../features/yt_dlp_pack/cards.py" line="438"/> 6295 <source>最佳音质</source> 6296 <translation>أفضل صوت</translation>6283 <translation>Beste Videoqualität</translation> 6284</message> 6285<message> 6286 <location filename="../../../features/yt_dlp_pack/android.py" line="44"/> 6287 <location filename="../../../features/yt_dlp_pack/cards.py" line="255"/> 6288 <location filename="../../../features/yt_dlp_pack/cards.py" line="271"/> 6289 <location filename="../../../features/yt_dlp_pack/cards.py" line="438"/> 6290 <source>最佳音质</source> 6291 <translation>Beste Audioqualität</translation> - 9 lines in 14 placestypescripttranslations138 tokensapp/assets/i18n/gd3.ar_SA.ts:6280–6288app/assets/i18n/gd3.de_DE.ts:6275–6283app/assets/i18n/gd3.en_US.ts:6289–6297app/assets/i18n/gd3.es_ES.ts:6280–6288app/assets/i18n/gd3.id_ID.ts:6279–6287and 9 more
6280 <translation>لغة الصوت</translation> 6281</message> 6282<message> 6283 <location filename="../../../features/yt_dlp_pack/android.py" line="37"/> 6284 <location filename="../../../features/yt_dlp_pack/cards.py" line="254"/> 6285 <location filename="../../../features/yt_dlp_pack/cards.py" line="270"/> 6286 <location filename="../../../features/yt_dlp_pack/cards.py" line="437"/> 6287 <source>最佳画质</source> 6288 <translation>أفضل جودة</translation>6275 <translation>Audiosprache</translation> 6276</message> 6277<message> 6278 <location filename="../../../features/yt_dlp_pack/android.py" line="37"/> 6279 <location filename="../../../features/yt_dlp_pack/cards.py" line="254"/> 6280 <location filename="../../../features/yt_dlp_pack/cards.py" line="270"/> 6281 <location filename="../../../features/yt_dlp_pack/cards.py" line="437"/> 6282 <source>最佳画质</source> 6283 <translation>Beste Videoqualität</translation> - 14 lines in 16 placestypescripttranslations118 tokens
- 11 lines in 12 placestypescripttranslations159 tokens
By format, code only
| Format | Files | Lines | Clones | Duplicated lines | Duplication |
|---|---|---|---|---|---|
| python | 191 | 40,901 | 75 | 763 | 1.87% |
| tsx | 16 | 3,104 | 4 | 60 | 1.93% |
| typescript | 40 | 8,040 | 1 | 6 | 0.07% |
| c | 2 | 1,108 | 0 | 0 | 0% |
| javascript | 2 | 379 | 0 | 0 | 0% |
| bash | 1 | 49 | 0 | 0 | 0% |
By format, all files
| Format | Files | Lines | Clones | Duplicated lines | Duplication |
|---|---|---|---|---|---|
| typescript | 57 | 116,348 | 12,872 | 93,135 | 80.05% |
| python | 246 | 49,540 | 97 | 937 | 1.89% |
| json | 16 | 10,235 | 13 | 402 | 3.93% |
| markdown | 44 | 2,354 | 9 | 162 | 6.88% |
| yaml | 14 | 2,398 | 8 | 94 | 3.92% |
| tsx | 16 | 3,104 | 4 | 60 | 1.93% |
| markup | 3 | 110 | 2 | 44 | 40% |
| c | 2 | 1,108 | 0 | 0 | 0% |
| javascript | 2 | 379 | 0 | 0 | 0% |
| txt | 1 | 79 | 0 | 0 | 0% |
Trending appearances
| Day | Rank | Stars | Files | Lines | Clones | All files | Code | Health | Commit |
|---|---|---|---|---|---|---|---|---|---|
| Nov 23, 2026 | #9 | 15,444 (+701) | 405 | 185,811 | 13,005 | 51.04% | 1.55% | E 14.5 | ec3e071 |
| Nov 22, 2026 | #9 | 14,577 (+779) | 398 | 177,095 | 12,245 | 50.62% | 1.55% | E 14.7 | e59c67a |
| Nov 21, 2026 | #9 | 13,871 (+1,082) | 398 | 177,017 | 12,245 | 50.64% | 1.55% | E 14.7 | aa5b375 |
| Nov 20, 2026 | #9 | 12,972 (+341) | 393 | 144,762 | 7,891 | 40.92% | 1.55% | E 16.9 | 0c56e25 |
Want this for your own project? Install jscpd and run jscpd ., or measure it the way the baselines were measured.