pymedusa / Medusa

Automatic Video Library Manager for TV Shows. It watches for new episodes of your favorite shows, and when they are posted it does its magic.
https://pymedusa.com
GNU General Public License v3.0
1.78k stars 276 forks source link

Searching do not perform correctly #11732

Open Urkov opened 3 months ago

Urkov commented 3 months ago

Describe the bug When searching episodes through jackett does not get results but then in jacket I get results in manual searching. I try with several tvshows and it occurs the same in all of them.

To Reproduce Steps to reproduce the behavior:

  1. Add Jackett and inside jackett DonTorrent
  2. Add The Acolyte in Spanish on Medusa
  3. Click on 'search' episode 1
  4. There is no results back

Expected behavior 1 result return

Medusa (please complete the following information):

Debug logs:

2024-06-08 12:53:46 DEBUG   FORCEDSEARCHQUEUE-MANUAL-393197 :: DonTorrent :: [34a67cf] Found 0 unique search results
2024-06-08 12:53:46 DEBUG   FORCEDSEARCHQUEUE-MANUAL-393197 :: DonTorrent :: [34a67cf] Could not find all candidates in cache, searching provider.
2024-06-08 12:53:46 INFO    FORCEDSEARCHQUEUE-MANUAL-393197 :: DonTorrent :: [34a67cf] Performing season pack search for Star Wars: The Acolyte
2024-06-08 12:53:46 DEBUG   FORCEDSEARCHQUEUE-MANUAL-393197 :: DonTorrent :: [34a67cf] Fallback season pack search initiated
2024-06-08 12:53:46 DEBUG   FORCEDSEARCHQUEUE-MANUAL-393197 :: DonTorrent :: [34a67cf] Found 0 unique search results
2024-06-08 12:53:46 DEBUG   FORCEDSEARCHQUEUE-MANUAL-393197 :: DonTorrent :: [34a67cf] No results returned from provider. Check chosen Torznab search categories in provider settings.
2024-06-08 12:53:46 DEBUG   FORCEDSEARCHQUEUE-MANUAL-393197 :: DonTorrent :: [34a67cf] User-Agent: Medusa/1.0.21 (Linux; 6.1.21-v8+; aa29256c-2322-11ef-954c-dca6329f2697)
2024-06-08 12:53:46 DEBUG   FORCEDSEARCHQUEUE-MANUAL-393197 :: DonTorrent :: [34a67cf] GET URL: **********api?apikey=**********&t=search&limit=100&offset=0&cat=5040%2C5030%2C5000%2C123875%2C152610&q=Star+Wars+The+Acolyte+S01E01 [Status: 200]
2024-06-08 12:53:43 DEBUG   FORCEDSEARCHQUEUE-MANUAL-393197 :: DonTorrent :: [34a67cf] Search show using search string: Star Wars The Acolyte S01E01
2024-06-08 12:53:43 DEBUG   FORCEDSEARCHQUEUE-MANUAL-393197 :: DonTorrent :: [34a67cf] No results returned from provider. Check chosen Torznab search categories in provider settings.
2024-06-08 12:53:43 DEBUG   FORCEDSEARCHQUEUE-MANUAL-393197 :: DonTorrent :: [34a67cf] User-Agent: Medusa/1.0.21 (Linux; 6.1.21-v8+; aa29256c-2322-11ef-954c-dca6329f2697)
2024-06-08 12:53:43 DEBUG   FORCEDSEARCHQUEUE-MANUAL-393197 :: DonTorrent :: [34a67cf] GET URL: **********api?apikey=**********&t=search&limit=100&offset=0&cat=5040%2C5030%2C5000%2C123875%2C152610&q=The+Acolyte+S01E01 [Status: 200]
2024-06-08 12:53:41 DEBUG   FORCEDSEARCHQUEUE-MANUAL-393197 :: DonTorrent :: [34a67cf] Search show using search string: The Acolyte S01E01
2024-06-08 12:53:41 DEBUG   FORCEDSEARCHQUEUE-MANUAL-393197 :: DonTorrent :: [34a67cf] No results returned from provider. Check chosen Torznab search categories in provider settings.
2024-06-08 12:53:41 DEBUG   FORCEDSEARCHQUEUE-MANUAL-393197 :: DonTorrent :: [34a67cf] User-Agent: Medusa/1.0.21 (Linux; 6.1.21-v8+; aa29256c-2322-11ef-954c-dca6329f2697)
2024-06-08 12:53:41 DEBUG   FORCEDSEARCHQUEUE-MANUAL-393197 :: DonTorrent :: [34a67cf] GET URL: **********api?apikey=**********&t=search&limit=100&offset=0&cat=5040%2C5030%2C5000%2C123875%2C152610&q=Star+Wars%3A+The+Acolyte+S01E01 [Status: 200]
2024-06-08 12:53:41 DEBUG   FORCEDSEARCHQUEUE-MANUAL-393197 :: DonTorrent :: [34a67cf] Search show using search string: Star Wars: The Acolyte S01E01
2024-06-08 12:53:41 DEBUG   FORCEDSEARCHQUEUE-MANUAL-393197 :: DonTorrent :: [34a67cf] Search mode: Episode
2024-06-08 12:53:41 DEBUG   FORCEDSEARCHQUEUE-MANUAL-393197 :: DonTorrent :: [34a67cf] Could not find all candidates in cache, searching provider.
2024-06-08 12:53:41 INFO    FORCEDSEARCHQUEUE-MANUAL-393197 :: DonTorrent :: [34a67cf] Performing episode search for Star Wars: The Acolyte
2024-06-08 12:53:41 INFO    FORCEDSEARCHQUEUE-MANUAL-393197 :: [34a67cf] Using manual search providers
2024-06-08 12:53:41 DEBUG   FORCEDSEARCHQUEUE-MANUAL-393197 :: [34a67cf] Internal name cache for star wars the acolyte set to: star wars the acolyte, the acolyte
2024-06-08 12:53:41 INFO    FORCEDSEARCHQUEUE-MANUAL-393197 :: [34a67cf] Building internal name cache for Star Wars: The Acolyte
2024-06-08 12:53:41 INFO    FORCEDSEARCHQUEUE-MANUAL-393197 :: [34a67cf] Finished processing 4808 scene exceptions.
2024-06-08 12:53:41 INFO    FORCEDSEARCHQUEUE-MANUAL-393197 :: [34a67cf] Updating exception_cache and exception_season_cache
2024-06-08 12:53:41 INFO    FORCEDSEARCHQUEUE-MANUAL-393197 :: [34a67cf] Beginning manual search for: Star Wars The Acolyte - S01E01 - Perdido - Encontrado
2024-06-08 12:53:41 DEBUG   FORCEDSEARCHQUEUE-MANUAL-393197 :: [34a67cf] 393197: Formatting pattern: %SN - S%0SE01 - %EN -> Star Wars The Acolyte - S01E01 - Perdido - Encontrado

