Repository: pymedusa/Medusa

Issue:
Not finding episodes when Xem entries end in a number
One of the shows in my list (High Score Girl) isn't finding results when searches are being performed for it's second season. The show has an entry on Xem to map "High Score Girl 2" to the 2nd season of the show, but it seems to me like the parser is getting confused by the 2 in the title and can't decide which episode number the results are.

I will use S02E01 for the example below.  Searching https://nyaa.si/?f=0&c=1_2&q=High+Score+Girl+2+-+01 returns a number of results, and I can see in the debug log that it is getting the results, but chokes on the desired result ([Mad Le Zisell] High Score Girl 2 - 01 [720p].mkv) with the following in the debug log:

2019-11-21 13:27:35 DEBUG    FORCEDSEARCHQUEUE-MANUAL-346673 :: Jackett-Nyaa-EnglishAnime :: [fcb5a19] Error during parsing of release name: [Mad.Le.Zisell].High.Score.Girl.2.-.01.[720p].mkv, with error: Unable to match [Mad.Le.Zisell].High.Score.Girl.2.-.01.[720p].mkv to a series in your database. Parser result: release_group: Mad.Le.Zisell, title: High Score Girl, episode: [], absolute_episode: [1, 2], screen_size: 720p, container: mkv, type: episode, parsing_time: 0.0469999313354, total_time: 0.0479998588562, quality: 720p HDTV, season: None

Here is the output from guessit:
# guessit: 3.1.0  rebulk: 2.0.0
? [Mad le Zisell] High Score Girl 2 - 01 [720p].mkv
: release_group: Mad le Zisell
  title: High Score Girl
  episode: [2, 1]
  absolute_episode: [2, 1]
  screen_size: 720p
  container: mkv
  type: episode
  parsing_time: 0.114000082016

Strangely, if the Episode number is 4 or higher, it will parse differently:
# guessit: 3.1.0  rebulk: 2.0.0
? [Mad le Zisell] High Score Girl 2 - 07 [720p].mkv
: release_group: Mad le Zisell
  title: High Score Girl 2
  episode: 7
  absolute_episode: 7
  screen_size: 720p
  container: mkv
  type: episode
  parsing_time: 0.117999792099


So it seems this bug may only have an effect on episodes 1-3 (it did successfully snatch E4)

Here is my environment:
Branch: master
Commit: fcb5a1969dcd4ea0b6fb4a9debbf60179b0bbf4b
Version: 0.3.7
Database: 44.14
Python Version:	2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:53:40) [MSC v.1500 64 bit (AMD64)]
SSL Version:	OpenSSL 1.0.2j 26 Sep 2016
OS:	Windows-7-6.1.7601-SP1
Locale:	en_US.cp1252


Debug from Forced Search on S2 E1:

