pstream is dead; long live pstream taciturnaxolotl.github.io/pstream-ng/
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

hide auto subtitle option if there are no subs

Pas afebab30 cb504ccf

+17 -15
+17 -15
src/components/player/atoms/settings/CaptionsView.tsx
··· 533 533 {t("player.menus.subtitles.offChoice")} 534 534 </CaptionOption> 535 535 536 - {/* Enable subtitles option */} 537 - <CaptionOption 538 - onClick={() => handleRandomSelect()} 539 - selected={!!selectedCaptionId} 540 - loading={isRandomSelecting} 541 - > 542 - <div className="flex flex-col"> 543 - {t("player.menus.subtitles.autoSelectChoice")} 544 - {selectedCaptionId && ( 545 - <span className="text-video-context-type-secondary text-xs"> 546 - {t("player.menus.subtitles.autoSelectDifferentChoice")} 547 - </span> 548 - )} 549 - </div> 550 - </CaptionOption> 536 + {/* Automatically select subtitles option */} 537 + {captions.length > 0 && ( 538 + <CaptionOption 539 + onClick={() => handleRandomSelect()} 540 + selected={!!selectedCaptionId} 541 + loading={isRandomSelecting} 542 + > 543 + <div className="flex flex-col"> 544 + {t("player.menus.subtitles.autoSelectChoice")} 545 + {selectedCaptionId && ( 546 + <span className="text-video-context-type-secondary text-xs"> 547 + {t("player.menus.subtitles.autoSelectDifferentChoice")} 548 + </span> 549 + )} 550 + </div> 551 + </CaptionOption> 552 + )} 551 553 552 554 {/* Custom upload option */} 553 555 <CustomCaptionOption />