Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Guessit support for format ShowName.Part.Ep #3753

Closed
p0psicles opened this issue Feb 11, 2018 · 2 comments
Closed

[Feature Request] Guessit support for format ShowName.Part.Ep #3753

p0psicles opened this issue Feb 11, 2018 · 2 comments

Comments

@p0psicles
Copy link
Contributor

p0psicles commented Feb 11, 2018

I'm creating this issue to collect a number of shows that are having issues parsing through Guessit.
I think that while they often do not follow the rules of S0xE0x they could still be parsed.

The reason this is becoming relevant now, is that medusa is going to support custom search templates.
Meaning that for a show like: Buried: Knights Templar And The Holy Grail (tvdb). It is released using parts. The following search string returns results, but Guessit is not able to parse it as a Series. Buried Knights Templar And The Holy Grail.2018.Part1. In this case 2018 could be resolved back to a season. And part 1 is episode 1 of the season.

@duramato any thoughts?

Other examples:

Series Name Example Result Search template Search String Example provider
Buried: Knights Templar And The Holy Grail Buried.Knights.Templar.and.the.Holy.Grail.2018.Part1.720p.WEB.h264-CookieMonster %SN.%Y.Part%E Buried Knights Templar And The Holy Grail.2018.Part1 TD
Burning Bush Burning.Bush.E01.1080p.BluRay.x264-TAXES %SN.%0E Burning Bush E01
Formula 1 Formula1.2017.Abu.Dhabi.Grand.Prix.UNCUT.1080p.HDTV.x264-GRiP %SN.{EPYEAR}.%E.N Formula1.2017.Abu.Dhabi.Grand.Prix
The Jeremy Kyle Show ? %SN (%d.{full month}%Y) The Jeremy Kyle Show (8 February 2018)

Let's update the table in: #3732

@duramato
Copy link
Contributor

2018 isn't the season, it's part of the title. It doesn't have any season indication, Medusa is able to handle that like when it's show.ep1 and the show only has 1 season in the DB, meaning it becomes S01E01.

@purrloftruth
Copy link

purrloftruth commented Apr 6, 2020

I have an instance of this happening, where Part(N) directly references the season number. The show is otherwise numbered by episode order.

Example:

Terrace House: Tokyo 2019–2020 S03E01's filename is:
Terrace.House-Tokyo.2019-2020.Part3.E25.2019.1080p.NF.WEB-DL.DDP2.0.x264-HoneyG

Because the year of release is also in the filename, this is being parsed as S2019E25 instead of S03E01 (or overall E25 when scene numbering is checked).

When performing a forced manual search, the following occurs:

2020-04-06 18:30:52 DEBUG   FORCEDSEARCHQUEUE-MANUAL-361721 :: BTN :: [4d1e787] 361721: Terrace House: Tokyo 2019–2020 S2019E25 not found in the database
2020-04-06 18:30:52 DEBUG   FORCEDSEARCHQUEUE-MANUAL-361721 :: BTN :: [4d1e787] Found result Terrace.House-Tokyo.2019-2020.Part3.E25.2019.1080p.NF.WEB-DL.DDP2.0.x264-HoneyG at [REMOVED]
Unabridged debug logs from forced manual search

