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.79k stars 276 forks source link

Impossible to add a specific show #4742

Closed metabaron closed 5 years ago

metabaron commented 6 years ago

Describe the bug Trying to add a new show "Project Blue Book" and it's not working at all with the errors you can read in the log file. And Yes, I tried to add another show after and it's working perfectly

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Shows > Add shows'
  2. Click on 'Add new show'
  3. Find the show 'Project Blue Book'
  4. Add from any of the two indexers
  5. See error

Expected behavior Show added to the list.

Medusa (please complete the following information):

Medusa Info: Branch: master Commit: e7c4ff3bc9a48b47c932b0e40a539d62e3a62f64 Version: v0.2.6 Database: 44.11
Python Version: 2.7.14 (default, May 28 2018, 14:47:09) [GCC 4.3.2]
SSL Version: OpenSSL 1.0.2n 7 Dec 2017
OS: Linux-2.6.32.12-ppc-with-glibc2.0 (Synology up to date)
Locale: Unknown.Unknown

Logs:

``` 2018-07-24 12:28:12 WARNING SHOWQUEUE-ADD :: [e7c4ff3] 350401: Error while loading information from indexer TVDBv2. Error: Show episode search exception, could not get any episodes. Did a full search. Exception: HTTPError 404 Client Error: Not Found for url: https://api.thetvdb.com/series/350401/episodes/query?page=1 2018-07-24 12:28:12 DEBUG SHOWQUEUE-ADD :: [e7c4ff3] Error trying to index the episodes 2018-07-24 12:28:12 DEBUG SHOWQUEUE-ADD :: [e7c4ff3] User-Agent: Medusa/0.2.6 (Linux; 2.6.32.12; 589e5778-8b1c-11e8-8a92-0011321fbe6c) 2018-07-24 12:28:12 DEBUG SHOWQUEUE-ADD :: [e7c4ff3] GET URL: https://api.thetvdb.com/series/350401/episodes/query?page=1 [Status: 404] 2018-07-24 12:28:12 DEBUG SHOWQUEUE-ADD :: [e7c4ff3] Getting all episodes of 350401 2018-07-24 12:28:12 DEBUG SHOWQUEUE-ADD :: [e7c4ff3] User-Agent: Medusa/0.2.6 (Linux; 2.6.32.12; 589e5778-8b1c-11e8-8a92-0011321fbe6c) 2018-07-24 12:28:12 DEBUG SHOWQUEUE-ADD :: [e7c4ff3] GET URL: https://api.thetvdb.com/series/350401 [Status: 200] 2018-07-24 12:28:12 DEBUG SHOWQUEUE-ADD :: [e7c4ff3] Getting all show data for 350401 2018-07-24 12:28:12 DEBUG SHOWQUEUE-ADD :: [e7c4ff3] Getting all series data for 350401 2018-07-24 12:28:12 DEBUG SHOWQUEUE-ADD :: [e7c4ff3] Configured language en override show language of en 2018-07-24 12:28:12 INFO SHOWQUEUE-ADD :: [e7c4ff3] TVDBv2: {u'session': , u'cache': u'/volume1/@appstore/sickbeard-custom/var/cache/indexers/TVDBv2', u'language': u'en', u'use_zip': True} 2018-07-24 12:28:12 INFO SHOWQUEUE-ADD :: [e7c4ff3] Starting to add show by ShowDir: /volume1/video/tv/Project Blue Book 2018-07-24 12:27:52 DEBUG TORNADO :: [e7c4ff3] Using custom UI 2018-07-24 12:27:51 DEBUG TORNADO :: [e7c4ff3] Searching for show: project blue book 2018-07-24 12:27:51 DEBUG TORNADO :: [e7c4ff3] Searching for show with search term(s): [u'Project Blue Book'] on indexer: tmdb 2018-07-24 12:27:50 DEBUG TORNADO :: [e7c4ff3] Using custom UI 2018-07-24 12:27:50 DEBUG TORNADO :: [e7c4ff3] User-Agent: Medusa/0.2.6 (Linux; 2.6.32.12; 589e5778-8b1c-11e8-8a92-0011321fbe6c) 2018-07-24 12:27:50 DEBUG TORNADO :: [e7c4ff3] GET URL: http://api.tvmaze.com/search/shows?q=project%20blue%20book [Status: 200] 2018-07-24 12:27:50 DEBUG TORNADO :: [e7c4ff3] Searching for show project blue book 2018-07-24 12:27:50 DEBUG TORNADO :: [e7c4ff3] Searching for show with search term(s): [u'Project Blue Book'] on indexer: tvmaze 2018-07-24 12:27:50 DEBUG TORNADO :: [e7c4ff3] Using custom UI 2018-07-24 12:27:50 DEBUG TORNADO :: [e7c4ff3] User-Agent: Medusa/0.2.6 (Linux; 2.6.32.12; 589e5778-8b1c-11e8-8a92-0011321fbe6c) 2018-07-24 12:27:50 DEBUG TORNADO :: [e7c4ff3] GET URL: https://api.thetvdb.com/search/series?name=project+blue+book [Status: 200] 2018-07-24 12:27:50 DEBUG TORNADO :: [e7c4ff3] Searching for show: project blue book 2018-07-24 12:27:50 DEBUG TORNADO :: [e7c4ff3] Searching for show with search term(s): [u'Project Blue Book'] on indexer: tvdb 2018-07-24 12:27:43 DEBUG TORNADO :: [e7c4ff3] Cannot load the KODI metadata file from /volume1/video/tv/Miracle Workers (2018)/tvshow.nfo, it does not exist 2018-07-24 12:27:43 DEBUG TORNADO :: [e7c4ff3] Cannot load the KODI 12+ metadata file from /volume1/video/tv/Miracle Workers (2018)/tvshow.nfo, it does not exist 2018-07-24 12:27:43 DEBUG TORNADO :: [e7c4ff3] Cannot load the KODI metadata file from /volume1/video/tv/Project Blue Book/tvshow.nfo, it does not exist 2018-07-24 12:27:43 DEBUG TORNADO :: [e7c4ff3] Cannot load the KODI 12+ metadata file from /volume1/video/tv/Project Blue Book/tvshow.nfo, it does not exist ```
sharkykh commented 6 years ago

That show has no episodes and no seasons. Possibly related. https://www.thetvdb.com/series/project-blue-book

GET https://api.thetvdb.com/series/350401/episodes/query?page=1 HTTP/1.1
Content-Type: application/json
Authorization: Bearer {{token}}

HTTP/1.1 404 Not Found
Date: Tue, 24 Jul 2018 07:04:15 GMT
Content-Type: application/json; charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
Cache-Control: private, max-age=600
Vary: Accept-Language
X-Powered-By: Thundar!
X-Thetvdb-Api-Version: 2.2.0
Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
Server: cloudflare
CF-RAY: 43f48816dfa4ada5-TLV
Content-Encoding: gzip

{
  "Error": "No results for your query: map[tve.seriesId:350401]"
}
metabaron commented 6 years ago

Yes I was wondering too but I can't remember having that problem with not yet announced shows. Do you have the name of a coming show I could try to reproduce the bug with or how to search for such show?

Thank you

sharkykh commented 6 years ago

Do you have the name of a coming show I could try to reproduce the bug with or how to search for such show?

Nope, sorry.

metabaron commented 6 years ago

Ok, anyone who could try to add that show and tell me if the behavior is the same. Should we have no episodes and no seasons and should people have the same behavior like me, I would expect Medusa to retry later on and not "silently" fail correct?

sharkykh commented 6 years ago

I would expect Medusa to retry later on and not "silently" fail correct?

Sorry if I wasn't clear, it's probably a bug we need to fix.

sharkykh commented 6 years ago

And yes, I can confirm this show can't be added. It's listed on TVDB and TVmaze, and both fail with errors. I would assume TMDB will have the same issue (but I have no show to test this with).

metabaron commented 6 years ago

Ok, glad I was able to "contribute" and sorry for the extra work.