```2019-11-22 10:22:49 DEBUG	FORCEDSEARCHQUEUE-MANUAL-346673 :: [fcb5a19] 346673: Formatting pattern: %SN - %AB - %EN -> Hi Score Girl - 016 - ROUND 16
2019-11-22 10:22:49 DEBUG	FORCEDSEARCHQUEUE-MANUAL-346673 :: Jackett-Nyaa-EnglishAnime :: [fcb5a19] Transaction with 1 queries executed
2019-11-22 10:22:49 DEBUG	FORCEDSEARCHQUEUE-MANUAL-346673 :: Jackett-Nyaa-EnglishAnime :: [fcb5a19] Mass updating cache table with manual results for provider: Jackett-Nyaa-EnglishAnime
2019-11-22 10:22:49 DEBUG	FORCEDSEARCHQUEUE-MANUAL-346673 :: Jackett-Nyaa-EnglishAnime :: [fcb5a19] Updating item: [Anon].High.Score.Girl.II.-.01.(Web.1080p.x264.EAC3).mkv to cache: jackett_nyaa_englishanime
2019-11-22 10:22:49 DEBUG	FORCEDSEARCHQUEUE-MANUAL-346673 :: Jackett-Nyaa-EnglishAnime :: [fcb5a19] Using cached parse result for [Anon].High.Score.Girl.II.-.01.(Web.1080p.x264.EAC3).mkv
2019-11-22 10:22:49 DEBUG	FORCEDSEARCHQUEUE-MANUAL-346673 :: Jackett-Nyaa-EnglishAnime :: [fcb5a19] Adding to cache item found in manual search: [Anon].High.Score.Girl.II.-.01.(Web.1080p.x264.EAC3).mkv
2019-11-22 10:22:49 INFO	FORCEDSEARCHQUEUE-MANUAL-346673 :: Jackett-Nyaa-EnglishAnime :: [fcb5a19] Removing cache entries older than 5 days from jackett_nyaa_englishanime
2019-11-22 10:22:49 DEBUG	FORCEDSEARCHQUEUE-MANUAL-346673 :: Jackett-Nyaa-EnglishAnime :: [fcb5a19] Transaction with 1 queries executed
2019-11-22 10:22:49 DEBUG	FORCEDSEARCHQUEUE-MANUAL-346673 :: Jackett-Nyaa-EnglishAnime :: [fcb5a19] We aren't interested in this result: High.Score.Girl.-.01.(BS11.1280x720.x264.AAC).mkv with url: http://172.20.1.2:9117/dl/nyaasi/?jackett_apikey=**********&path=Q2ZESjhMRTZmV1U2UDlkQmlKaEh0aWNQdDB4cW9ySm1zb0ZjdUUwX2FVUG56eXdmMkM1U1pmWGw4ZEg2YUNfaWtZbURfSHBib3BEdHh1Smx0MkJ0a2NMSUJaV1h6R3hIS0pYMVhWTENRSGtUTkNEd0hPX2RfS3BJTTBUdnJ6RTRDRXloM2Q0ODBqdWJfSjh0RkpvcWNnY0xoWk5Ib0VWX2V6b19POWZSQTItS3VlNzI&file=High+Score+Girl+-+01+(BS11+1280x720+x264+AAC).mkv
2019-11-22 10:22:49 DEBUG	FORCEDSEARCHQUEUE-MANUAL-346673 :: Jackett-Nyaa-EnglishAnime :: [fcb5a19] We aren't interested in this result: [Mad.Le.Zisell].High.Score.Girl.2.-.01.[720p].mkv with url: http://172.20.1.2:9117/dl/nyaasi/?jackett_apikey=**********&path=Q2ZESjhMRTZmV1U2UDlkQmlKaEh0aWNQdDB6MTdWbTBZZ2dsaHlHaURtUWhuVkhDZE5VV0pyT3hFVVVsdmVOUkx1VnRaOHZxWVNDSFo1elE2enFNVDRyNDlYN0hFUWRGc09zU0d3NUlZQmQ2SVIwd0R6QzNJaktpSXFYcnBpbUduV1d5Ylg3TWFJWGF5aUtsaWVUeHJtZHY2TnJiWDFZNDBjN2ZPaFR2WXdqbDUxZ08&file=%5BMad+Le+Zisell%5D+High+Score+Girl+2+-+01+%5B720p%5D.mkv
2019-11-22 10:22:49 DEBUG	FORCEDSEARCHQUEUE-MANUAL-346673 :: Jackett-Nyaa-EnglishAnime :: [fcb5a19] We aren't interested in this result: [Anon].High.Score.Girl.-.01.(Web.1080p.x264.EAC3).mkv with url: http://172.20.1.2:9117/dl/nyaasi/?jackett_apikey=**********&path=Q2ZESjhMRTZmV1U2UDlkQmlKaEh0aWNQdDB6U1ptM2pHMGhkVUloWU1zOTJGRmpqNkVZLVFPSFN3RE1XbWFpTkF0MG9tUEhmMndvRnZRV0tJLXdKVENvR0trU3ZvcERjb3l1c0pmSC1ydGhEa2VJSlVTRDVxV3gzT0R6U3NPRlNHNmRhWG9ZSzExUlpnWVRoRW1sN3pIUEN5Smt1VDBqMEx0aG44dm5MVkxWZENtWVk&file=%5BAnon%5D+High+Score+Girl+-+01+(Web+1080p+x264+EAC3).mkv
2019-11-22 10:22:49 DEBUG	FORCEDSEARCHQUEUE-MANUAL-346673 :: Jackett-Nyaa-EnglishAnime :: [fcb5a19] We aren't interested in this result: [Hakata.Ramen].High.Score.Girl.(S2).01.[1080p.HEVC.Sub-1x].HR-DR with url: http://172.20.1.2:9117/dl/nyaasi/?jackett_apikey=**********&path=Q2ZESjhMRTZmV1U2UDlkQmlKaEh0aWNQdDB5aHlPdHRCYlY2YTd1TkFNc3hjdlRqN0NuZnlNX3d1T0x6UFJ6R0V5TVJ2ZGhQTVN2ZDBqY3NhTFZpRjdHcEdiTnlyQTdaazRKVzJsdEdfNE1CNm11Vm9ISnl4Q1FPM1ZIeGJsNS01dDhkdVo3cFdRVjFQc2NMemxSSWVfQTFaSzZKa1Z1UVFLSmw5MTFMX01KQUNYVDA&file=%5BHakata+Ramen%5D+High+Score+Girl+(S2)+01+%5B1080p+HEVC+Sub-1x%5D+HR-DR
2019-11-22 10:22:49 DEBUG	FORCEDSEARCHQUEUE-MANUAL-346673 :: Jackett-Nyaa-EnglishAnime :: [fcb5a19] Found single episode result [Anon].High.Score.Girl.II.-.01.(Web.1080p.x264.EAC3).mkv at http://172.20.1.2:9117/dl/nyaasi/?jackett_apikey=**********&path=Q2ZESjhMRTZmV1U2UDlkQmlKaEh0aWNQdDB3N0Y1Y1d5TnQ2Ty1Gd2NQWFFlZERHYzU0SVBaNXBXVjh1VHFucDBIUUw3cUctY3dKazhyaXB5dHk2bmVic09OaTZraFpsYmczOEs3ZEViVjQxX2dZVnlmeWZhZW1QNVlpb0FuNkpRUW1tZnZPUTVOdHk2SWlUamtEdEZlVVBreEpuUkhTZ1owMU1saFZOdVBxc0xpTWU&file=%5BAnon%5D+High+Score+Girl+II+-+01+(Web+1080p+x264+EAC3).mkv
2019-11-22 10:22:49 DEBUG	FORCEDSEARCHQUEUE-MANUAL-346673 :: Jackett-Nyaa-EnglishAnime :: [fcb5a19] Found result [Anon].High.Score.Girl.II.-.01.(Web.1080p.x264.EAC3).mkv at http://172.20.1.2:9117/dl/nyaasi/?jackett_apikey=**********&path=Q2ZESjhMRTZmV1U2UDlkQmlKaEh0aWNQdDB3N0Y1Y1d5TnQ2Ty1Gd2NQWFFlZERHYzU0SVBaNXBXVjh1VHFucDBIUUw3cUctY3dKazhyaXB5dHk2bmVic09OaTZraFpsYmczOEs3ZEViVjQxX2dZVnlmeWZhZW1QNVlpb0FuNkpRUW1tZnZPUTVOdHk2SWlUamtEdEZlVVBreEpuUkhTZ1owMU1saFZOdVBxc0xpTWU&file=%5BAnon%5D+High+Score+Girl+II+-+01+(Web+1080p+x264+EAC3).mkv
2019-11-22 10:22:49 DEBUG	FORCEDSEARCHQUEUE-MANUAL-346673 :: Jackett-Nyaa-EnglishAnime :: [fcb5a19] Updating item: [Anon].High.Score.Girl.II.-.01.(Web.1080p.x264.EAC3).mkv to cache: jackett_nyaa_englishanime
2019-11-22 10:22:49 DEBUG	FORCEDSEARCHQUEUE-MANUAL-346673 :: Jackett-Nyaa-EnglishAnime :: [fcb5a19] Adding item from search to cache: u'[Anon].High.Score.Girl.II.-.01.(Web.1080p.x264.EAC3).mkv'
2019-11-22 10:22:49 DEBUG	FORCEDSEARCHQUEUE-MANUAL-346673 :: Jackett-Nyaa-EnglishAnime :: [fcb5a19] Error during parsing of release name: High.Score.Girl.-.01.(BS11.1280x720.x264.AAC).mkv, with error: Unable to match High.Score.Girl.-.01.(BS11.1280x720.x264.AAC).mkv to a series in your database. Parser result: title: High Score Girl, episode: [], absolute_episode: [1], screen_size: 720p, aspect_ratio: 1.778, video_codec: H.264, video_encoder: x264, audio_codec: AAC, container: mkv, type: episode, parsing_time: 0.061999797821, total_time: 0.0639998912811, quality: 720p HDTV, season: None
2019-11-22 10:22:48 DEBUG	FORCEDSEARCHQUEUE-MANUAL-346673 :: Jackett-Nyaa-EnglishAnime :: [fcb5a19] Error during parsing of release name: [Mad.Le.Zisell].High.Score.Girl.2.-.01.[720p].mkv, with error: Unable to match [Mad.Le.Zisell].High.Score.Girl.2.-.01.[720p].mkv to a series in your database. Parser result: release_group: Mad.Le.Zisell, title: High Score Girl, episode: [], absolute_episode: [1, 2], screen_size: 720p, container: mkv, type: episode, parsing_time: 0.0429999828339, total_time: 0.0439999103546, quality: 720p HDTV, season: None
2019-11-22 10:22:48 DEBUG	FORCEDSEARCHQUEUE-MANUAL-346673 :: Jackett-Nyaa-EnglishAnime :: [fcb5a19] Error during parsing of release name: [Anon].High.Score.Girl.-.01.(Web.1080p.x264.EAC3).mkv, with error: Unable to match [Anon].High.Score.Girl.-.01.(Web.1080p.x264.EAC3).mkv to a series in your database. Parser result: release_group: Anon, title: High Score Girl, episode: [], absolute_episode: [1], source: Web, screen_size: 1080p, video_codec: H.264, video_encoder: x264, audio_codec: Dolby Digital Plus, container: mkv, type: episode, parsing_time: 0.0599999427795, total_time: 0.0609998703003, quality: 1080p WEB-DL, season: None
2019-11-22 10:22:48 DEBUG	FORCEDSEARCHQUEUE-MANUAL-346673 :: Jackett-Nyaa-EnglishAnime :: [fcb5a19] Error during parsing of release name: [Hakata.Ramen].High.Score.Girl.(S2).01.[1080p.HEVC.Sub-1x].HR-DR, with error: Unable to match [Hakata.Ramen].High.Score.Girl.(S2).01.[1080p.HEVC.Sub-1x].HR-DR to a series in your database. Parser result: release_group: Hakata Ramen, title: High Score Girl S2, absolute_episode: [1], episode: [], screen_size: 1080p, video_codec: H.265, video_profile: High Efficiency Video Coding, other: High Resolution, type: episode, parsing_time: 0.0519998073578, total_time: 0.0529999732971, quality: 1080p HDTV, season: None
2019-11-22 10:22:48 DEBUG	FORCEDSEARCHQUEUE-MANUAL-346673 :: Jackett-Nyaa-EnglishAnime :: [fcb5a19] Using cached parse result for [Anon].High.Score.Girl.II.-.01.(Web.1080p.x264.EAC3).mkv
2019-11-22 10:22:48 DEBUG	FORCEDSEARCHQUEUE-MANUAL-346673 :: Jackett-Nyaa-EnglishAnime :: [fcb5a19] Found 5 unique search results
2019-11-22 10:22:48 DEBUG	FORCEDSEARCHQUEUE-MANUAL-346673 :: Jackett-Nyaa-EnglishAnime :: [fcb5a19] Found result: High Score Girl - 01 (BS11 1280x720 x264 AAC).mkv with 12 seeders and 12 leechers
2019-11-22 10:22:48 DEBUG	FORCEDSEARCHQUEUE-MANUAL-346673 :: Jackett-Nyaa-EnglishAnime :: [fcb5a19] Found result: [Anon] High Score Girl - 01 (Web 1080p x264 EAC3).mkv with 10 seeders and 10 leechers
2019-11-22 10:22:48 DEBUG	FORCEDSEARCHQUEUE-MANUAL-346673 :: Jackett-Nyaa-EnglishAnime :: [fcb5a19] Found result: [Anon] High Score Girl II - 01 (Web 1080p x264 EAC3).mkv with 88 seeders and 93 leechers
2019-11-22 10:22:48 DEBUG	FORCEDSEARCHQUEUE-MANUAL-346673 :: Jackett-Nyaa-EnglishAnime :: [fcb5a19] Found result: [Hakata Ramen] High Score Girl (S2) 01 [1080p HEVC Sub-1x] HR-DR with 21 seeders and 22 leechers
2019-11-22 10:22:48 DEBUG	FORCEDSEARCHQUEUE-MANUAL-346673 :: Jackett-Nyaa-EnglishAnime :: [fcb5a19] Found result: [Mad Le Zisell] High Score Girl 2 - 01 [720p].mkv with 20 seeders and 20 leechers
2019-11-22 10:22:48 DEBUG	FORCEDSEARCHQUEUE-MANUAL-346673 :: Jackett-Nyaa-EnglishAnime :: [fcb5a19] User-Agent: Medusa/0.3.7 (Windows; 7; 385219de-0a44-11ea-9253-8ef2cf89ac20)
2019-11-22 10:22:48 DEBUG	FORCEDSEARCHQUEUE-MANUAL-346673 :: Jackett-Nyaa-EnglishAnime :: [fcb5a19] GET URL: **********api?apikey=**********&cat=5000%2C5010%2C5020%2C5030%2C5040%2C5045%2C5050%2C5060%2C5070%2C5080%2C5070&q=High+Score+Girl+2+01&limit=100&t=search&offset=0 [Status: 200]
2019-11-22 10:22:48 DEBUG	FORCEDSEARCHQUEUE-MANUAL-346673 :: Jackett-Nyaa-EnglishAnime :: [fcb5a19] Search show using search string: High Score Girl 2 01
2019-11-22 10:22:48 DEBUG	FORCEDSEARCHQUEUE-MANUAL-346673 :: Jackett-Nyaa-EnglishAnime :: [fcb5a19] No results returned from provider. Check chosen Torznab search categories in provider settings.
2019-11-22 10:22:48 DEBUG	FORCEDSEARCHQUEUE-MANUAL-346673 :: Jackett-Nyaa-EnglishAnime :: [fcb5a19] User-Agent: Medusa/0.3.7 (Windows; 7; 385219de-0a44-11ea-9253-8ef2cf89ac20)
2019-11-22 10:22:48 DEBUG	FORCEDSEARCHQUEUE-MANUAL-346673 :: Jackett-Nyaa-EnglishAnime :: [fcb5a19] GET URL: **********api?apikey=**********&cat=5000%2C5010%2C5020%2C5030%2C5040%2C5045%2C5050%2C5060%2C5070%2C5080%2C5070&q=Hi+Score+Girl+16&limit=100&t=search&offset=0 [Status: 200]
2019-11-22 10:22:47 DEBUG	FORCEDSEARCHQUEUE-MANUAL-346673 :: Jackett-Nyaa-EnglishAnime :: [fcb5a19] Search show using search string: Hi Score Girl 16
2019-11-22 10:22:47 DEBUG	FORCEDSEARCHQUEUE-MANUAL-346673 :: Jackett-Nyaa-EnglishAnime :: [fcb5a19] Found result: [Anon] High Score Girl II - 01 (Web 1080p x264 EAC3).mkv with 87 seeders and 92 leechers
2019-11-22 10:22:47 DEBUG	FORCEDSEARCHQUEUE-MANUAL-346673 :: Jackett-Nyaa-EnglishAnime :: [fcb5a19] User-Agent: Medusa/0.3.7 (Windows; 7; 385219de-0a44-11ea-9253-8ef2cf89ac20)
2019-11-22 10:22:47 DEBUG	FORCEDSEARCHQUEUE-MANUAL-346673 :: Jackett-Nyaa-EnglishAnime :: [fcb5a19] GET URL: **********api?apikey=**********&cat=5000%2C5010%2C5020%2C5030%2C5040%2C5045%2C5050%2C5060%2C5070%2C5080%2C5070&q=High+Score+Girl+II+01&limit=100&t=search&offset=0 [Status: 200]
2019-11-22 10:22:47 DEBUG	FORCEDSEARCHQUEUE-MANUAL-346673 :: Jackett-Nyaa-EnglishAnime :: [fcb5a19] Search show using search string: High Score Girl II 01
2019-11-22 10:22:47 DEBUG	FORCEDSEARCHQUEUE-MANUAL-346673 :: Jackett-Nyaa-EnglishAnime :: [fcb5a19] Search mode: Episode
2019-11-22 10:22:47 DEBUG	FORCEDSEARCHQUEUE-MANUAL-346673 :: Jackett-Nyaa-EnglishAnime :: [fcb5a19] Found result: High Score Girl - 01 (BS11 1280x720 x264 AAC).mkv with 12 seeders and 12 leechers
2019-11-22 10:22:47 DEBUG	FORCEDSEARCHQUEUE-MANUAL-346673 :: Jackett-Nyaa-EnglishAnime :: [fcb5a19] Found result: [Anon] High Score Girl - 01 (Web 1080p x264 EAC3).mkv with 10 seeders and 10 leechers
2019-11-22 10:22:47 DEBUG	FORCEDSEARCHQUEUE-MANUAL-346673 :: Jackett-Nyaa-EnglishAnime :: [fcb5a19] Found result: [Anon] High Score Girl II - 01 (Web 1080p x264 EAC3).mkv with 88 seeders and 93 leechers
2019-11-22 10:22:47 DEBUG	FORCEDSEARCHQUEUE-MANUAL-346673 :: Jackett-Nyaa-EnglishAnime :: [fcb5a19] Found result: [Hakata Ramen] High Score Girl (S2) 01 [1080p HEVC Sub-1x] HR-DR with 21 seeders and 22 leechers
2019-11-22 10:22:47 DEBUG	FORCEDSEARCHQUEUE-MANUAL-346673 :: Jackett-Nyaa-EnglishAnime :: [fcb5a19] Found result: [Mad Le Zisell] High Score Girl 2 - 01 [720p].mkv with 20 seeders and 20 leechers
2019-11-22 10:22:47 DEBUG	FORCEDSEARCHQUEUE-MANUAL-346673 :: Jackett-Nyaa-EnglishAnime :: [fcb5a19] User-Agent: Medusa/0.3.7 (Windows; 7; 385219de-0a44-11ea-9253-8ef2cf89ac20)
2019-11-22 10:22:47 DEBUG	FORCEDSEARCHQUEUE-MANUAL-346673 :: Jackett-Nyaa-EnglishAnime :: [fcb5a19] GET URL: **********api?apikey=**********&cat=5000%2C5010%2C5020%2C5030%2C5040%2C5045%2C5050%2C5060%2C5070%2C5080%2C5070&q=High+Score+Girl+2+01&limit=100&t=search&offset=0 [Status: 200]
2019-11-22 10:22:46 DEBUG	FORCEDSEARCHQUEUE-MANUAL-346673 :: Jackett-Nyaa-EnglishAnime :: [fcb5a19] Search show using search string: High Score Girl 2 01
2019-11-22 10:22:46 DEBUG	FORCEDSEARCHQUEUE-MANUAL-346673 :: Jackett-Nyaa-EnglishAnime :: [fcb5a19] No results returned from provider. Check chosen Torznab search categories in provider settings.
2019-11-22 10:22:46 DEBUG	FORCEDSEARCHQUEUE-MANUAL-346673 :: Jackett-Nyaa-EnglishAnime :: [fcb5a19] User-Agent: Medusa/0.3.7 (Windows; 7; 385219de-0a44-11ea-9253-8ef2cf89ac20)
2019-11-22 10:22:46 DEBUG	FORCEDSEARCHQUEUE-MANUAL-346673 :: Jackett-Nyaa-EnglishAnime :: [fcb5a19] GET URL: **********api?apikey=**********&cat=5000%2C5010%2C5020%2C5030%2C5040%2C5045%2C5050%2C5060%2C5070%2C5080%2C5070&q=Hi+Score+Girl+16&limit=100&t=search&offset=0 [Status: 200]
2019-11-22 10:22:46 DEBUG	FORCEDSEARCHQUEUE-MANUAL-346673 :: Jackett-Nyaa-EnglishAnime :: [fcb5a19] Search show using search string: Hi Score Girl 16
2019-11-22 10:22:46 DEBUG	FORCEDSEARCHQUEUE-MANUAL-346673 :: Jackett-Nyaa-EnglishAnime :: [fcb5a19] Found result: [Anon] High Score Girl II - 01 (Web 1080p x264 EAC3).mkv with 87 seeders and 92 leechers
2019-11-22 10:22:46 DEBUG	FORCEDSEARCHQUEUE-MANUAL-346673 :: Jackett-Nyaa-EnglishAnime :: [fcb5a19] User-Agent: Medusa/0.3.7 (Windows; 7; 385219de-0a44-11ea-9253-8ef2cf89ac20)
2019-11-22 10:22:46 DEBUG	FORCEDSEARCHQUEUE-MANUAL-346673 :: Jackett-Nyaa-EnglishAnime :: [fcb5a19] GET URL: **********api?apikey=**********&cat=5000%2C5010%2C5020%2C5030%2C5040%2C5045%2C5050%2C5060%2C5070%2C5080%2C5070&q=High+Score+Girl+II+01&limit=100&t=search&offset=0 [Status: 200]
2019-11-22 10:22:45 DEBUG	FORCEDSEARCHQUEUE-MANUAL-346673 :: Jackett-Nyaa-EnglishAnime :: [fcb5a19] Search show using search string: High Score Girl II 01
2019-11-22 10:22:45 DEBUG	FORCEDSEARCHQUEUE-MANUAL-346673 :: Jackett-Nyaa-EnglishAnime :: [fcb5a19] Search mode: Episode
2019-11-22 10:22:45 DEBUG	FORCEDSEARCHQUEUE-MANUAL-346673 :: Jackett-Nyaa-EnglishAnime :: [fcb5a19] Could not find any candidates in cache, searching provider.
2019-11-22 10:22:45 INFO	FORCEDSEARCHQUEUE-MANUAL-346673 :: Jackett-Nyaa-EnglishAnime :: [fcb5a19] Performing episode search for Hi Score Girl
2019-11-22 10:22:45 INFO	FORCEDSEARCHQUEUE-MANUAL-346673 :: [fcb5a19] Using manual search providers
2019-11-22 10:22:45 DEBUG	FORCEDSEARCHQUEUE-MANUAL-346673 :: [fcb5a19] Internal name cache for hi score girl set to: high score girl ii, hi score girl, high score girl 2
2019-11-22 10:22:45 INFO	FORCEDSEARCHQUEUE-MANUAL-346673 :: [fcb5a19] Building internal name cache for Hi Score Girl
2019-11-22 10:22:45 INFO	FORCEDSEARCHQUEUE-MANUAL-346673 :: [fcb5a19] Finished processing 3105 scene exceptions.
2019-11-22 10:22:45 INFO	FORCEDSEARCHQUEUE-MANUAL-346673 :: [fcb5a19] Updating exception_cache and exception_season_cache
2019-11-22 10:22:45 INFO	FORCEDSEARCHQUEUE-MANUAL-346673 :: [fcb5a19] Beginning manual search for: Hi Score Girl - 016 - ROUND 16
2019-11-22 10:22:45 DEBUG	FORCEDSEARCHQUEUE-MANUAL-346673 :: [fcb5a19] 346673: Formatting pattern: %SN - %AB - %EN -> Hi Score Girl - 016 - ROUND 16```


