Skip to content

Commit

Permalink
Merge branch 'preview-features' into preview
Browse files Browse the repository at this point in the history
  • Loading branch information
the1812 committed Jan 18, 2024
2 parents 50b47f7 + cc0bc33 commit 3e4fdda
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
11 changes: 10 additions & 1 deletion registry/lib/components/video/download/inputs/EpisodesPicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
</div>
</div>
<div class="episodes-picker-items">
<div v-if="episodeItems.length === 0" class="episodes-picker-empty">
<VEmpty />
</div>
<div v-for="(item, index) of episodeItems" :key="item.key" class="episodes-picker-item">
<CheckBox
v-model="item.isChecked"
Expand All @@ -54,14 +57,15 @@
</div>
</template>
<script lang="ts">
import { VButton, VIcon, CheckBox } from '@/ui'
import { VButton, VIcon, CheckBox, VEmpty } from '@/ui'
import { EpisodeItem } from './episode-item'
export default Vue.extend({
components: {
VButton,
VIcon,
CheckBox,
VEmpty,
},
props: {
api: {
Expand Down Expand Up @@ -171,5 +175,10 @@ export default Vue.extend({
opacity: 0.5;
}
}
&-empty {
@include h-center();
justify-content: center;
padding: 4px 0;
}
}
</style>
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ export const videoSeasonBatchInput: DownloadVideoInput = {
}
const sections: { episodes: any[] }[] = lodash.get(json, 'data.View.ugc_season.sections', [])
if (sections.length === 0) {
logError('获取视频合集列表失败, 没有找到合集信息.')
return []
}
const totalEpisodesLength = lodash.sumBy(sections, it => it.episodes.length)
Expand Down

0 comments on commit 3e4fdda

Please sign in to comment.