2020-04-06 18:30:55 INFO    FORCEDSEARCHQUEUE-MANUAL-361721 :: [4d1e787] Unable to find manual results for: Terrace House Tokyo 2019–2020 - S03E01 - The Girls Can't Do It
2020-04-06 18:30:55 DEBUG   FORCEDSEARCHQUEUE-MANUAL-361721 :: [4d1e787] 361721: Formatting pattern: %SN - S%0SE01 - %EN -> Terrace House Tokyo 2019–2020 - S03E01 - The Girls Can't Do It
2020-04-06 18:30:55 DEBUG   FORCEDSEARCHQUEUE-MANUAL-361721 :: Nyaa :: [4d1e787] Found 0 unique search results
2020-04-06 18:30:55 DEBUG   FORCEDSEARCHQUEUE-MANUAL-361721 :: Nyaa :: [4d1e787] Could not find any candidates in cache, searching provider.
2020-04-06 18:30:55 INFO    FORCEDSEARCHQUEUE-MANUAL-361721 :: Nyaa :: [4d1e787] Performing season pack search for Terrace House: Tokyo 2019–2020
2020-04-06 18:30:55 DEBUG   FORCEDSEARCHQUEUE-MANUAL-361721 :: Nyaa :: [4d1e787] Fallback season pack search initiated
2020-04-06 18:30:55 DEBUG   FORCEDSEARCHQUEUE-MANUAL-361721 :: Nyaa :: [4d1e787] Found 0 unique search results
2020-04-06 18:30:55 DEBUG   FORCEDSEARCHQUEUE-MANUAL-361721 :: Nyaa :: [4d1e787] Data returned from provider does not contain any confirmed torrents
2020-04-06 18:30:55 DEBUG   FORCEDSEARCHQUEUE-MANUAL-361721 :: Nyaa :: [4d1e787] User-Agent: Medusa/0.3.14 (Linux; 4.14.132-gentoo-whatbox; c215da54-7853-11ea-a6bb-506b4b7057e0)
2020-04-06 18:30:55 DEBUG   FORCEDSEARCHQUEUE-MANUAL-361721 :: Nyaa :: [4d1e787] GET URL: https://nyaa.si/?page=rss&c=4_0&f=2&q=Terrace+House+Tokyo+2019+2020+S03E01 [Status: 200]
2020-04-06 18:30:55 DEBUG   FORCEDSEARCHQUEUE-MANUAL-361721 :: Nyaa :: [4d1e787] Search string: Terrace House Tokyo 2019 2020 S03E01
2020-04-06 18:30:55 DEBUG   FORCEDSEARCHQUEUE-MANUAL-361721 :: Nyaa :: [4d1e787] Data returned from provider does not contain any confirmed torrents
2020-04-06 18:30:55 DEBUG   FORCEDSEARCHQUEUE-MANUAL-361721 :: Nyaa :: [4d1e787] User-Agent: Medusa/0.3.14 (Linux; 4.14.132-gentoo-whatbox; c215da54-7853-11ea-a6bb-506b4b7057e0)
2020-04-06 18:30:55 DEBUG   FORCEDSEARCHQUEUE-MANUAL-361721 :: Nyaa :: [4d1e787] GET URL: https://nyaa.si/?page=rss&c=4_0&f=2&q=Terrace.House-Tokyo.2019-2020.Part2+S03E01 [Status: 200]
2020-04-06 18:30:54 DEBUG   FORCEDSEARCHQUEUE-MANUAL-361721 :: Nyaa :: [4d1e787] Search string: Terrace.House-Tokyo.2019-2020.Part2 S03E01
2020-04-06 18:30:54 DEBUG   FORCEDSEARCHQUEUE-MANUAL-361721 :: Nyaa :: [4d1e787] Data returned from provider does not contain any confirmed torrents
2020-04-06 18:30:54 DEBUG   FORCEDSEARCHQUEUE-MANUAL-361721 :: Nyaa :: [4d1e787] User-Agent: Medusa/0.3.14 (Linux; 4.14.132-gentoo-whatbox; c215da54-7853-11ea-a6bb-506b4b7057e0)
2020-04-06 18:30:54 DEBUG   FORCEDSEARCHQUEUE-MANUAL-361721 :: Nyaa :: [4d1e787] GET URL: https://nyaa.si/?page=rss&c=4_0&f=2&q=Terrace.House-Tokyo.2019-2020.Part4+S03E01 [Status: 200]
2020-04-06 18:30:54 DEBUG   FORCEDSEARCHQUEUE-MANUAL-361721 :: Nyaa :: [4d1e787] Search string: Terrace.House-Tokyo.2019-2020.Part4 S03E01
2020-04-06 18:30:54 DEBUG   FORCEDSEARCHQUEUE-MANUAL-361721 :: Nyaa :: [4d1e787] Data returned from provider does not contain any confirmed torrents
2020-04-06 18:30:54 DEBUG   FORCEDSEARCHQUEUE-MANUAL-361721 :: Nyaa :: [4d1e787] User-Agent: Medusa/0.3.14 (Linux; 4.14.132-gentoo-whatbox; c215da54-7853-11ea-a6bb-506b4b7057e0)
2020-04-06 18:30:54 DEBUG   FORCEDSEARCHQUEUE-MANUAL-361721 :: Nyaa :: [4d1e787] GET URL: https://nyaa.si/?page=rss&c=4_0&f=2&q=Terrace.House-Tokyo.2019-2020+S03E01 [Status: 200]
2020-04-06 18:30:53 DEBUG   FORCEDSEARCHQUEUE-MANUAL-361721 :: Nyaa :: [4d1e787] Search string: Terrace.House-Tokyo.2019-2020 S03E01
2020-04-06 18:30:53 DEBUG   FORCEDSEARCHQUEUE-MANUAL-361721 :: Nyaa :: [4d1e787] Data returned from provider does not contain any confirmed torrents
2020-04-06 18:30:53 DEBUG   FORCEDSEARCHQUEUE-MANUAL-361721 :: Nyaa :: [4d1e787] User-Agent: Medusa/0.3.14 (Linux; 4.14.132-gentoo-whatbox; c215da54-7853-11ea-a6bb-506b4b7057e0)
2020-04-06 18:30:53 DEBUG   FORCEDSEARCHQUEUE-MANUAL-361721 :: Nyaa :: [4d1e787] GET URL: https://nyaa.si/?page=rss&c=4_0&f=2&q=Terrace.House+Tokyo.2019+2020+S03E01 [Status: 200]
2020-04-06 18:30:53 DEBUG   FORCEDSEARCHQUEUE-MANUAL-361721 :: Nyaa :: [4d1e787] Search string: Terrace.House Tokyo.2019 2020 S03E01
2020-04-06 18:30:53 DEBUG   FORCEDSEARCHQUEUE-MANUAL-361721 :: Nyaa :: [4d1e787] Data returned from provider does not contain any confirmed torrents
2020-04-06 18:30:53 DEBUG   FORCEDSEARCHQUEUE-MANUAL-361721 :: Nyaa :: [4d1e787] User-Agent: Medusa/0.3.14 (Linux; 4.14.132-gentoo-whatbox; c215da54-7853-11ea-a6bb-506b4b7057e0)
2020-04-06 18:30:53 DEBUG   FORCEDSEARCHQUEUE-MANUAL-361721 :: Nyaa :: [4d1e787] GET URL: https://nyaa.si/?page=rss&c=4_0&f=2&q=Terrace+House%3A+Tokyo+2019%E2%80%932020+S03E01 [Status: 200]
2020-04-06 18:30:52 DEBUG   FORCEDSEARCHQUEUE-MANUAL-361721 :: Nyaa :: [4d1e787] Search string: Terrace House: Tokyo 2019–2020 S03E01
2020-04-06 18:30:52 DEBUG   FORCEDSEARCHQUEUE-MANUAL-361721 :: Nyaa :: [4d1e787] Data returned from provider does not contain any confirmed torrents
2020-04-06 18:30:52 DEBUG   FORCEDSEARCHQUEUE-MANUAL-361721 :: Nyaa :: [4d1e787] User-Agent: Medusa/0.3.14 (Linux; 4.14.132-gentoo-whatbox; c215da54-7853-11ea-a6bb-506b4b7057e0)
2020-04-06 18:30:52 DEBUG   FORCEDSEARCHQUEUE-MANUAL-361721 :: Nyaa :: [4d1e787] GET URL: https://nyaa.si/?page=rss&c=4_0&f=2&q=Terrace.House-Tokyo.2019-2020.Part3+S03E01 [Status: 200]
2020-04-06 18:30:52 DEBUG   FORCEDSEARCHQUEUE-MANUAL-361721 :: Nyaa :: [4d1e787] Search string: Terrace.House-Tokyo.2019-2020.Part3 S03E01
2020-04-06 18:30:52 DEBUG   FORCEDSEARCHQUEUE-MANUAL-361721 :: Nyaa :: [4d1e787] Searching only confirmed torrents
2020-04-06 18:30:52 DEBUG   FORCEDSEARCHQUEUE-MANUAL-361721 :: Nyaa :: [4d1e787] Search mode: Episode
2020-04-06 18:30:52 DEBUG   FORCEDSEARCHQUEUE-MANUAL-361721 :: Nyaa :: [4d1e787] Could not find any candidates in cache, searching provider.
2020-04-06 18:30:52 INFO    FORCEDSEARCHQUEUE-MANUAL-361721 :: Nyaa :: [4d1e787] Performing episode search for Terrace House: Tokyo 2019–2020
2020-04-06 18:30:52 DEBUG   FORCEDSEARCHQUEUE-MANUAL-361721 :: BTN :: [4d1e787] Transaction with 1 queries executed
2020-04-06 18:30:52 DEBUG   FORCEDSEARCHQUEUE-MANUAL-361721 :: BTN :: [4d1e787] Found single episode result Terrace.House-Tokyo.2019-2020.Part3.E25.2019.1080p.NF.WEB-DL.DDP2.0.x264-HoneyG at [REMOVED]
2020-04-06 18:30:52 DEBUG   FORCEDSEARCHQUEUE-MANUAL-361721 :: BTN :: [4d1e787] 361721: Terrace House: Tokyo 2019–2020 S2019E25 not found in the database
2020-04-06 18:30:52 DEBUG   FORCEDSEARCHQUEUE-MANUAL-361721 :: BTN :: [4d1e787] Found result Terrace.House-Tokyo.2019-2020.Part3.E25.2019.1080p.NF.WEB-DL.DDP2.0.x264-HoneyG at [REMOVED]
2020-04-06 18:30:52 DEBUG   FORCEDSEARCHQUEUE-MANUAL-361721 :: BTN :: [4d1e787] Updating item: Terrace.House-Tokyo.2019-2020.Part3.E25.2019.1080p.NF.WEB-DL.DDP2.0.x264-HoneyG to cache: btn
2020-04-06 18:30:52 DEBUG   FORCEDSEARCHQUEUE-MANUAL-361721 :: BTN :: [4d1e787] Adding item from search to cache: 'Terrace.House-Tokyo.2019-2020.Part3.E25.2019.1080p.NF.WEB-DL.DDP2.0.x264-HoneyG'
2020-04-06 18:30:52 DEBUG   FORCEDSEARCHQUEUE-MANUAL-361721 :: BTN :: [4d1e787] Using cached parse result for Terrace.House-Tokyo.2019-2020.Part3.E25.2019.1080p.NF.WEB-DL.DDP2.0.x264-HoneyG
2020-04-06 18:30:52 DEBUG   FORCEDSEARCHQUEUE-MANUAL-361721 :: BTN :: [4d1e787] Found 1 unique search results
2020-04-06 18:30:52 DEBUG   FORCEDSEARCHQUEUE-MANUAL-361721 :: BTN :: [4d1e787] Found result: Terrace.House-Tokyo.2019-2020.Part3.E25.2019.1080p.NF.WEB-DL.DDP2.0.x264-HoneyG with 40 seeders and 0 leechers
2020-04-06 18:30:50 DEBUG   FORCEDSEARCHQUEUE-MANUAL-361721 :: BTN :: [4d1e787] Search string: {'category': 'Episode', 'name': 'S03E01', 'tvdb': 361721}
2020-04-06 18:30:50 DEBUG   FORCEDSEARCHQUEUE-MANUAL-361721 :: BTN :: [4d1e787] Search mode: Episode
2020-04-06 18:30:50 DEBUG   FORCEDSEARCHQUEUE-MANUAL-361721 :: BTN :: [4d1e787] Could not find any candidates in cache, searching provider.
2020-04-06 18:30:50 INFO    FORCEDSEARCHQUEUE-MANUAL-361721 :: BTN :: [4d1e787] Performing episode search for Terrace House: Tokyo 2019–2020
2020-04-06 18:30:50 INFO    FORCEDSEARCHQUEUE-MANUAL-361721 :: [4d1e787] Using manual search providers
2020-04-06 18:30:50 DEBUG   FORCEDSEARCHQUEUE-MANUAL-361721 :: [4d1e787] Internal name cache for terrace house tokyo 2019–2020 set to: terrace house tokyo 2019 2020 part3, terrace house tokyo 2019 2020, terrace house tokyo 2019 2020 part4, terrace house tokyo 2019 2020 part2, terrace house tokyo 2019–2020
2020-04-06 18:30:50 INFO    FORCEDSEARCHQUEUE-MANUAL-361721 :: [4d1e787] Building internal name cache for Terrace House: Tokyo 2019–2020
2020-04-06 18:30:50 INFO    FORCEDSEARCHQUEUE-MANUAL-361721 :: [4d1e787] Finished processing 3215 scene exceptions.
2020-04-06 18:30:50 INFO    FORCEDSEARCHQUEUE-MANUAL-361721 :: [4d1e787] Updating exception_cache and exception_season_cache
2020-04-06 18:30:50 INFO    FORCEDSEARCHQUEUE-MANUAL-361721 :: [4d1e787] Beginning manual search for: Terrace House Tokyo 2019–2020 - S03E01 - The Girls Can't Do It
2020-04-06 18:30:50 DEBUG   FORCEDSEARCHQUEUE-MANUAL-361721 :: [4d1e787] 361721: Formatting pattern: %SN - S%0SE01 - %EN -> Terrace House Tokyo 2019–2020 - S03E01 - The Girls Can't Do It