Discussion:
Using Guessit directly:
```
(guessit) D:\Development\VirEnvs\guessit>guessit --version
+-------------------------------------------------------+
+                   GuessIt 3.1.0                       +
+-------------------------------------------------------+
+                   Rebulk 2.0.0                        +
+-------------------------------------------------------+
|      Please report any bug or feature request at      |
|     https://github.com/guessit-io/guessit/issues.     |
+-------------------------------------------------------+

(guessit) D:\Development\VirEnvs\guessit>guessit "[Mad le Zisell] High Score Girl 2 - 01 [720].mkv"
For: [Mad le Zisell] High Score Girl 2 - 01 [720].mkv
GuessIt found: {
    "release_group": "Mad le Zisell",
    "title": "High Score Girl 2",
    "episode": [
        1,
        720
    ],
    "container": "mkv",
    "type": "episode"
}

```
@medariox i'm posting here, as I see some discrepancies compared to native guessit parsing. But I think that eventualy we also need to report upstream. Lot's of anime are release in this format: `[release group] [title] - [episode] [quality].mkv`, and sometimes they parse fine, some time not.
@p0psicles 
Missing the `p` in 720p in your example. But yeah, this is definitely a guessit bug.
We need to handle these on a case by case basis.
Anyway, I will try to have a fix for us until guessit fixes it upstream.

@mule007 
Can you open a bug report over at https://github.com/guessit-io/guessit/issues please?

Resolving patch:
diff --git a/medusa/name_parser/rules/rules.py b/medusa/name_parser/rules/rules.py
--- a/medusa/name_parser/rules/rules.py
+++ b/medusa/name_parser/rules/rules.py
@@ -608,6 +608,111 @@ def when(self, matches, context):
                 return to_remove, to_append
 
 
+class AnimeWithSeasonMultipleEpisodeNumbers(Rule):
+    """Add season to title and remove episode for specific anime patterns.
+
+    There are animes where the title contains the season number and they
+    are mistakenly treated as multiple episodes instead.
+
+    Medusa rule:
+    - The season should be part of the series name
+    - The first episode should be removed
+
+    e.g.: [Mad le Zisell] High Score Girl 2 - 01 [720p]
+
+    guessit -t episode "[Mad le Zisell] High Score Girl 2 - 01 [720p]"
+
+    without this rule:
+        For: [Mad le Zisell] High Score Girl 2 - 01 [720p]
+        GuessIt found: {
+            "release_group": "Mad le Zisell",
+            "title": "High Score Girl",
+            "episode": [
+                2,
+                1
+            ],
+            "screen_size": "720p",
+            "type": "episode"
+        }
+
+    with this rule:
+        For: [Mad le Zisell] High Score Girl 2 - 01 [720p]
+        GuessIt found: {
+            "release_group": "Mad le Zisell",
+            "title": "High Score Girl 2",
+            "episode": "1",
+            "absolute_episode": "1",
+            "screen_size": "720p",
+            "type": "episode"
+        }
+    """
+
+    priority = POST_PROCESS
+    consequence = [RemoveMatch, AppendMatch]
+    ends_with_digit = re.compile(r'(_|\W)\d+$')
+
+    def when(self, matches, context):
+        """Evaluate the rule.
+
+        :param matches:
+        :type matches: rebulk.match.Matches
+        :param context:
+        :type context: dict
+        :return:
+        """
+        if context.get('show_type') == 'normal' or not matches.tagged('anime'):
+            return
+
+        titles = matches.named('title')
+        if not titles:
+            return
+
+        episodes = matches.named('episode')
+        if not (2 <= len(episodes) <= 4):
+            return
+
+        unique_eps = set([ep.initiator.value for ep in episodes])
+        if len(unique_eps) != 2:
+            return
+
+        to_remove = []
+        to_append = []
+
+        fileparts = matches.markers.named('path')
+        for filepart in marker_sorted(fileparts, matches):
+            episodes = sorted(matches.range(filepart.start, filepart.end,
+                                            predicate=lambda match: match.name == 'episode'))
+
+            if not episodes:
+                if len(titles) > 1:
+                    bad_title = sorted(titles)[0]
+                    to_remove.append(bad_title)
+                continue
+
+            title = matches.previous(episodes[0], index=-1,
+                                     predicate=lambda match: match.name == 'title' and match.end <= filepart.end)
+            if not title or self.ends_with_digit.search(str(title.value)):
+                continue
+
+            for i, episode in enumerate(episodes):
+                if i == 0:
+                    new_title = copy.copy(title)
+                    if six.PY3:
+                        new_title.value = ' '.join([title.value, str(episode.value)])
+                    else:
+                        new_title.value = b' '.join([title.value, str(episode.value)])
+                    new_title.end = episode.end
+
+                    to_remove.append(title)
+                    to_append.append(new_title)
+                    to_remove.append(episode)
+
+                if i == 1 and len(episodes) in (3, 4):
+                    to_remove.append(episode)
+
+        return to_remove, to_append
+
+
 class AnimeAbsoluteEpisodeNumbers(Rule):
     """Move episode numbers to absolute episode numbers for animes.
 
@@ -1383,6 +1488,7 @@ def rules():
         FixAnimeReleaseGroup,
         FixInvalidAbsoluteReleaseGroups,
         AnimeWithSeasonAbsoluteEpisodeNumbers,
+        AnimeWithSeasonMultipleEpisodeNumbers,
         AnimeAbsoluteEpisodeNumbers,
         AbsoluteEpisodeNumbers,
         PartsAsEpisodeNumbers,


Test patch:
diff --git a/tests/test_guessit.yml b/tests/test_guessit.yml
--- a/tests/test_guessit.yml
+++ b/tests/test_guessit.yml
@@ -2012,9 +2012,9 @@
 
 # Corner Case: Episode 2 with a number after it
 ? "[GroupName].Show.Name.-.02.5.(Special).[BD.1080p]"
-: title: Show Name
-  absolute_episode: 2
-  episode: 2
+: title: Show Name 2
+  absolute_episode: 5
+  episode: 5
   episode_details: Special
   screen_size: 1080p
   source: BDRip
@@ -2961,6 +2961,30 @@
   mimetype: video/x-matroska
   type: episode
 
+? "[Mad le Zisell] High Score Girl 2 - 01 [720p]"
+: title: High Score Girl 2
+  absolute_episode: 1
+  episode: 1
+  screen_size: 720p
+  release_group: Mad le Zisell
+  type: episode
+
+? "High Score Girl 2/[Mad le Zisell] High Score Girl 2 - 01 [720p]"
+: title: High Score Girl 2
+  absolute_episode: 1
+  episode: 1
+  screen_size: 720p
+  release_group: Mad le Zisell
+  type: episode
+
+? "High Score Girl/[Mad le Zisell] High Score Girl 2 - 01 [720p]"
+: title: High Score Girl 2
+  absolute_episode: 1
+  episode: 1
+  screen_size: 720p
+  release_group: Mad le Zisell
+  type: episode
+
 # Anime show containing number in its title and show with :
 ? /Anime/Mobile Suit Gundam UC RE0096/Season 01/Mobile Suit Gundam UC RE0096 - s01e15 - Title
 : title: Mobile Suit Gundam UC RE0096