media_info.go 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. package subtitle_best_api
  2. /*
  3. {
  4. "id": "tt7278862",
  5. "source": "imdb",
  6. "video_type": "series"
  7. }
  8. {
  9. "id": "503235",
  10. "source": "tmdb",
  11. "video_type": "movie"
  12. }
  13. */
  14. type MediaInfoReq struct {
  15. Id string `json:"id"`
  16. Source string `json:"source"` // options=imdb|tmdb
  17. VideoType string `json:"video_type"` // ,options=movie|series
  18. }
  19. /*
  20. {
  21. "status": 1,
  22. "message": "",
  23. "tmdb_id": "503235",
  24. "original_title": "邪不压正",
  25. "original_language": "zh",
  26. "title_en": "Hidden Man",
  27. "title_cn": "邪不压正",
  28. "year": "2018-07-13"
  29. }
  30. {
  31. "status": 1,
  32. "message": "",
  33. "tmdb_id": "78154",
  34. "original_title": "L'amica geniale",
  35. "original_language": "it",
  36. "title_en": "My Brilliant Friend",
  37. "title_cn": "我的天才女友",
  38. "year": "2018-11-18"
  39. }
  40. */
  41. type MediaInfoReply struct {
  42. Status int `json:"status"` // 0 失败,1 成功,2 在队列中等待查询
  43. Message string `json:"message"`
  44. TMDBId string `json:"tmdb_id,omitempty"`
  45. OriginalTitle string `json:"original_title,omitempty"`
  46. OriginalLanguage string `json:"original_language,omitempty"`
  47. TitleEN string `json:"title_en,omitempty"`
  48. TitleCN string `json:"title_cn,omitempty"`
  49. Year string `json:"year,omitempty"`
  50. }
  51. type IdConvertReq struct {
  52. Id string `json:"id"`
  53. Source string `json:"source"` // options=imdb|tmdb
  54. VideoType string `json:"video_type"` // ,options=movie|series
  55. }
  56. type IdConvertReply struct {
  57. Status int `json:"status"` // 0 失败,1 成功
  58. Message string `json:"message"`
  59. IMDBId string `json:"imdb_id,omitempty"`
  60. TVDBId string `json:"tvdb_id,omitempty"`
  61. }
  62. type FeedReq struct {
  63. Id string `json:"id"` // 当前用户的id,这个需要在用户缓存中随机生成
  64. Version string `json:"version"` // 当前版本号
  65. MediaServer string `json:"media_server"` // 媒体服务的名称,没有使用则是 None
  66. EnableShare bool `json:"enable_share"` // 是否开启了共享功能
  67. EnableApiKey bool `json:"enable_api_key"` // 是否开启本地 http api 功能
  68. }
  69. type FeedReply struct {
  70. Status int `json:"status"` // 0 失败,1 成功
  71. Message string `json:"message"`
  72. }