Guest User

Untitled

a guest
May 26th, 2025
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.97 KB | None | 0 0
  1. ---
  2. id: ygg-api
  3. name: Ygg API
  4. description: Indexeur non officiel pour ygg.re MOVIES / TV
  5. language: fr-FR
  6. type: private
  7. encoding: UTF-8
  8. testlinktorrent: false
  9. links:
  10. - https://yggapi.eu/
  11.  
  12. caps:
  13. categorymappings:
  14. - {id: 2178, cat: Movies/Other, desc: "Films d’animation"}
  15. - {id: 2179, cat: TV/Anime, desc: "Séries d’animation / Mangas"}
  16. - {id: 2183, cat: Movies, desc: "Films"}
  17. - {id: 2184, cat: TV, desc: "Séries"}
  18.  
  19. modes:
  20. search: [q]
  21. tv-search: [q, season, ep]
  22. movie-search: [q, year]
  23. allowrawsearch: true
  24.  
  25. settings:
  26. - name: passkey
  27. type: password
  28. label: Passkey
  29. - name: info_key
  30. type: info
  31. label: About your passkey
  32. default: "You will find your passkey on the <a href=\"https://www.ygg.re/user/account\" target=\"_blank\">YGG</a> account page."
  33. - name: sort
  34. type: select
  35. label: Sort requested from site
  36. default: uploaded_at
  37. options:
  38. uploaded_at: publish_date
  39. seeders: seeders
  40. downloads: downloads
  41. - name: multilang
  42. type: checkbox
  43. label: Replace MULTi by another language in release name
  44. default: false
  45. - name: multilanguage
  46. type: select
  47. label: Replace MULTi by this language
  48. default: FRENCH
  49. options:
  50. FRENCH: FRENCH
  51. MULTi.FRENCH: MULTi.FRENCH
  52. ENGLISH: ENGLISH
  53. MULTi.ENGLISH: MULTi.ENGLISH
  54. VOSTFR: VOSTFR
  55. MULTi.VOSTFR: MULTi.VOSTFR
  56. - name: info_downloads
  57. type: info
  58. label: About missing Downloads
  59. default: "If the torrent has no seeder and no leecher then the torrent file may be missing and download may fail."
  60.  
  61. search:
  62. paths:
  63. - path: torrents
  64. response:
  65. type: json
  66. inputs:
  67. $raw: "{{ range .Categories }}&category_id={{.}}{{end}}"
  68. q: "{{ .Keywords }}"
  69. page: 1
  70. per_page: 100
  71. order_by: "{{ .Config.sort }}"
  72.  
  73. rows:
  74. selector: $
  75. missingAttributeEqualsNoResults: true
  76.  
  77. fields:
  78. category:
  79. selector: category_id
  80. title_normal:
  81. selector: title
  82. title_multilang:
  83. text: "{{ .Result.title_normal }}"
  84. filters:
  85. - name: re_replace
  86. args: ["(?i)[\\.](MULTI(?!.*(?:FRENCH|ENGLISH|VOSTFR)))[\\.]", ".{{ .Config.multilanguage }}."]
  87. title:
  88. text: "{{ if .Config.multilang }}{{ .Result.title_multilang }}{{ else }}{{ .Result.title_normal }}{{ end }}"
  89. _id:
  90. selector: id
  91. details:
  92. text: "torrent/{{ .Result._id }}"
  93. download:
  94. text: "torrent/{{ .Result._id }}/download?passkey={{ .Config.passkey }}"
  95. year:
  96. selector: title
  97. filters:
  98. - name: regexp
  99. args: (\b(19|20)\d{2}\b)
  100. size:
  101. selector: size
  102. seeders:
  103. selector: seeders
  104. leechers:
  105. selector: leechers
  106. grabs:
  107. selector: downloads
  108. optional: true
  109. default: 0
  110. date:
  111. # unix
  112. selector: uploaded_at
  113. downloadvolumefactor:
  114. text: 1
  115. uploadvolumefactor:
  116. text: 1
  117. # JSON 1.0.0
Add Comment
Please, Sign In to add comment