Skip to content

Commit

Permalink
实现浏览正片内容的功能
Browse files Browse the repository at this point in the history
  • Loading branch information
Polaris-cn10086 committed Dec 5, 2023
1 parent ea4b458 commit 0f2cae9
Show file tree
Hide file tree
Showing 12 changed files with 350 additions and 71 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ public class UploadVideoHeartbeatRequest

public string Bvid { get; set; }

public long? Epid { get; set; }

public long? Sid { get; set; }

/// <summary>
/// 当前用户UID
/// </summary>
Expand Down Expand Up @@ -49,6 +53,11 @@ public class UploadVideoHeartbeatRequest
/// </summary>
public int Type { get; set; } = 3;

/// <summary>
/// 剧集副类型
/// </summary>
public int? Sub_type { get; set; }

/// <summary>
/// 2
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
using static System.Collections.Specialized.BitVector32;
using System.Collections.Generic;
using System.Diagnostics;
using System.Xml.Linq;

namespace Ray.BiliBiliTool.Agent.BiliBiliAgent.Dtos.Video;

public class GetBangumiBySsidResponse
{
public int Code { get; set; } = int.MinValue;

public string Message { get; set; }

public Result Result { get; set; }
}

public class Result
{
public List<Episode> episodes { get; set; }
}


public class Episode
{
public int aid { get; set; }

public string bvid { get; set; }

public int cid { get; set; }

public int duration { get; set; }

public int ep_id { get; set; }

public int id { get; set; }

public string long_title { get; set; }

public string share_copy { get; set; }

public int status { get; set; }



}
11 changes: 10 additions & 1 deletion src/Ray.BiliBiliTool.Agent/BiliBiliAgent/Interfaces/IVideoApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,16 @@ public interface IVideoApi : IBiliBiliApi
//[HttpGet("/x/space/wbi/arc/search?mid={upId}&ps={pageSize}&tid=0&pn={pageNumber}&keyword={keyword}&order=pubdate&platform=web&web_location=1550101&order_avoided=true&w_rid=5df06b1c48e2be86a96e9d0f99bf06f4&wts=1684854929")]
[HttpGet("/x/space/wbi/arc/search")]
Task<BiliApiResponse<SearchUpVideosResponse>> SearchVideosByUpId([PathQuery] SearchVideosByUpIdFullDto request);


/// <summary>
/// 通过ssid获取番剧的具体信息
/// </summary>
/// <param name="Ssid"></param>
/// <returns></returns>
[HttpGet("/pgc/view/web/season?season_id={ssid}")]
Task<GetBangumiBySsidResponse> GetBangumiBySsid(long ssid);


}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using System.ComponentModel;
using System.Text;
using System.Threading.Tasks;
using Ray.BiliBiliTool.DomainService.Dtos;

namespace Ray.BiliBiliTool.Application.Contracts
{
Expand All @@ -14,5 +15,8 @@ namespace Ray.BiliBiliTool.Application.Contracts
public interface IVipBigPointAppService : IAppService
{
Task VipExpress();
Task<bool> WatchBangumi();
}


}
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,8 @@
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="6.0.1" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Ray.BiliBiliTool.DomainService\Ray.BiliBiliTool.DomainService.csproj" />
</ItemGroup>

</Project>
Loading

0 comments on commit 0f2cae9

Please sign in to comment.