Additional context In the log I see that is calling to URL: **api?apikey=**&t=search&limit=100&offset=0&cat=5040%2C5030%2C5000%2C123875%2C152610&q=Star+Wars+The+Acolyte+S01E01 If I call to the same URL in my web explorer-->http://*.*.*.*:*****/api/v2.0/indexers/dontorrent/results/torznab/api?apikey=********************&t=search&limit=100&offset=0&cat=5040%2C5030%2C5000%2C123875%2C152610&q=Star+Wars+The+Acolyte I get this result: ** is to hide info only.

<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:torznab="http://torznab.com/schemas/2015/feed">
  <channel>
    <atom:link href="http://***************/" rel="self" type="application/rss+xml" />
    <title>DonTorrent</title>
    <description>DonTorrent is a SPANISH public tracker for MOVIES / TV / GENERAL</description>
    <link>https://dontorrent.sbs/</link>
    <language>en-US</language>
    <category>search</category>
    <item>
      <title>Star Wars The Acolyte S01E01 SPANISH SDTV x264</title>
      <guid>https://dontorrent.sbs/torrents/series/star-wars-the-acolyte--HDTV-temp-1-x-cap-1_28_12561.torrent</guid>
      <jackettindexer id="dontorrent">DonTorrent</jackettindexer>
      <type>public</type>
      <comments>https://dontorrent.sbs/serie/108888/108889/Star-Wars-The-Acolyte-1-Temporada</comments>
      <pubDate>Fri, 07 Jun 2024 00:00:00 +0200</pubDate>
      <size>536870912</size>
      <description />
      <link>http://***********:******/dl/dontorrent/?jackett_apikey=*********************&amp;path=****************&amp;file=Star+Wars+The+Acolyte+S01E01+SPANISH+SDTV+x264</link>
      <category>5030</category>
      <category>152610</category>
      <enclosure url="http://*************:**************/dl/dontorrent/?jackett_apikey=*******************&amp;path=************************&amp;file=Star+Wars+The+Acolyte+S01E01+SPANISH+SDTV+x264" length="536870912" type="application/x-bittorrent" />
      <torznab:attr name="category" value="5030" />
      <torznab:attr name="category" value="152610" />
      <torznab:attr name="genre" value="" />
      <torznab:attr name="seeders" value="1" />
      <torznab:attr name="peers" value="2" />
      <torznab:attr name="downloadvolumefactor" value="0" />
      <torznab:attr name="uploadvolumefactor" value="1" />
    </item>
    <item>
      <title>Star Wars The Acolyte S01E01 SPANISH 720p x264</title>
      <guid>https://dontorrent.sbs/torrents/series/star-wars-the-acolyte--HDTV-720p-AC3-5-1-temp-1-x-cap-1_22_12560.torrent</guid>
      <jackettindexer id="dontorrent">DonTorrent</jackettindexer>
      <type>public</type>
      <comments>https://dontorrent.sbs/serie/108887/108890/Star-Wars-The-Acolyte-1-Temporada-720p</comments>
      <pubDate>Fri, 07 Jun 2024 00:00:00 +0200</pubDate>
      <size>1073741824</size>
      <description />
      <link>http://*************:*****/dl/dontorrent/?jackett_apikey=************************&amp;path=******************&amp;file=Star+Wars+The+Acolyte+S01E01+SPANISH+720p+x264</link>
      <category>5040</category>
      <category>123875</category>
      <enclosure url="http://**************:**********/dl/dontorrent/?jackett_apikey=********************&amp;path=***********************************&amp;file=Star+Wars+The+Acolyte+S01E01+SPANISH+720p+x264" length="1073741824" type="application/x-bittorrent" />
      <torznab:attr name="category" value="5040" />
      <torznab:attr name="category" value="123875" />
      <torznab:attr name="genre" value="" />
      <torznab:attr name="seeders" value="1" />
      <torznab:attr name="peers" value="2" />
      <torznab:attr name="downloadvolumefactor" value="0" />
      <torznab:attr name="uploadvolumefactor" value="1" />
    </item>
  </channel>
</rss>
p0psicles commented 3 months ago

did you configured the categories?