-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from cxfksword/youku
Optimize youku search api
- Loading branch information
Showing
6 changed files
with
95 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
Jellyfin.Plugin.Danmu/Scrapers/Youku/Entity/YoukuSearchResult.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Text.Json.Serialization; | ||
using System.Threading.Tasks; | ||
|
||
namespace Jellyfin.Plugin.Danmu.Scrapers.Youku.Entity | ||
{ | ||
public class YoukuSearchResult | ||
{ | ||
[JsonPropertyName("pageComponentList")] | ||
public List<YoukuSearchComponent> PageComponentList { get; set; } | ||
} | ||
|
||
public class YoukuSearchComponent | ||
{ | ||
[JsonPropertyName("commonData")] | ||
public YoukuSearchComponentData CommonData { get; set; } | ||
} | ||
|
||
public class YoukuSearchComponentData | ||
{ | ||
[JsonPropertyName("showId")] | ||
public string ShowId { get; set; } | ||
|
||
[JsonPropertyName("episodeTotal")] | ||
public int EpisodeTotal { get; set; } | ||
|
||
[JsonPropertyName("feature")] | ||
public string Feature { get; set; } | ||
|
||
[JsonPropertyName("isYouku")] | ||
public int IsYouku { get; set; } | ||
|
||
[JsonPropertyName("hasYouku")] | ||
public int HasYouku { get; set; } | ||
|
||
[JsonPropertyName("ugcSupply")] | ||
public int UgcSupply { get; set; } | ||
|
||
[JsonPropertyName("titleDTO")] | ||
public YoukuSearchTitle TitleDTO { get; set; } | ||
} | ||
|
||
public class YoukuSearchTitle | ||
{ | ||
[JsonPropertyName("displayName")] | ||
public string DisplayName { get; set; } | ||
} | ||
} |
31 changes: 0 additions & 31 deletions
31
Jellyfin.Plugin.Danmu/Scrapers/Youku/Entity/YoukuTrackInfo.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters