Skip to content

Commit

Permalink
SelectorMediaSourceEngine.selectMedia: ID 包含线路名称, 避免排除不同线路的相同名称剧集
Browse files Browse the repository at this point in the history
  • Loading branch information
Him188 committed Sep 27, 2024
1 parent 9ee4171 commit 2f7ac9c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ abstract class SelectorMediaSourceEngine {
val subtitleLanguages = guessSubtitleLanguages(info, parser)
info.episodeSort ?: return@mapNotNull null
DefaultMedia(
mediaId = "$mediaSourceId.${subjectName}-${info.name}-${info.episodeSort}",
mediaId = "$mediaSourceId.${subjectName}-${info.channel}-${info.name}-${info.episodeSort}",
mediaSourceId = mediaSourceId,
originalUrl = info.playUrl,
download = ResourceLocation.WebVideo(info.playUrl),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class WebSearchChannelInfo(

data class WebSearchEpisodeInfo(
/**
* 播放线路
* 播放线路, 与 [name] 一起组成 ID. 如要修改, 考虑 [SelectorMediaSourceEngine.selectMedia]
*/
val channel: String?,
/**
Expand Down

0 comments on commit 2f7ac9c

Please sign in to comment.