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

[APP SUBMITTED]: TypeError: sequence item 0: expected str instance, int found #10471

Closed
fuxxociety opened this issue Apr 3, 2022 · 5 comments
Assignees

Comments

@fuxxociety
Copy link

INFO

Python Version: 3.9.2 (default, Feb 28 2021, 17:03:44) [GCC 10.2.1 20210110]
Operating System: Linux-5.10.0-10-amd64-x86_64-with-glibc2.31
Locale: UTF-8
Branch: master
Database: 44.19
Commit: b618bb9
Link to Log: No Log available

ERROR

2022-04-02 01:53:50 ERROR    POSTPROCESSOR :: [b618bb9] Exception generated: sequence item 0: expected str instance, int found
Traceback (most recent call last):
  File "/home/medusa/opt/medusa/medusa/schedulers/scheduler.py", line 78, in run
    self.action.run(self.force)
  File "/home/medusa/opt/medusa/medusa/process_tv.py", line 232, in run
    process_results.process(force=force, **kwargs)
  File "/home/medusa/opt/medusa/medusa/process_tv.py", line 385, in process
    self.process_files(dir_path, force=force, is_priority=is_priority,
  File "/home/medusa/opt/medusa/medusa/process_tv.py", line 651, in process_files
    self.process_media(path, self.video_files, force, is_priority, ignore_subs)
  File "/home/medusa/opt/medusa/medusa/process_tv.py", line 895, in process_media
    self.process_failed(path, resource_name=video)
  File "/home/medusa/opt/medusa/medusa/process_tv.py", line 937, in process_failed
    self.result = processor.process()
  File "/home/medusa/opt/medusa/medusa/failed_processor.py", line 86, in process
    segment = self._process_release_name()
  File "/home/medusa/opt/medusa/medusa/failed_processor.py", line 66, in _process_release_name
    segment=','.join(ep.episode for ep in segment),
TypeError: sequence item 0: expected str instance, int found

STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators

@fuxxociety
Copy link
Author

fuxxociety commented Apr 3, 2022

This error pops up when the automated postprocessor is ran. Once this error pops, the postprocessor no longer runs, until medusa is restarted.

Debug log, starting when the scheduled postprocessor job starts:
https://www.supernerd.me/debug.log

@p0psicles p0psicles self-assigned this Apr 3, 2022
@fuxxociety
Copy link
Author

fuxxociety commented Apr 3, 2022

Initially removed both Spongebob episodes from the postprocessing folder. More files were successfully processed, but still threw the str,int error. Removed both "From" episodes, and am now waiting for the postprocessor to run again.

Update: postprocessing completed successfully. Will place suspect files back in folder to see if error pops again.

Update2: Processed 'From.S01E07.All.Good.Things.1080p.AMZN.WEB-DL.DDP5.1.H.264-TEPES.mkv' without issue. If this is related to a particular file, the only ones left are the two SpongeBob episodes.

> 2022-04-03 05:06:39 DEBUG    POSTPROCESSOR :: [b618bb9] Starting new thread: POSTPROCESSOR
> 2022-04-03 05:06:39 INFO     POSTPROCESSOR :: [b618bb9] Processing path: /mnt/MediaTorrents/Torrents/Medusa-Incoming
> 2022-04-03 05:06:39 DEBUG    POSTPROCESSOR :: [b618bb9] No processable items found in folder: /mnt/MediaTorrents/Torrents/Medusa-Incoming
> 2022-04-03 05:06:39 DEBUG    POSTPROCESSOR :: [b618bb9] No resource_name passed, using path [/mnt/MediaTorrents/Torrents/Medusa-Incoming/Expedition.Unknown.S09E06.The.Fortune.of.the.Buzzard.1080p.WEB.x264-ROBOTS[rarbg]] to process as a source folder
> 2022-04-03 05:06:39 DEBUG    POSTPROCESSOR :: [b618bb9] Processing folder: /mnt/MediaTorrents/Torrents/Medusa-Incoming/Expedition.Unknown.S09E06.The.Fortune.of.the.Buzzard.1080p.WEB.x264-ROBOTS[rarbg]
> 2022-04-03 05:06:39 DEBUG    POSTPROCESSOR :: [b618bb9] Post-processing files: ['Expedition.Unknown.S09E06.The.Fortune.of.the.Buzzard.1080p.WEB.x264-ROBOTS.mkv']
> 2022-04-03 05:06:39 DEBUG    POSTPROCESSOR :: [b618bb9] Post-processing video files: ['Expedition.Unknown.S09E06.The.Fortune.of.the.Buzzard.1080p.WEB.x264-ROBOTS.mkv']
> 2022-04-03 05:06:39 DEBUG    POSTPROCESSOR :: [b618bb9] You're trying to post-process an automatically searched file that has already been processed, skipping: Expedition.Unknown.S09E06.The.Fortune.of.the.Buzzard.1080p.WEB.x264-ROBOTS.mkv
> 2022-04-03 05:06:39 DEBUG    POSTPROCESSOR :: [b618bb9] Skipping already processed file: Expedition.Unknown.S09E06.The.Fortune.of.the.Buzzard.1080p.WEB.x264-ROBOTS.mkv
> 2022-04-03 05:06:39 INFO     POSTPROCESSOR :: [b618bb9] Not deleting folder /mnt/MediaTorrents/Torrents/Medusa-Incoming/Expedition.Unknown.S09E06.The.Fortune.of.the.Buzzard.1080p.WEB.x264-ROBOTS[rarbg] found the following files: ['Expedition.Unknown.S09E06.The.Fortune.of.the.Buzzard.1080p.WEB.x264-ROBOTS.mkv']
> 2022-04-03 05:06:39 DEBUG    POSTPROCESSOR :: [b618bb9] No resource_name passed, using path [/mnt/MediaTorrents/Torrents/Medusa-Incoming/From.S01E07.All.Good.Things.1080p.AMZN.WEBRip.DDP5.1.x264-TEPES[rarbg]] to process as a source folder
> 2022-04-03 05:06:39 DEBUG    POSTPROCESSOR :: [b618bb9] Processing folder: /mnt/MediaTorrents/Torrents/Medusa-Incoming/From.S01E07.All.Good.Things.1080p.AMZN.WEBRip.DDP5.1.x264-TEPES[rarbg]
> 2022-04-03 05:06:39 DEBUG    POSTPROCESSOR :: [b618bb9] Post-processing files: ['From.S01E07.All.Good.Things.1080p.AMZN.WEB-DL.DDP5.1.H.264-TEPES.mkv', 'RARBG.txt', 'RARBG_DO_NOT_MIRROR.exe']
> 2022-04-03 05:06:39 DEBUG    POSTPROCESSOR :: [b618bb9] Post-processing video files: ['From.S01E07.All.Good.Things.1080p.AMZN.WEB-DL.DDP5.1.H.264-TEPES.mkv']
> 2022-04-03 05:06:39 DEBUG    POSTPROCESSOR :: [b618bb9] Found unwanted files: ['RARBG.txt', 'RARBG_DO_NOT_MIRROR.exe']
> 2022-04-03 05:06:39 INFO     POSTPROCESSOR :: [b618bb9] Processing /mnt/MediaTorrents/Torrents/Medusa-Incoming/From.S01E07.All.Good.Things.1080p.AMZN.WEBRip.DDP5.1.x264-TEPES[rarbg]/From.S01E07.All.Good.Things.1080p.AMZN.WEB-DL.DDP5.1.H.264-TEPES.mkv
> 2022-04-03 05:06:39 DEBUG    POSTPROCESSOR :: [b618bb9] Analyzing name: From.S01E07.All.Good.Things.1080p.AMZN.WEB-DL.DDP5.1.H.264-TEPES.mkv
> 2022-04-03 05:06:39 DEBUG    POSTPROCESSOR :: [b618bb9] Using guessit cache item for From.S01E07.All.Good.Things.1080p.AMZN.WEB-DL.DDP5.1.H.264-TEPES.mkv
> 2022-04-03 05:06:39 DEBUG    POSTPROCESSOR :: [b618bb9] No mapping found, returning passed season and episode S01E07 for show From
> 2022-04-03 05:06:39 DEBUG    POSTPROCESSOR :: [b618bb9] Matched release From.S01E07.All.Good.Things.1080p.AMZN.WEB-DL.DDP5.1.H.264-TEPES.mkv to a series in your database: From
> 2022-04-03 05:06:39 DEBUG    POSTPROCESSOR :: [b618bb9] Parsed From.S01E07.All.Good.Things.1080p.AMZN.WEB-DL.DDP5.1.H.264-TEPES.mkv into title: From, season: 1, episode: [7], episode_title: All Good Things, screen_size: 1080p, streaming_service: Amazon Prime, source: Web, audio_codec: Dolby Digital Plus, audio_channels: 5.1, video_codec: H.264, release_group: TEPES, container: mkv, mimetype: video/x-matroska, type: episode, parsing_time: 0.040201663970947266, absolute_episode: [], quality: 1080p WEB-DL, total_time: 0.040673255920410156
> 2022-04-03 05:06:39 DEBUG    POSTPROCESSOR :: [b618bb9] Show information parsed from file name
> 2022-04-03 05:06:39 DEBUG    POSTPROCESSOR :: [b618bb9] Retrieving episode object for From S01E07
> 2022-04-03 05:06:39 DEBUG    POSTPROCESSOR :: [b618bb9] The episode file has a quality in it, using that: 1080p WEB-DL
> 2022-04-03 05:06:39 DEBUG    POSTPROCESSOR :: [b618bb9] This episode was found in history as SNATCHED.
> 2022-04-03 05:06:39 DEBUG    POSTPROCESSOR :: [b618bb9] Quality of the episode we are processing: 1080p WEB-DL
> 2022-04-03 05:06:39 DEBUG    POSTPROCESSOR :: [b618bb9] Snatch in history: True
> 2022-04-03 05:06:39 DEBUG    POSTPROCESSOR :: [b618bb9] Manually snatched: False
> 2022-04-03 05:06:39 DEBUG    POSTPROCESSOR :: [b618bb9] Info hash: 2faab642bfd65c71636d698fe106d021b81519d9
> 2022-04-03 05:06:39 DEBUG    POSTPROCESSOR :: [b618bb9] Resource name: None
> 2022-04-03 05:06:39 DEBUG    POSTPROCESSOR :: [b618bb9] Current quality: 1080p WEB-DL
> 2022-04-03 05:06:39 DEBUG    POSTPROCESSOR :: [b618bb9] New quality: 1080p WEB-DL
> 2022-04-03 05:06:39 DEBUG    POSTPROCESSOR :: [b618bb9] Proper: False
> 2022-04-03 05:06:39 DEBUG    POSTPROCESSOR :: [b618bb9] This episode is a priority download: True
> 2022-04-03 05:06:39 INFO     POSTPROCESSOR :: [b618bb9] New file: /mnt/MediaTorrents/Torrents/Medusa-Incoming/From.S01E07.All.Good.Things.1080p.AMZN.WEBRip.DDP5.1.x264-TEPES[rarbg]/From.S01E07.All.Good.Things.1080p.AMZN.WEB-DL.DDP5.1.H.264-TEPES.mkv
> 2022-04-03 05:06:39 INFO     POSTPROCESSOR :: [b618bb9] New size: 2.79 GB
> 2022-04-03 05:06:39 DEBUG    POSTPROCESSOR :: [b618bb9] There is no existing file so there's no worries about replacing it
> 2022-04-03 05:06:39 INFO     POSTPROCESSOR :: [b618bb9] This download is marked a priority download so I'm going to replace an existing file if I find one
> 2022-04-03 05:06:39 DEBUG    POSTPROCESSOR :: [b618bb9] Trying to determine free space on destination drive
> 2022-04-03 05:06:39 DEBUG    POSTPROCESSOR :: [b618bb9] Found release name From.S01E07.All.Good.Things.1080p.AMZN.WEB-DL.DDP5.1.H.264-TEPES
> 2022-04-03 05:06:39 DEBUG    POSTPROCESSOR :: [b618bb9] Using guessit cache item for From.S01E07.All.Good.Things.1080p.AMZN.WEBRip.DDP5.1.x264-TEPES[rarbg]
> 2022-04-03 05:06:40 DEBUG    POSTPROCESSOR :: [b618bb9] No mapping found, returning passed season and episode S01E07 for show From
> 2022-04-03 05:06:40 DEBUG    POSTPROCESSOR :: [b618bb9] Matched release From.S01E07.All.Good.Things.1080p.AMZN.WEBRip.DDP5.1.x264-TEPES[rarbg] to a series in your database: From
> 2022-04-03 05:06:40 DEBUG    POSTPROCESSOR :: [b618bb9] Parsed From.S01E07.All.Good.Things.1080p.AMZN.WEBRip.DDP5.1.x264-TEPES[rarbg] into title: From, season: 1, episode: [7], episode_title: All Good Things, screen_size: 1080p, streaming_service: Amazon Prime, source: Web, other: Rip, audio_codec: Dolby Digital Plus, audio_channels: 5.1, video_codec: H.264, video_encoder: x264, release_group: TEPES, type: episode, parsing_time: 0.04160451889038086, absolute_episode: [], quality: 1080p WEB-DL, total_time: 0.04223513603210449
> 2022-04-03 05:06:40 DEBUG    POSTPROCESSOR :: [b618bb9] Folder name (From.S01E07.All.Good.Things.1080p.AMZN.WEBRip.DDP5.1.x264-TEPES[rarbg]) appears to be a valid release name. Using it.
> 2022-04-03 05:06:40 DEBUG    POSTPROCESSOR :: [b618bb9] Using guessit cache item for From.S01E07.All.Good.Things.1080p.AMZN.WEB-DL.DDP5.1.H.264-TEPES
> 2022-04-03 05:06:40 DEBUG    POSTPROCESSOR :: [b618bb9] Matched release From.S01E07.All.Good.Things.1080p.AMZN.WEB-DL.DDP5.1.H.264-TEPES to a series in your database: From
> 2022-04-03 05:06:40 DEBUG    POSTPROCESSOR :: [b618bb9] Parsed From.S01E07.All.Good.Things.1080p.AMZN.WEB-DL.DDP5.1.H.264-TEPES into title: From, season: 1, episode: [7], episode_title: All Good Things, screen_size: 1080p, streaming_service: Amazon Prime, source: Web, audio_codec: Dolby Digital Plus, audio_channels: 5.1, video_codec: H.264, release_group: TEPES, type: episode, parsing_time: 0.03565478324890137, absolute_episode: [], quality: 1080p WEB-DL, total_time: 0.03567838668823242
> 2022-04-03 05:06:40 DEBUG    POSTPROCESSOR :: [b618bb9] Found codec for From All Good Things...
> 2022-04-03 05:06:40 DEBUG    POSTPROCESSOR :: [b618bb9] 54723: Formatting pattern: %SN - S%0SE07 - %EN -  %QN -> From - S01E07 - All Good Things -  1080p WEB-DL
> 2022-04-03 05:06:40 DEBUG    POSTPROCESSOR :: [b618bb9] Using guessit cache item for From.S01E07.All.Good.Things.1080p.AMZN.WEB-DL.DDP5.1.H.264-TEPES
> 2022-04-03 05:06:40 DEBUG    POSTPROCESSOR :: [b618bb9] Using cache item for From.S01E07.All.Good.Things.1080p.AMZN.WEB-DL.DDP5.1.H.264-TEPES
> 2022-04-03 05:06:40 DEBUG    POSTPROCESSOR :: [b618bb9] Matched release From.S01E07.All.Good.Things.1080p.AMZN.WEB-DL.DDP5.1.H.264-TEPES to a series in your database: From
> 2022-04-03 05:06:40 DEBUG    POSTPROCESSOR :: [b618bb9] Parsed From.S01E07.All.Good.Things.1080p.AMZN.WEB-DL.DDP5.1.H.264-TEPES into title: From, season: 1, episode: [7], episode_title: All Good Things, screen_size: 1080p, streaming_service: Amazon Prime, source: Web, audio_codec: Dolby Digital Plus, audio_channels: 5.1, video_codec: H.264, release_group: TEPES, type: episode, parsing_time: 0.007953166961669922, absolute_episode: [], quality: 1080p WEB-DL, total_time: 0.007985353469848633
> 2022-04-03 05:06:40 DEBUG    POSTPROCESSOR :: [b618bb9] Found codec for From All Good Things...
> 2022-04-03 05:06:40 DEBUG    POSTPROCESSOR :: [b618bb9] 54723: Formatting pattern: Season %S -> Season 1
> 2022-04-03 05:06:40 DEBUG    POSTPROCESSOR :: [b618bb9] Destination folder for this episode: /mnt/MediaTorrents/TV_Shows/From/Season 1
> 2022-04-03 05:06:40 DEBUG    POSTPROCESSOR :: [b618bb9] Checking if the path /mnt/MediaTorrents/TV_Shows/From/Season 1 already exists
> 2022-04-03 05:06:40 DEBUG    POSTPROCESSOR :: [b618bb9] No associated files were found for /mnt/MediaTorrents/Torrents/Medusa-Incoming/From.S01E07.All.Good.Things.1080p.AMZN.WEBRip.DDP5.1.x264-TEPES[rarbg]/From.S01E07.All.Good.Things.1080p.AMZN.WEB-DL.DDP5.1.H.264-TEPES.mkv
> 2022-04-03 05:06:40 DEBUG    POSTPROCESSOR :: [b618bb9] Moving file from /mnt/MediaTorrents/Torrents/Medusa-Incoming/From.S01E07.All.Good.Things.1080p.AMZN.WEBRip.DDP5.1.x264-TEPES[rarbg]/From.S01E07.All.Good.Things.1080p.AMZN.WEB-DL.DDP5.1.H.264-TEPES.mkv to /mnt/MediaTorrents/TV_Shows/From/Season 1/From - S01E07 - All Good Things -  1080p WEB-DL.mkv
> 2022-04-03 05:06:40 DEBUG    POSTPROCESSOR :: [b618bb9] Not running as root or owner of /mnt/MediaTorrents/TV_Shows/From/Season 1/From - S01E07 - All Good Things -  1080p WEB-DL.mkv, not trying to set permissions
> 2022-04-03 05:06:40 DEBUG    POSTPROCESSOR :: [b618bb9] 54723: Setter sets location to /mnt/MediaTorrents/TV_Shows/From/Season 1/From - S01E07 - All Good Things -  1080p WEB-DL.mkv
> 2022-04-03 05:06:40 DEBUG    POSTPROCESSOR :: [b618bb9] Checking if /mnt/MediaTorrents/TV_Shows/From/Season 1/From - S01E07 - All Good Things -  1080p WEB-DL.nfo exists: False
> 2022-04-03 05:06:40 DEBUG    POSTPROCESSOR :: [b618bb9] Using guessit cache item for /mnt/MediaTorrents/TV_Shows/From/Season 1/From - S01E07 - All Good Things -  1080p WEB-DL
> 2022-04-03 05:06:40 DEBUG    POSTPROCESSOR :: [b618bb9] Matched release /mnt/MediaTorrents/TV_Shows/From/Season 1/From - S01E07 - All Good Things -  1080p WEB-DL to a series in your database: From
> 2022-04-03 05:06:40 DEBUG    POSTPROCESSOR :: [b618bb9] Parsed /mnt/MediaTorrents/TV_Shows/From/Season 1/From - S01E07 - All Good Things -  1080p WEB-DL into title: From, season: 1, episode: [7], episode_title: All Good Things, screen_size: 1080p, source: Web, type: episode, parsing_time: 0.04386734962463379, absolute_episode: [], quality: 1080p WEB-DL, total_time: 0.04389691352844238
> 2022-04-03 05:06:40 DEBUG    POSTPROCESSOR :: [b618bb9] Using guessit cache item for From.S01E07.All.Good.Things.1080p.AMZN.WEB-DL.DDP5.1.H.264-TEPES
> 2022-04-03 05:06:40 DEBUG    POSTPROCESSOR :: [b618bb9] Using cache item for From.S01E07.All.Good.Things.1080p.AMZN.WEB-DL.DDP5.1.H.264-TEPES
> 2022-04-03 05:06:40 DEBUG    POSTPROCESSOR :: [b618bb9] Matched release From.S01E07.All.Good.Things.1080p.AMZN.WEB-DL.DDP5.1.H.264-TEPES to a series in your database: From
> 2022-04-03 05:06:40 DEBUG    POSTPROCESSOR :: [b618bb9] Parsed From.S01E07.All.Good.Things.1080p.AMZN.WEB-DL.DDP5.1.H.264-TEPES into title: From, season: 1, episode: [7], episode_title: All Good Things, screen_size: 1080p, streaming_service: Amazon Prime, source: Web, audio_codec: Dolby Digital Plus, audio_channels: 5.1, video_codec: H.264, release_group: TEPES, type: episode, parsing_time: 0.008105754852294922, absolute_episode: [], quality: 1080p WEB-DL, total_time: 0.008127689361572266
> 2022-04-03 05:06:40 DEBUG    POSTPROCESSOR :: [b618bb9] Found codec for From All Good Things...
> 2022-04-03 05:06:40 DEBUG    POSTPROCESSOR :: [b618bb9] 54723: Formatting pattern: %SN - S%0SE07 - %EN -> From - S01E07 - All Good Things
> 2022-04-03 05:06:40 DEBUG    POSTPROCESSOR :: [b618bb9] Metadata provider KODI creating episode metadata for From - S01E07 - All Good Things
> 2022-04-03 05:06:40 DEBUG    POSTPROCESSOR :: [b618bb9] 54723: Using language from show settings: en
> 2022-04-03 05:06:40 DEBUG    POSTPROCESSOR :: [b618bb9] 54723: Using language from show settings: en
> 2022-04-03 05:06:40 DEBUG    POSTPROCESSOR :: [b618bb9] Configured language en override show language of en
> 2022-04-03 05:06:40 DEBUG    POSTPROCESSOR :: [b618bb9] Getting all series data for 54723
> 2022-04-03 05:06:40 DEBUG    POSTPROCESSOR :: [b618bb9] Getting all show data for 54723
> 2022-04-03 05:06:40 DEBUG    POSTPROCESSOR :: [b618bb9] GET URL: http://api.tvmaze.com/shows/54723 [Status: 200]
> 2022-04-03 05:06:40 DEBUG    POSTPROCESSOR :: [b618bb9] User-Agent: Medusa/0.5.28 (Linux; 5.10.0-10-amd64; f0940240-b332-11ec-9848-000c29453072)
> 2022-04-03 05:06:40 DEBUG    POSTPROCESSOR :: [b618bb9] Getting all episodes of 54723
> 2022-04-03 05:06:40 DEBUG    POSTPROCESSOR :: [b618bb9] GET URL: http://api.tvmaze.com/shows/54723/episodes?specials=1 [Status: 200]
> 2022-04-03 05:06:40 DEBUG    POSTPROCESSOR :: [b618bb9] User-Agent: Medusa/0.5.28 (Linux; 5.10.0-10-amd64; f0940240-b332-11ec-9848-000c29453072)
> 2022-04-03 05:06:40 DEBUG    POSTPROCESSOR :: [b618bb9] Getting show banners for 54723
> 2022-04-03 05:06:41 DEBUG    POSTPROCESSOR :: [b618bb9] GET URL: http://api.tvmaze.com/shows/54723/images [Status: 200]
> 2022-04-03 05:06:41 DEBUG    POSTPROCESSOR :: [b618bb9] User-Agent: Medusa/0.5.28 (Linux; 5.10.0-10-amd64; f0940240-b332-11ec-9848-000c29453072)
> 2022-04-03 05:06:41 DEBUG    POSTPROCESSOR :: [b618bb9] Getting all show data for 54723
> 2022-04-03 05:06:41 DEBUG    POSTPROCESSOR :: [b618bb9] GET URL: http://api.tvmaze.com/shows/54723/seasons [Status: 200]
> 2022-04-03 05:06:41 DEBUG    POSTPROCESSOR :: [b618bb9] User-Agent: Medusa/0.5.28 (Linux; 5.10.0-10-amd64; f0940240-b332-11ec-9848-000c29453072)
> 2022-04-03 05:06:41 DEBUG    POSTPROCESSOR :: [b618bb9] No banners found for 54723
> 2022-04-03 05:06:41 DEBUG    POSTPROCESSOR :: [b618bb9] No fanarts found for 54723
> 2022-04-03 05:06:41 DEBUG    POSTPROCESSOR :: [b618bb9] Found 1 posters at 1944x2880 (1) resolution for series 54723
> 2022-04-03 05:06:41 DEBUG    POSTPROCESSOR :: [b618bb9] Found 1 total posters for series 54723
> 2022-04-03 05:06:41 DEBUG    POSTPROCESSOR :: [b618bb9] Poster threshold set to 1.0 votes
> 2022-04-03 05:06:41 DEBUG    POSTPROCESSOR :: [b618bb9] Weighted poster results for series 54723:
>      Score     Rating  Votes      Resolution    URL
>      1.000      1.000      1       1944x2880    https://static.tvmaze.com/uploads/images/original_untouched/394/986417.jpg
> 2022-04-03 05:06:41 INFO     POSTPROCESSOR :: [b618bb9] Selected poster for series 54723 (score=1.0, score_bay=1.0, rating=1, votes=1, res=1944x2880): https://static.tvmaze.com/uploads/images/original_untouched/394/986417.jpg
> 2022-04-03 05:06:41 DEBUG    POSTPROCESSOR :: [b618bb9] Full info for best poster for series 54723: {'rating': 1, 'language': 'en', 'ratingcount': 1, 'bannerpath': '986417.jpg', 'bannertype': 'poster', 'bannertype2': '1944x2880', '_bannerpath': 'https://static.tvmaze.com/uploads/images/original_untouched/394/986417.jpg', 'id': 979774, 'resolution': '1944x2880', 'res_index': 1, 'score_rated': 1.0, 'score_weighted': 1.0}
> 2022-04-03 05:06:41 DEBUG    POSTPROCESSOR :: [b618bb9] Getting actors for 54723
> 2022-04-03 05:06:41 DEBUG    POSTPROCESSOR :: [b618bb9] GET URL: http://api.tvmaze.com/shows/54723/cast [Status: 200]
> 2022-04-03 05:06:41 DEBUG    POSTPROCESSOR :: [b618bb9] User-Agent: Medusa/0.5.28 (Linux; 5.10.0-10-amd64; f0940240-b332-11ec-9848-000c29453072)
> 2022-04-03 05:06:41 DEBUG    POSTPROCESSOR :: [b618bb9] Creating metadata for episode S01E07
> 2022-04-03 05:06:41 DEBUG    POSTPROCESSOR :: [b618bb9] Writing episode nfo file to /mnt/MediaTorrents/TV_Shows/From/Season 1/From - S01E07 - All Good Things -  1080p WEB-DL.nfo
> 2022-04-03 05:06:41 DEBUG    POSTPROCESSOR :: [b618bb9] Not running as root or owner of /mnt/MediaTorrents/TV_Shows/From/Season 1/From - S01E07 - All Good Things -  1080p WEB-DL.nfo, not trying to set permissions
> 2022-04-03 05:06:41 DEBUG    POSTPROCESSOR :: [b618bb9] Checking if /mnt/MediaTorrents/TV_Shows/From/Season 1/From - S01E07 - All Good Things -  1080p WEB-DL.nfo exists: True
> 2022-04-03 05:06:41 DEBUG    POSTPROCESSOR :: [b618bb9] Checking if /mnt/MediaTorrents/TV_Shows/From/Season 1/From - S01E07 - All Good Things -  1080p WEB-DL-thumb.jpg exists: False
> 2022-04-03 05:06:41 DEBUG    POSTPROCESSOR :: [b618bb9] Using guessit cache item for /mnt/MediaTorrents/TV_Shows/From/Season 1/From - S01E07 - All Good Things -  1080p WEB-DL
> 2022-04-03 05:06:41 DEBUG    POSTPROCESSOR :: [b618bb9] Using cache item for /mnt/MediaTorrents/TV_Shows/From/Season 1/From - S01E07 - All Good Things -  1080p WEB-DL
> 2022-04-03 05:06:41 DEBUG    POSTPROCESSOR :: [b618bb9] Matched release /mnt/MediaTorrents/TV_Shows/From/Season 1/From - S01E07 - All Good Things -  1080p WEB-DL to a series in your database: From
> 2022-04-03 05:06:41 DEBUG    POSTPROCESSOR :: [b618bb9] Parsed /mnt/MediaTorrents/TV_Shows/From/Season 1/From - S01E07 - All Good Things -  1080p WEB-DL into title: From, season: 1, episode: [7], episode_title: All Good Things, screen_size: 1080p, source: Web, type: episode, parsing_time: 0.009510517120361328, absolute_episode: [], quality: 1080p WEB-DL, total_time: 0.009547710418701172
> 2022-04-03 05:06:41 DEBUG    POSTPROCESSOR :: [b618bb9] Using guessit cache item for From.S01E07.All.Good.Things.1080p.AMZN.WEB-DL.DDP5.1.H.264-TEPES
> 2022-04-03 05:06:41 DEBUG    POSTPROCESSOR :: [b618bb9] Using cache item for From.S01E07.All.Good.Things.1080p.AMZN.WEB-DL.DDP5.1.H.264-TEPES
> 2022-04-03 05:06:41 DEBUG    POSTPROCESSOR :: [b618bb9] Matched release From.S01E07.All.Good.Things.1080p.AMZN.WEB-DL.DDP5.1.H.264-TEPES to a series in your database: From
> 2022-04-03 05:06:41 DEBUG    POSTPROCESSOR :: [b618bb9] Parsed From.S01E07.All.Good.Things.1080p.AMZN.WEB-DL.DDP5.1.H.264-TEPES into title: From, season: 1, episode: [7], episode_title: All Good Things, screen_size: 1080p, streaming_service: Amazon Prime, source: Web, audio_codec: Dolby Digital Plus, audio_channels: 5.1, video_codec: H.264, release_group: TEPES, type: episode, parsing_time: 0.008585214614868164, absolute_episode: [], quality: 1080p WEB-DL, total_time: 0.008613348007202148
> 2022-04-03 05:06:41 DEBUG    POSTPROCESSOR :: [b618bb9] Found codec for From All Good Things...
> 2022-04-03 05:06:41 DEBUG    POSTPROCESSOR :: [b618bb9] 54723: Formatting pattern: %SN - S%0SE07 - %EN -> From - S01E07 - All Good Things
> 2022-04-03 05:06:41 DEBUG    POSTPROCESSOR :: [b618bb9] Metadata provider KODI 12+ creating episode thumbnail for From - S01E07 - All Good Things
> 2022-04-03 05:06:41 DEBUG    POSTPROCESSOR :: [b618bb9] Getting all episodes of 54723
> 2022-04-03 05:06:42 DEBUG    POSTPROCESSOR :: [b618bb9] GET URL: http://api.tvmaze.com/shows/54723/episodes?specials=1 [Status: 200]
> 2022-04-03 05:06:42 DEBUG    POSTPROCESSOR :: [b618bb9] User-Agent: Medusa/0.5.28 (Linux; 5.10.0-10-amd64; f0940240-b332-11ec-9848-000c29453072)
> 2022-04-03 05:06:42 DEBUG    POSTPROCESSOR :: [b618bb9] No thumb is available for this episode, not creating a thumbnail
> 2022-04-03 05:06:42 DEBUG    POSTPROCESSOR :: [b618bb9] Checking if /mnt/MediaTorrents/TV_Shows/From/Season 1/From - S01E07 - All Good Things -  1080p WEB-DL.nfo exists: True
> 2022-04-03 05:06:42 DEBUG    POSTPROCESSOR :: [b618bb9] Checking if /mnt/MediaTorrents/TV_Shows/From/Season 1/From - S01E07 - All Good Things -  1080p WEB-DL.nfo exists: True
> 2022-04-03 05:06:42 DEBUG    POSTPROCESSOR :: [b618bb9] Checking if /mnt/MediaTorrents/TV_Shows/From/Season 1/From - S01E07 - All Good Things -  1080p WEB-DL-thumb.jpg exists: False
> 2022-04-03 05:06:42 DEBUG    POSTPROCESSOR :: [b618bb9] 54723: Saving episode to database: From S01E07
> 2022-04-03 05:06:42 DEBUG    POSTPROCESSOR :: [b618bb9] 54723: Saving metadata changes to database
> 2022-04-03 05:06:42 DEBUG    POSTPROCESSOR :: [b618bb9] 54723: Not creating SQL query - record is not dirty
> 2022-04-03 05:06:42 DEBUG    POSTPROCESSOR :: [b618bb9] Transaction with 0 queries executed
> 2022-04-03 05:06:42 DEBUG    POSTPROCESSOR :: [b618bb9] Notification for NMJ scan update not enabled, skipping this notification
> 2022-04-03 05:06:42 DEBUG    POSTPROCESSOR :: [b618bb9] Using guessit cache item for /mnt/MediaTorrents/TV_Shows/From/Season 1/From - S01E07 - All Good Things -  1080p WEB-DL
> 2022-04-03 05:06:42 DEBUG    POSTPROCESSOR :: [b618bb9] Using cache item for /mnt/MediaTorrents/TV_Shows/From/Season 1/From - S01E07 - All Good Things -  1080p WEB-DL
> 2022-04-03 05:06:42 DEBUG    POSTPROCESSOR :: [b618bb9] Matched release /mnt/MediaTorrents/TV_Shows/From/Season 1/From - S01E07 - All Good Things -  1080p WEB-DL to a series in your database: From
> 2022-04-03 05:06:42 DEBUG    POSTPROCESSOR :: [b618bb9] Parsed /mnt/MediaTorrents/TV_Shows/From/Season 1/From - S01E07 - All Good Things -  1080p WEB-DL into title: From, season: 1, episode: [7], episode_title: All Good Things, screen_size: 1080p, source: Web, type: episode, parsing_time: 0.0093536376953125, absolute_episode: [], quality: 1080p WEB-DL, total_time: 0.009400606155395508
> 2022-04-03 05:06:42 DEBUG    POSTPROCESSOR :: [b618bb9] Using guessit cache item for From.S01E07.All.Good.Things.1080p.AMZN.WEB-DL.DDP5.1.H.264-TEPES
> 2022-04-03 05:06:42 DEBUG    POSTPROCESSOR :: [b618bb9] Using cache item for From.S01E07.All.Good.Things.1080p.AMZN.WEB-DL.DDP5.1.H.264-TEPES
> 2022-04-03 05:06:42 DEBUG    POSTPROCESSOR :: [b618bb9] Matched release From.S01E07.All.Good.Things.1080p.AMZN.WEB-DL.DDP5.1.H.264-TEPES to a series in your database: From
> 2022-04-03 05:06:42 DEBUG    POSTPROCESSOR :: [b618bb9] Parsed From.S01E07.All.Good.Things.1080p.AMZN.WEB-DL.DDP5.1.H.264-TEPES into title: From, season: 1, episode: [7], episode_title: All Good Things, screen_size: 1080p, streaming_service: Amazon Prime, source: Web, audio_codec: Dolby Digital Plus, audio_channels: 5.1, video_codec: H.264, release_group: TEPES, type: episode, parsing_time: 0.00852060317993164, absolute_episode: [], quality: 1080p WEB-DL, total_time: 0.008544445037841797
> 2022-04-03 05:06:42 DEBUG    POSTPROCESSOR :: [b618bb9] Found codec for From All Good Things...
> 2022-04-03 05:06:42 DEBUG    POSTPROCESSOR :: [b618bb9] 54723: Formatting pattern: %SN - %Sx07 - %EN - %QN -> From - 1x07 - All Good Things - 1080p WEB-DL
> 2022-04-03 05:06:42 DEBUG    POSTPROCESSOR :: [b618bb9] Sending a Telegram message for From - 1x07 - All Good Things - 1080p WEB-DL
> 2022-04-03 05:06:42 DEBUG    POSTPROCESSOR :: [b618bb9] Telegram in use with API KEY: **********
> 2022-04-03 05:06:42 INFO     POSTPROCESSOR :: [b618bb9] Telegram message sent successfully.
> 2022-04-03 05:06:42 DEBUG    POSTPROCESSOR :: [b618bb9] GET URL: http://plexmediaserver:32400/library/sections [Status: 200]
> 2022-04-03 05:06:42 DEBUG    POSTPROCESSOR :: [b618bb9] User-Agent: Medusa/0.5.28 (Linux; 5.10.0-10-amd64; f0940240-b332-11ec-9848-000c29453072)
> 2022-04-03 05:06:42 DEBUG    POSTPROCESSOR :: [b618bb9] PLEX: Updating hosts where TV section paths match the downloaded show: 2
> 2022-04-03 05:06:42 DEBUG    POSTPROCESSOR :: [b618bb9] GET URL: http://plexmediaserver:32400/library/sections/2/refresh [Status: 200]
> 2022-04-03 05:06:42 DEBUG    POSTPROCESSOR :: [b618bb9] User-Agent: Medusa/0.5.28 (Linux; 5.10.0-10-amd64; f0940240-b332-11ec-9848-000c29453072)
> 2022-04-03 05:06:42 INFO     POSTPROCESSOR :: [b618bb9] Processing succeeded for /mnt/MediaTorrents/Torrents/Medusa-Incoming/From.S01E07.All.Good.Things.1080p.AMZN.WEBRip.DDP5.1.x264-TEPES[rarbg]/From.S01E07.All.Good.Things.1080p.AMZN.WEB-DL.DDP5.1.H.264-TEPES.mkv
> 2022-04-03 05:06:42 DEBUG    POSTPROCESSOR :: [b618bb9] Deleting file: RARBG.txt
> 2022-04-03 05:06:42 DEBUG    POSTPROCESSOR :: [b618bb9] Deleting file: RARBG_DO_NOT_MIRROR.exe
> 2022-04-03 05:06:42 INFO     POSTPROCESSOR :: [b618bb9] Deleting folder (if it's empty): /mnt/MediaTorrents/Torrents/Medusa-Incoming/From.S01E07.All.Good.Things.1080p.AMZN.WEBRip.DDP5.1.x264-TEPES[rarbg]
> 2022-04-03 05:06:42 DEBUG    POSTPROCESSOR :: [b618bb9] Deleted folder: /mnt/MediaTorrents/Torrents/Medusa-Incoming/From.S01E07.All.Good.Things.1080p.AMZN.WEBRip.DDP5.1.x264-TEPES[rarbg]
> 2022-04-03 05:06:42 INFO     POSTPROCESSOR :: [b618bb9] Post-processing completed.

@fuxxociety
Copy link
Author

fuxxociety commented Apr 3, 2022

yep, there we go. 'SpongeBob SquarePants - S00E09 Friend or Foe.avi' is now the only file in the postprocessing folder, and it threw the Type error.

> 2022-04-03 05:16:43 DEBUG    POSTPROCESSOR :: [b618bb9] Starting new thread: POSTPROCESSOR
> 2022-04-03 05:16:43 INFO     POSTPROCESSOR :: [b618bb9] Processing path: /mnt/MediaTorrents/Torrents/Medusa-Incoming
> 2022-04-03 05:16:43 DEBUG    POSTPROCESSOR :: [b618bb9] No resource_name passed, using path [/mnt/MediaTorrents/Torrents/Medusa-Incoming] to process as a source folder
> 2022-04-03 05:16:43 DEBUG    POSTPROCESSOR :: [b618bb9] Processing folder: /mnt/MediaTorrents/Torrents/Medusa-Incoming
> 2022-04-03 05:16:43 DEBUG    POSTPROCESSOR :: [b618bb9] Post-processing files: ['SpongeBob SquarePants - S00E09 Friend or Foe.avi']
> 2022-04-03 05:16:43 DEBUG    POSTPROCESSOR :: [b618bb9] Post-processing video files: ['SpongeBob SquarePants - S00E09 Friend or Foe.avi']
> 2022-04-03 05:16:43 INFO     POSTPROCESSOR :: [b618bb9] Processing /mnt/MediaTorrents/Torrents/Medusa-Incoming/SpongeBob SquarePants - S00E09 Friend or Foe.avi
> 2022-04-03 05:16:43 DEBUG    POSTPROCESSOR :: [b618bb9] Analyzing name: SpongeBob SquarePants - S00E09 Friend or Foe.avi
> 2022-04-03 05:16:43 DEBUG    POSTPROCESSOR :: [b618bb9] Using guessit cache item for SpongeBob SquarePants - S00E09 Friend or Foe.avi
> 2022-04-03 05:16:43 DEBUG    POSTPROCESSOR :: [b618bb9] No mapping found, returning passed season and episode S00E09 for show SpongeBob SquarePants
> 2022-04-03 05:16:43 DEBUG    POSTPROCESSOR :: [b618bb9] Matched release SpongeBob SquarePants - S00E09 Friend or Foe.avi to a series in your database: SpongeBob SquarePants
> 2022-04-03 05:16:43 DEBUG    POSTPROCESSOR :: [b618bb9] Parsed SpongeBob SquarePants - S00E09 Friend or Foe.avi into title: SpongeBob SquarePants, season: 0, episode: [9], episode_title: Friend or Foe, container: avi, mimetype: video/x-msvideo, type: episode, parsing_time: 0.0316166877746582, absolute_episode: [], quality: Unknown, total_time: 0.03252434730529785
> 2022-04-03 05:16:43 DEBUG    POSTPROCESSOR :: [b618bb9] Parse result not sufficient (all following have to be set). Won't save release name
> 2022-04-03 05:16:43 DEBUG    POSTPROCESSOR :: [b618bb9] Parse result (series_name): SpongeBob SquarePants
> 2022-04-03 05:16:43 DEBUG    POSTPROCESSOR :: [b618bb9] Parse result (season_number): 0
> 2022-04-03 05:16:43 DEBUG    POSTPROCESSOR :: [b618bb9] Parse result (episode_numbers): [9]
> 2022-04-03 05:16:43 DEBUG    POSTPROCESSOR :: [b618bb9] Parse result (ab_episode_numbers): []
> 2022-04-03 05:16:43 DEBUG    POSTPROCESSOR :: [b618bb9] Parse result (air_date): None
> 2022-04-03 05:16:43 DEBUG    POSTPROCESSOR :: [b618bb9] Parse result (release_group): None
> 2022-04-03 05:16:43 DEBUG    POSTPROCESSOR :: [b618bb9] Analyzing name: SpongeBob SquarePants - S00E09 Friend or Foe.avi
> 2022-04-03 05:16:43 DEBUG    POSTPROCESSOR :: [b618bb9] Using cache item for SpongeBob SquarePants - S00E09 Friend or Foe.avi
> 2022-04-03 05:16:43 DEBUG    POSTPROCESSOR :: [b618bb9] Parse result not sufficient (all following have to be set). Won't save release name
> 2022-04-03 05:16:43 DEBUG    POSTPROCESSOR :: [b618bb9] Parse result (series_name): SpongeBob SquarePants
> 2022-04-03 05:16:43 DEBUG    POSTPROCESSOR :: [b618bb9] Parse result (season_number): 0
> 2022-04-03 05:16:43 DEBUG    POSTPROCESSOR :: [b618bb9] Parse result (episode_numbers): [9]
> 2022-04-03 05:16:43 DEBUG    POSTPROCESSOR :: [b618bb9] Parse result (ab_episode_numbers): []
> 2022-04-03 05:16:43 DEBUG    POSTPROCESSOR :: [b618bb9] Parse result (air_date): None
> 2022-04-03 05:16:43 DEBUG    POSTPROCESSOR :: [b618bb9] Parse result (release_group): None
> 2022-04-03 05:16:43 DEBUG    POSTPROCESSOR :: [b618bb9] Retrieving episode object for SpongeBob SquarePants S00E09
> 2022-04-03 05:16:43 DEBUG    POSTPROCESSOR :: [b618bb9] Checking if /mnt/MediaTorrents/TV_Shows/SpongeBob SquarePants/Season 0/SpongeBob SquarePants - S00E09 - Atlantis SquarePantis -  N-A.nfo exists: True
> 2022-04-03 05:16:43 DEBUG    POSTPROCESSOR :: [b618bb9] Checking if /mnt/MediaTorrents/TV_Shows/SpongeBob SquarePants/Season 0/SpongeBob SquarePants - S00E09 - Atlantis SquarePantis -  N-A.nfo exists: True
> 2022-04-03 05:16:43 DEBUG    POSTPROCESSOR :: [b618bb9] Checking if /mnt/MediaTorrents/TV_Shows/SpongeBob SquarePants/Season 0/SpongeBob SquarePants - S00E09 - Atlantis SquarePantis -  N-A-thumb.jpg exists: True
> 2022-04-03 05:16:43 DEBUG    POSTPROCESSOR :: [b618bb9] 75886: Saving episode to database: SpongeBob SquarePants S00E09
> 2022-04-03 05:16:43 DEBUG    POSTPROCESSOR :: [b618bb9] Quality of the episode we are processing: N/A
> 2022-04-03 05:16:43 DEBUG    POSTPROCESSOR :: [b618bb9] Snatch in history: False
> 2022-04-03 05:16:43 DEBUG    POSTPROCESSOR :: [b618bb9] Manually snatched: False
> 2022-04-03 05:16:43 DEBUG    POSTPROCESSOR :: [b618bb9] Info hash: None
> 2022-04-03 05:16:43 DEBUG    POSTPROCESSOR :: [b618bb9] Resource name: None
> 2022-04-03 05:16:43 DEBUG    POSTPROCESSOR :: [b618bb9] Current quality: N/A
> 2022-04-03 05:16:43 DEBUG    POSTPROCESSOR :: [b618bb9] New quality: N/A
> 2022-04-03 05:16:43 DEBUG    POSTPROCESSOR :: [b618bb9] Proper: False
> 2022-04-03 05:16:43 DEBUG    POSTPROCESSOR :: [b618bb9] This episode is a priority download: False
> 2022-04-03 05:16:43 INFO     POSTPROCESSOR :: [b618bb9] Old file: /mnt/MediaTorrents/TV_Shows/SpongeBob SquarePants/Season 0/SpongeBob SquarePants - S00E09 - Atlantis SquarePantis -  N-A.avi
> 2022-04-03 05:16:43 INFO     POSTPROCESSOR :: [b618bb9] New file: /mnt/MediaTorrents/Torrents/Medusa-Incoming/SpongeBob SquarePants - S00E09 Friend or Foe.avi
> 2022-04-03 05:16:43 INFO     POSTPROCESSOR :: [b618bb9] Old size: 228.03 MB
> 2022-04-03 05:16:43 INFO     POSTPROCESSOR :: [b618bb9] New size: 208.87 MB
> 2022-04-03 05:16:43 INFO     POSTPROCESSOR :: [b618bb9] New file is 19.16 MB smaller
> 2022-04-03 05:16:43 INFO     POSTPROCESSOR :: [b618bb9] Checking if new quality N/A should replace current quality: N/A
> 2022-04-03 05:16:43 WARNING  POSTPROCESSOR :: [b618bb9] Processing failed for /mnt/MediaTorrents/Torrents/Medusa-Incoming/SpongeBob SquarePants - S00E09 Friend or Foe.avi: File exists. Marking it unsafe to replace. Reason: New quality is not in Allowed|Preferred. Ignoring quality
> 2022-04-03 05:16:43 INFO     POSTPROCESSOR :: [b618bb9] Failed download detected: (resource: SpongeBob SquarePants - S00E09 Friend or Foe.avi, dir: /mnt/MediaTorrents/Torrents/Medusa-Incoming)
> 2022-04-03 05:16:43 INFO     POSTPROCESSOR :: [b618bb9] Using nzb_name for release name.
> 2022-04-03 05:16:43 DEBUG    POSTPROCESSOR :: [b618bb9] Using guessit cache item for SpongeBob SquarePants - S00E09 Friend or Foe
> 2022-04-03 05:16:43 DEBUG    POSTPROCESSOR :: [b618bb9] No mapping found, returning passed season and episode S00E09 for show SpongeBob SquarePants
> 2022-04-03 05:16:43 DEBUG    POSTPROCESSOR :: [b618bb9] Matched release SpongeBob SquarePants - S00E09 Friend or Foe to a series in your database: SpongeBob SquarePants
> 2022-04-03 05:16:43 DEBUG    POSTPROCESSOR :: [b618bb9] Parsed SpongeBob SquarePants - S00E09 Friend or Foe into title: SpongeBob SquarePants, season: 0, episode: [9], episode_title: Friend or Foe, type: episode, parsing_time: 0.02619457244873047, absolute_episode: [], quality: Unknown, total_time: 0.02676987648010254
> 2022-04-03 05:16:43 DEBUG    POSTPROCESSOR :: [b618bb9] Parsed info: title: SpongeBob SquarePants, season: 0, episode: [9], episode_title: Friend or Foe, type: episode, parsing_time: 0.02619457244873047, absolute_episode: [], quality: Unknown, total_time: 0.02676987648010254
> 2022-04-03 05:16:43 DEBUG    POSTPROCESSOR :: [b618bb9] Detected as single/multi episode: SpongeBob SquarePants - S00E09 Friend or Foe
> 2022-04-03 05:16:43 ERROR    POSTPROCESSOR :: [b618bb9] Exception generated: sequence item 0: expected str instance, int found
> Traceback (most recent call last):
>   File "/home/medusa/opt/medusa/medusa/schedulers/scheduler.py", line 78, in run
>     self.action.run(self.force)
>   File "/home/medusa/opt/medusa/medusa/process_tv.py", line 232, in run
>     process_results.process(force=force, **kwargs)
>   File "/home/medusa/opt/medusa/medusa/process_tv.py", line 385, in process
>     self.process_files(dir_path, force=force, is_priority=is_priority,
>   File "/home/medusa/opt/medusa/medusa/process_tv.py", line 651, in process_files
>     self.process_media(path, self.video_files, force, is_priority, ignore_subs)
>   File "/home/medusa/opt/medusa/medusa/process_tv.py", line 895, in process_media
>     self.process_failed(path, resource_name=video)
>   File "/home/medusa/opt/medusa/medusa/process_tv.py", line 937, in process_failed
>     self.result = processor.process()
>   File "/home/medusa/opt/medusa/medusa/failed_processor.py", line 86, in process
>     segment = self._process_release_name()
>   File "/home/medusa/opt/medusa/medusa/failed_processor.py", line 66, in _process_release_name
>     segment=','.join(ep.episode for ep in segment),
> TypeError: sequence item 0: expected str instance, int found
> 

Couldnt guess on how to fix, but right here:

2022-04-03 05:16:43 DEBUG POSTPROCESSOR :: [b618bb9] Parsed SpongeBob SquarePants - S00E09 Friend or Foe into title: SpongeBob SquarePants, season: 0, episode: [9], episode_title: Friend or Foe, type: episode, parsing_time: 0.02619457244873047, absolute_episode: [], quality: Unknown, total_time: 0.02676987648010254

looks like the episode was correctly parsed into an int, but 'season: 0' is still a string.

@medariox
Copy link
Contributor

medariox commented Apr 3, 2022

Should be fixed with #10472

@nydave69
Copy link

nydave69 commented Apr 8, 2022

INFO

Python Version: 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)]
Operating System: Windows-7-6.1.7601-SP1
Locale: cp1252
Branch: master
Database: 44.19
Commit: b618bb9
Link to Log: No Log available

ERROR

2022-04-08 02:17:34 ERROR    POSTPROCESSOR :: [b618bb9] Exception generated: sequence item 0: expected str instance, int found
Traceback (most recent call last):
  File "C:\Medusa\Medusa\medusa\schedulers\scheduler.py", line 78, in run
    self.action.run(self.force)
  File "C:\Medusa\Medusa\medusa\process_tv.py", line 232, in run
    process_results.process(force=force, **kwargs)
  File "C:\Medusa\Medusa\medusa\process_tv.py", line 386, in process
    ignore_subs=ignore_subs)
  File "C:\Medusa\Medusa\medusa\process_tv.py", line 651, in process_files
    self.process_media(path, self.video_files, force, is_priority, ignore_subs)
  File "C:\Medusa\Medusa\medusa\process_tv.py", line 895, in process_media
    self.process_failed(path, resource_name=video)
  File "C:\Medusa\Medusa\medusa\process_tv.py", line 937, in process_failed
    self.result = processor.process()
  File "C:\Medusa\Medusa\medusa\failed_processor.py", line 86, in process
    segment = self._process_release_name()
  File "C:\Medusa\Medusa\medusa\failed_processor.py", line 66, in _process_release_name
    segment=','.join(ep.episode for ep in segment),
TypeError: sequence item 0: expected str instance, int found

STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators

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

No branches or pull requests

4 participants