report_guessit.py results for the file

S03E01:

# guessit: 3.1.0  rebulk: 2.0.0
? /home/[removed]/storage-tv/Terrace.House-Tokyo.2019-2020.Part3.E25.2019.1080p.NF.WEB-DL.DDP2.0.x264-HoneyG.mkv
: title: Terrace House-Tokyo
  year: 2020
  season: 2020
  part: 3
  episode: 25
  screen_size: 1080p
  streaming_service: Netflix
  source: Web
  audio_codec: Dolby Digital Plus
  audio_channels: 2.0
  video_codec: H.264
  video_encoder: x264
  release_group: HoneyG
  container: mkv
  mimetype: video/x-matroska
  type: episode
  parsing_time: 0.258827924728

S02E01:

# guessit: 3.1.0  rebulk: 2.0.0
? Terrace.House-Tokyo.2019-2020.Part2.E13.2019.1080p.NF.WEB-DL.DDP2.0.x264-HoneyG.mkv
: title: Terrace House-Tokyo
  year: 2020
  season: 2020
  part: 2
  episode: 13
  screen_size: 1080p
  streaming_service: Netflix
  source: Web
  audio_codec: Dolby Digital Plus
  audio_channels: 2.0
  video_codec: H.264
  video_encoder: x264
  release_group: HoneyG
  container: mkv
  mimetype: video/x-matroska
  type: episode
  parsing_time: 0.155370950699

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants