Repository: pymedusa/Medusa

Issue:
Looney Tunes (tvdb72514) not post-processing specials
**Describe the bug**
Added the show Looney Tunes (tvdb72514) and all episodes are post-processed as expected, but specials are not. Doesn't matter what I add in the scene exception list or how I rename the files.


**To Reproduce**
Steps to reproduce the behavior:
1. Add "Looney Tunes" (tvdb72514)
2. Create a file named "Looney Tunes - S00E24 - Target Snafu.mpg" in your processing directory
3. Execute "Manual Post-Processing"

**Expected behavior**
Expected the special episode to be added in the same way as all the other episodes.  
Other shows doesn't seem to have this issue.

**Medusa (please complete the following information):**
 - Host: Synology DSM 6
 - Docker: Linuxserver.io
 - Medusa Version: 0.5.17 (16-08-2021)

**Debug logs (at least 50 lines):**
General > Advanced Settings > Enable debug
<details>

```
2021-08-18 15:02:10 INFO	POSTPROCESSQUEUE-POST-PROCESS :: [94fae84] Completed Postproccessing
2021-08-18 15:02:10 WARNING	POSTPROCESSQUEUE-POST-PROCESS :: [94fae84] Missed file: /downloads/processing/tv/Looney Tunes/Looney Tunes - S00E24 - Target Snafu.mpg: Processing failed: This show isn't in your list, you need to add it before post-processing an episode
2021-08-18 15:02:10 WARNING	POSTPROCESSQUEUE-POST-PROCESS :: [94fae84] Problem(s) during processing, failed for the following files/folders: 
2021-08-18 15:02:10 INFO	POSTPROCESSQUEUE-POST-PROCESS :: [94fae84] Not deleting folder /downloads/processing/tv/Looney Tunes found the following files: ['Looney Tunes - S00E24 - Target Snafu.mpg']
2021-08-18 15:02:10 WARNING	POSTPROCESSQUEUE-POST-PROCESS :: [94fae84] Processing failed for /downloads/processing/tv/Looney Tunes/Looney Tunes - S00E24 - Target Snafu.mpg: This show isn't in your list, you need to add it before post-processing an episode
2021-08-18 15:02:10 DEBUG	POSTPROCESSQUEUE-POST-PROCESS :: [94fae84] The result that was found (Looney Tunes/Looney Tunes - S00E24 - Target Snafu.mpg) is not yet supported by Medusa and will be skipped. Sorry.
2021-08-18 15:02:10 DEBUG	POSTPROCESSQUEUE-POST-PROCESS :: [94fae84] Using cache item for Looney Tunes/Looney Tunes - S00E24 - Target Snafu.mpg
2021-08-18 15:02:10 DEBUG	POSTPROCESSQUEUE-POST-PROCESS :: [94fae84] Using guessit cache item for Looney Tunes/Looney Tunes - S00E24 - Target Snafu.mpg
2021-08-18 15:02:10 DEBUG	POSTPROCESSQUEUE-POST-PROCESS :: [94fae84] Analyzing name: Looney Tunes/Looney Tunes - S00E24 - Target Snafu.mpg
2021-08-18 15:02:10 DEBUG	POSTPROCESSQUEUE-POST-PROCESS :: [94fae84] The result that was found (Looney Tunes - S00E24 - Target Snafu.mpg) is not yet supported by Medusa and will be skipped. Sorry.
2021-08-18 15:02:10 DEBUG	POSTPROCESSQUEUE-POST-PROCESS :: [94fae84] Using cache item for Looney Tunes - S00E24 - Target Snafu.mpg
2021-08-18 15:02:10 DEBUG	POSTPROCESSQUEUE-POST-PROCESS :: [94fae84] Using guessit cache item for Looney Tunes - S00E24 - Target Snafu.mpg
2021-08-18 15:02:10 DEBUG	POSTPROCESSQUEUE-POST-PROCESS :: [94fae84] Analyzing name: Looney Tunes - S00E24 - Target Snafu.mpg
2021-08-18 15:02:10 INFO	POSTPROCESSQUEUE-POST-PROCESS :: [94fae84] Processing /downloads/processing/tv/Looney Tunes/Looney Tunes - S00E24 - Target Snafu.mpg
2021-08-18 15:02:10 DEBUG	POSTPROCESSQUEUE-POST-PROCESS :: [94fae84] Post-processing video files: ['Looney Tunes - S00E24 - Target Snafu.mpg']
2021-08-18 15:02:10 DEBUG	POSTPROCESSQUEUE-POST-PROCESS :: [94fae84] Post-processing files: ['Looney Tunes - S00E24 - Target Snafu.mpg']
2021-08-18 15:02:10 DEBUG	POSTPROCESSQUEUE-POST-PROCESS :: [94fae84] Processing folder: /downloads/processing/tv/Looney Tunes
2021-08-18 15:02:10 DEBUG	POSTPROCESSQUEUE-POST-PROCESS :: [94fae84] No resource_name passed, using path [/downloads/processing/tv/Looney Tunes] to process as a source folder
2021-08-18 15:02:10 DEBUG	POSTPROCESSQUEUE-POST-PROCESS :: [94fae84] No processable items found in folder: /downloads/processing/tv
2021-08-18 15:02:10 INFO	POSTPROCESSQUEUE-POST-PROCESS :: [94fae84] Processing path: /downloads/processing/tv
2021-08-18 15:02:10 INFO	POSTPROCESSQUEUE-POST-PROCESS :: [94fae84] Beginning postprocessing for path /downloads/processing/tv and resource None
2021-08-18 15:02:09 INFO	Thread :: [94fae84] Post processing called with:
path: /downloads/processing/tv
resource: None
```
</details>

**Additional context**
From the logs I can see ```...is not yet supported by Medusa and will be skipped. Sorry.```  which I don't quite undertand. It says ```This show isn't in your list```, but I find this strange given that all the normal episodes are processed just fine. I've tried to install guessit locally as it seems to be determine the name of the show and it seems identical to normal episodes.

Scene exeptions that I have tried:
1. Looney Tunes
2. Looney.Tunes
3. Looney
4. Tunes
5. Merrie Melodies

Naming conventioned tried: 
1. Looney Tunes - S00E24 - Target Snafu.mpg
2. Looney Tunes - S00E24.mpg
3. Looney Tunes - S00E24.avi
4. Looney.Tunes S00E24.mpg
5. Looney Tunes - SSpecialE24.mpg
6. Looney Tunes - Special E24.mpg



Discussion:
In the test folder there is a script named report_guessit.py. run that with the full file path. Like python report_guessit.py "name". Post output
Looks correct to me...

```
root@6b0c04acdae4:/app/medusa/tests# python3 report_guessit.py "Looney Tunes - S00E24 - Target Snafu.mpg"
# guessit: 3.3.1  rebulk: 3.0.1
? Looney Tunes - S00E24 - Target Snafu.mpg
: title: Looney Tunes
  season: 0
  episode: 24
  episode_title: Target Snafu
  container: mpg
  mimetype: video/mpeg
  type: episode
  parsing_time: 0.024408817291259766
  
  root@6b0c04acdae4:/app/medusa/tests# python3 report_guessit.py "/downloads/processing/tv/Looney Tunes/Looney Tunes - S00E24 - Target Snafu.mpg"
# guessit: 3.3.1  rebulk: 3.0.1
? /downloads/processing/tv/Looney Tunes/Looney Tunes - S00E24 - Target Snafu.mpg
: title: Looney Tunes
  season: 0
  episode: 24
  episode_title: Target Snafu
  container: mpg
  mimetype: video/mpeg
  type: episode
  parsing_time: 0.030806303024291992
```
It's a bug recently introduced. I'll do a quick fix. and then if you move to the develop branch, it's fixed for you


Resolving patch:
diff --git a/medusa/name_parser/parser.py b/medusa/name_parser/parser.py
--- a/medusa/name_parser/parser.py
+++ b/medusa/name_parser/parser.py
@@ -326,7 +326,7 @@ def _parse_string(self, name):
         elif result.series.is_anime or result.is_anime:
             new_episode_numbers, new_season_numbers, new_absolute_numbers = self._parse_anime(result)
 
-        elif result.season_number:
+        elif result.season_number is not None:
             new_episode_numbers, new_season_numbers, new_absolute_numbers = self._parse_series(result)
 
         else:


Test patch: