Repository: pymedusa/Medusa

Issue:
Manual search results from Tokyo Toshokan have 0 file size
**Describe the bug**
All search results returned from [Tokyo Toshokan](https://tokyotosho.info) search provider appear to be 0 bytes in file size, despite this information being provided when looking up on their website.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to 'Config > Search providers'
2. Activate TokyoToshokan
3. Go to any anime show, pick any episode and perform manual search
4. In the results list, all results from TokyoTosho provider have `0.00 B` value in Size column.

**Expected behavior**
An actual file size should be provided.

**Screenshots**
![Screenshot from 2021-04-21 17-35-33](https://user-images.githubusercontent.com/26551643/115581650-7e3cba00-a2c8-11eb-9342-e008f94a65cc.png)

**Medusa (please complete the following information):**
 - OS: Linux-5.4.60-1-pve-x86_64-with
 - Branch: master
 - Commit: Unknown
 - Python version: 3.8.8
 - Database version: 44.18

**Debug logs (at least 50 lines):**
General > Advanced Settings > Enable debug
<details>

```
2021-04-21 15:28:32 INFO	SNATCHQUEUE-SNATCH-395315 :: Downloading [SubsPlease].Super.Cub.-.03.(1080p).[3EA9788D].mkv with 518 seeders and 467 leechers and size 1.00 GB from Nyaa, through a SearchType.MANUAL_SEARCH search
2021-04-21 15:28:32 INFO	SNATCHQUEUE-SNATCH-395315 :: Beginning to snatch release: [SubsPlease].Super.Cub.-.03.(1080p).[3EA9788D].mkv
2021-04-21 15:28:12 INFO	FORCEDSEARCHQUEUE-MANUAL-395315 :: AvistaZ :: Performing episode search for Super Cub
2021-04-21 15:28:12 INFO	FORCEDSEARCHQUEUE-MANUAL-395315 :: AnimeBytes :: Quality of Super.Cub.S01.E01.Web.MKV.h264.720p.AAC2.0-SubsPlease is 720p WEB-DL
2021-04-21 15:28:12 INFO	FORCEDSEARCHQUEUE-MANUAL-395315 :: AnimeBytes :: Quality of Super.Cub.S01.E01.Web.MKV.h264.1080p.AAC2.0-SubsPlease is 1080p WEB-DL
2021-04-21 15:28:12 INFO	FORCEDSEARCHQUEUE-MANUAL-395315 :: AnimeBytes :: Quality of Super.Cub.S01.E02.Web.MKV.h264.720p.AAC2.0-SubsPlease is 720p WEB-DL
2021-04-21 15:28:12 INFO	FORCEDSEARCHQUEUE-MANUAL-395315 :: AnimeBytes :: Quality of Super.Cub.S01.E02.Web.MKV.h264.1080p.AAC2.0-SubsPlease is 1080p WEB-DL
2021-04-21 15:28:12 INFO	FORCEDSEARCHQUEUE-MANUAL-395315 :: AnimeBytes :: Picked Super.Cub.S01.E03.Web.MKV.h264.1080p.AAC2.0-SubsPlease as the best result.
2021-04-21 15:28:12 INFO	FORCEDSEARCHQUEUE-MANUAL-395315 :: AnimeBytes :: Quality of Super.Cub.S01.E03.Web.MKV.h264.720p.AAC2.0-SubsPlease is 720p WEB-DL
2021-04-21 15:28:12 INFO	FORCEDSEARCHQUEUE-MANUAL-395315 :: AnimeBytes :: Episodes [3] of season 1 are needed with this quality for Super Cub
2021-04-21 15:28:12 INFO	FORCEDSEARCHQUEUE-MANUAL-395315 :: AnimeBytes :: Quality of Super.Cub.S01.E03.Web.MKV.h264.1080p.AAC2.0-SubsPlease is 1080p WEB-DL
2021-04-21 15:28:12 INFO	FORCEDSEARCHQUEUE-MANUAL-395315 :: AnimeBytes :: Performing episode search for Super Cub
2021-04-21 15:28:11 INFO	FORCEDSEARCHQUEUE-MANUAL-395315 :: Torrentz2 :: Performing episode search for Super Cub
2021-04-21 15:28:11 INFO	FORCEDSEARCHQUEUE-MANUAL-395315 :: TokyoToshokan :: Picked [SubsPlease].Super.Cub.-.03.(1080p).[3EA9788D].mkv as the best result.
2021-04-21 15:28:11 INFO	FORCEDSEARCHQUEUE-MANUAL-395315 :: TokyoToshokan :: Quality of [Erai-raws].Super.Cub.-.03.[v0][540p][Multiple.Subtitle].mkv is Unknown
2021-04-21 15:28:11 INFO	FORCEDSEARCHQUEUE-MANUAL-395315 :: TokyoToshokan :: Quality of [Erai-raws].Super.Cub.-.03.[v0][720p][Multiple.Subtitle].mkv is 720p HDTV
2021-04-21 15:28:11 INFO	FORCEDSEARCHQUEUE-MANUAL-395315 :: TokyoToshokan :: Quality of [SubsPlease].Super.Cub.-.03.(540p).[5C0D3532].mkv is Unknown
2021-04-21 15:28:11 INFO	FORCEDSEARCHQUEUE-MANUAL-395315 :: TokyoToshokan :: Episodes [3] of season 1 are needed with this quality for Super Cub
2021-04-21 15:28:11 INFO	FORCEDSEARCHQUEUE-MANUAL-395315 :: TokyoToshokan :: Quality of [Erai-raws].Super.Cub.-.03.[v0][1080p][Multiple.Subtitle].mkv is 1080p HDTV
2021-04-21 15:28:11 INFO	FORCEDSEARCHQUEUE-MANUAL-395315 :: TokyoToshokan :: Quality of [SubsPlease].Super.Cub.-.03.(720p).[8B184F0C].mkv is 720p HDTV
2021-04-21 15:28:11 INFO	FORCEDSEARCHQUEUE-MANUAL-395315 :: TokyoToshokan :: Episodes [3] of season 1 are needed with this quality for Super Cub
2021-04-21 15:28:11 INFO	FORCEDSEARCHQUEUE-MANUAL-395315 :: TokyoToshokan :: Quality of [SubsPlease].Super.Cub.-.03.(1080p).[3EA9788D].mkv is 1080p HDTV
2021-04-21 15:28:09 INFO	FORCEDSEARCHQUEUE-MANUAL-395315 :: TokyoToshokan :: Performing episode search for Super Cub
2021-04-21 15:28:09 INFO	FORCEDSEARCHQUEUE-MANUAL-395315 :: Nyaa :: Picked [SubsPlease].Super.Cub.-.03.(1080p).[3EA9788D].mkv as the best result.
2021-04-21 15:28:09 INFO	FORCEDSEARCHQUEUE-MANUAL-395315 :: Nyaa :: Quality of [Erai-raws].Super.Cub.-.03.[v0][540p][Multiple.Subtitle].mkv is Unknown
2021-04-21 15:28:09 INFO	FORCEDSEARCHQUEUE-MANUAL-395315 :: Nyaa :: Quality of [SubsPlease].Super.Cub.-.03.(540p).[5C0D3532].mkv is Unknown
2021-04-21 15:28:09 INFO	FORCEDSEARCHQUEUE-MANUAL-395315 :: Nyaa :: Quality of [Erai-raws].Super.Cub.-.03.[v0][720p][Multiple.Subtitle].mkv is 720p HDTV
2021-04-21 15:28:09 INFO	FORCEDSEARCHQUEUE-MANUAL-395315 :: Nyaa :: Episodes [3] of season 1 are needed with this quality for Super Cub
2021-04-21 15:28:09 INFO	FORCEDSEARCHQUEUE-MANUAL-395315 :: Nyaa :: Quality of [Erai-raws].Super.Cub.-.03.[v0][1080p][Multiple.Subtitle].mkv is 1080p HDTV
2021-04-21 15:28:09 INFO	FORCEDSEARCHQUEUE-MANUAL-395315 :: Nyaa :: Quality of [SubsPlease].Super.Cub.-.03.(720p).[8B184F0C].mkv is 720p HDTV
2021-04-21 15:28:09 INFO	FORCEDSEARCHQUEUE-MANUAL-395315 :: Nyaa :: Episodes [3] of season 1 are needed with this quality for Super Cub
2021-04-21 15:28:09 INFO	FORCEDSEARCHQUEUE-MANUAL-395315 :: Nyaa :: Quality of [SubsPlease].Super.Cub.-.03.(1080p).[3EA9788D].mkv is 1080p HDTV
2021-04-21 15:28:08 INFO	FORCEDSEARCHQUEUE-MANUAL-395315 :: Nyaa :: Performing episode search for Super Cub
2021-04-21 15:28:08 INFO	FORCEDSEARCHQUEUE-MANUAL-395315 :: Using manual search providers
2021-04-21 15:28:08 INFO	FORCEDSEARCHQUEUE-MANUAL-395315 :: Building internal name cache for Super Cub
2021-04-21 15:28:08 INFO	FORCEDSEARCHQUEUE-MANUAL-395315 :: Finished processing 3624 scene exceptions.
2021-04-21 15:28:08 INFO	FORCEDSEARCHQUEUE-MANUAL-395315 :: Updating exception_cache and exception_season_cache
2021-04-21 15:28:08 INFO	FORCEDSEARCHQUEUE-MANUAL-395315 :: Beginning manual search for: Super Cub - S01E03 - Episode 3
2021-04-21 15:27:50 INFO	SNATCHQUEUE-SNATCH-398103 :: Downloading [SubsPlease].Joran.The.Princess.of.Snow.and.Blood.-.02.(1080p).[C76E6BD3].mkv with 144 seeders and 1 leechers and size 1.30 GB from Nyaa, through a SearchType.MANUAL_SEARCH search
2021-04-21 15:27:50 INFO	SNATCHQUEUE-SNATCH-398103 :: Beginning to snatch release: [SubsPlease].Joran.The.Princess.of.Snow.and.Blood.-.02.(1080p).[C76E6BD3].mkv
2021-04-21 15:27:33 INFO	APIv2-Thread-4 :: Broken providers found: ['']
```
</details>



Discussion:

Resolving patch:
diff --git a/medusa/providers/torrent/html/tokyotoshokan.py b/medusa/providers/torrent/html/tokyotoshokan.py
--- a/medusa/providers/torrent/html/tokyotoshokan.py
+++ b/medusa/providers/torrent/html/tokyotoshokan.py
@@ -129,7 +129,7 @@ def parse(self, data, mode):
                         continue
 
                     desc_bottom = bot.find('td', class_='desc-bot').get_text(strip=True)
-                    size = convert_size(desc_bottom.split('|')[1].strip('Size: ')) or -1
+                    size = convert_size(desc_bottom.split('|')[1].strip('Size: '), sep='') or -1
 
                     item = {
                         'title': title,


Test patch:
diff --git a/tests/providers/torrent/tokyotoshokan/tokyotoshokan_test.yaml b/tests/providers/torrent/tokyotoshokan/tokyotoshokan_test.yaml
--- a/tests/providers/torrent/tokyotoshokan/tokyotoshokan_test.yaml
+++ b/tests/providers/torrent/tokyotoshokan/tokyotoshokan_test.yaml
@@ -7,19 +7,19 @@ daily:
       title: '[HorribleSubs] Mahou Shoujo Tokushusen Asuka - 06 [1080p].mkv'
       leechers: 322
       link: magnet:?xt=urn:btih:Z4UZDVBQZFNWIV4TIARGO7KB6B2BHBQ3&tr=http
-      size:  -1
+      size:  879199518
     - seeders: 10
       pubdate: 2017-11-16 00:00:00
       title: '[Erai-raws] Mahou Shoujo Tokushusen Asuka - 06 [1080p][Multiple Subtitle].mkv'
       leechers: 27
       link: magnet:?xt=urn:btih:VOY4MC3IBY3OOP5H53Z6XASJE6ANLAVN&tr=http
-      size: -1
+      size: 878916403
     - seeders: 504
       pubdate: 2017-11-16 00:00:00
       title: '[HorribleSubs] Mahou Shoujo Tokushusen Asuka - 06 [720p].mkv'
       leechers: 324
       link: magnet:?xt=urn:btih:ELMQHCQLVLS2GMI27ZJDLWS3KOHCORBO&tr=http
-      size: -1
+      size: 392828026
 
 backlog:
   search_strings:
@@ -30,10 +30,10 @@ backlog:
       title: Yu-Gi-Oh! VRAINS - 27 (1280x720 HEVC2 AAC).mkv
       leechers: 0
       link: magnet:?xt=urn:btih:5OSHGHPWV5Q4NLO7SWWF3N4P3OJKIMLC&tr=http
-      size: -1
+      size: 179914670
     - seeders: 3
       pubdate: 2017-11-16 00:00:00
       title: '[HorribleSubs] Yu-Gi-Oh! VRAINS - 27 [1080p].mkv'
       leechers: 0
       link: magnet:?xt=urn:btih:GW4QGTAFSIQK2FM6QGNVT652YV3UP77L&tr=http
-      size: -1
+      size: 578289664