Skip to content

章节 API /v0/episodes 倒逆获取集数 #257

Open

Description

@JasonKhew96

希望添加一个 reverse 参数
比如 1000 集里只拿最后 n 集

Activity

  1. changed the title [-]章节 API /v0/episodes 倒逆获取集数[/-] [+]章节 API `/v0/episodes` 倒逆获取集数[/+] on Sep 6, 2025
  2. trim21 commented on Sep 6, 2025

    @trim21
    Contributor

    我记得现在的offset可以传负数?

  3. trim21 commented on Sep 6, 2025

    @trim21
    Contributor

    那确实不能(

    后面想办法支持吧

  4. lijrjyan commented on Nov 28, 2025

    @lijrjyan

    GET /v0/episodes?subject_id=123&limit=10&reverse=1,大致效果是这样然后返回就是最后 10 集,按从大到小(最新到最旧)排序吗?看了一下好多handler都用了offset,要写能传负数offset的话,感觉也是要给episodes写特判,确实直接写reverse参数可能好一些?

  5. trim21 commented on Nov 30, 2025

    @trim21
    Contributor

    应该实现成类似Python list那样的语法,负的话就是最后几个章节

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions