Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #586 (Load the latest animations) #594

Closed
wants to merge 4 commits into from
Closed

Conversation

yusuaois
Copy link

@yusuaois yusuaois commented Jan 12, 2025

首次进入应用时加载最近更新列表,滑动滚动条至最下后才触发随机显示番剧。

@Predidit
Copy link
Owner

这个实现和时间表重复

并且 air_date 应该是番剧第一集更新时间而不是最近更新时间,这个 PR 不会按照预期的那样工作

@yusuaois
Copy link
Author

yusuaois commented Jan 12, 2025

确实

  1. 我个人认为在初次推荐时直接显示最近三天的番剧是一个比较方便的功能 :D

  2. 关于实现一样是因为我认为获取Calendar的这个代码能够直接拿来用就没改,不过确实能减少相同功能的冗余代码。

  3. 因为在获取Calendar时,得到的List已经是排序好的,所以可以使用映射来确定当前weekday前三天的番剧,并按weekday将List倒序插入,这样就能够顺序插入三天内的番剧。

  4. 能保证在初次启动时显示最近三天的番剧,并且滚动至下方时随机刷新番剧。

  5. 但是这样的话不能确定当前番剧的集数是否为0,在新番第一集更新当天可能会出现点进去但是还未更新的情况。

@Predidit
Copy link
Owner

这个功能是不可靠的,我们的视频源的更新相较于时间表的更新有延时。

推荐的资源大概率还没更新,这样体验不好。

@yusuaois yusuaois closed this Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants