mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-09 01:36:45 +08:00
Merge pull request #373 from jtcymc/v2
This commit is contained in:
@@ -99,6 +99,10 @@ function episodeGroupItemProps(item: { title: string; subtitle: string }) {
|
|||||||
|
|
||||||
// 查询所有剧集组
|
// 查询所有剧集组
|
||||||
async function getEpisodeGroups() {
|
async function getEpisodeGroups() {
|
||||||
|
if (!subscribeForm.value.tmdbid) {
|
||||||
|
console.warn('tmdbid is not set or is empty')
|
||||||
|
return
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
episodeGroups.value = await api.get(`media/groups/${subscribeForm.value.tmdbid}`)
|
episodeGroups.value = await api.get(`media/groups/${subscribeForm.value.tmdbid}`)
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
@@ -81,6 +81,10 @@ function getMediaId() {
|
|||||||
|
|
||||||
// 查询所有剧集组
|
// 查询所有剧集组
|
||||||
async function getEpisodeGroups() {
|
async function getEpisodeGroups() {
|
||||||
|
if (!props.media?.tmdb_id) {
|
||||||
|
console.warn('tmdbid is not set or is empty')
|
||||||
|
return
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
episodeGroups.value = await api.get(`media/groups/${props.media?.tmdb_id}`)
|
episodeGroups.value = await api.get(`media/groups/${props.media?.tmdb_id}`)
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user