Medusa: [APP SUBMITTED]: AttributeError: 'list' object has no attribute 'season'

Created on 5 Sep 2016  路  21Comments  路  Source: pymedusa/Medusa

INFO

Python Version: 2.7.9 (default, Mar 1 2015, 13:48:22) [GCC 4.9.2]
Operating System: Linux-4.4.16-5-osmc-armv7l-with-debian-8.5
Locale: UTF-8
Branch: optimized
Commit: PyMedusa/SickRage@89448604da63b78a49b5b93299cadf8ff406e473
Link to Log: https://gist.github.com/a8de6c277dfd6da0806a3692c6bcb817

ERROR

2016-09-05 11:46:47 ERROR    Thread-15 :: [8944860] Failed doing web ui callback: Traceback (most recent call last):
  File "/home/osmc/SickRage/sickbeard/server/web/core/base.py", line 270, in async_call
    result = function(**kwargs)
  File "/home/osmc/SickRage/sickbeard/server/web/home/handler.py", line 1916, in getManualSearchStatus
    episodes = collectEpisodesFromSearchThread(show)
  File "/home/osmc/SickRage/sickbeard/manual_search.py", line 159, in collectEpisodesFromSearchThread
    episodes += getEpisodes(search_thread, searchstatus)
  File "/home/osmc/SickRage/sickbeard/manual_search.py", line 98, in getEpisodes
    ep = show_obj.get_episode(ep_obj.season, ep_obj.episode)
AttributeError: 'list' object has no attribute 'season'
Traceback (most recent call last):
  File "/home/osmc/SickRage/sickbeard/server/web/core/base.py", line 270, in async_call
    result = function(**kwargs)
  File "/home/osmc/SickRage/sickbeard/server/web/home/handler.py", line 1916, in getManualSearchStatus
    episodes = collectEpisodesFromSearchThread(show)
  File "/home/osmc/SickRage/sickbeard/manual_search.py", line 159, in collectEpisodesFromSearchThread
    episodes += getEpisodes(search_thread, searchstatus)
  File "/home/osmc/SickRage/sickbeard/manual_search.py", line 98, in getEpisodes
    ep = show_obj.get_episode(ep_obj.season, ep_obj.episode)
AttributeError: 'list' object has no attribute 'season'

_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators

Bug Concluded Upstream

Most helpful comment

I really liked the links in the new issue submitter :+1

All 21 comments

I really liked the links in the new issue submitter :+1

yes. but the files link wont work because branch optimized its not in pymedusa
Maybe need to read the remote url var

@fernandog
Maybe you need to use official Medusa builds 馃槣

INFO

Python Version: 2.7.9 (default, Aug 13 2016, 17:56:53) [GCC 4.9.2]
Operating System: Linux-4.4.16-5-osmc-armv7l-with-debian-8.6
Locale: UTF-8
Branch: optimized
Database: 44.3
Commit: pymedusa/SickRage@920c3a03cc5dd5213b3a514ea4816d2cbf937e1c
Link to Log: https://gist.github.com/6409d87a266b06741d9bbf9fcdbb9b5c

ERROR

2016-10-02 19:15:22 ERROR    FINDSUBTITLES :: [920c3a0] Traceback (most recent call last):
  File "/home/osmc/SickRage/medusa/subtitles.py", line 296, in download_subtitles
    for index, s in enumerate(subtitles_list)], key=operator.itemgetter(1), reverse=True)
  File "/home/osmc/SickRage/lib/subliminal/score.py", line 106, in compute_score
    matches = subtitle.get_matches(video)
  File "/home/osmc/SickRage/lib/subliminal/providers/opensubtitles.py", line 82, in get_matches
    matches |= guess_matches(video, guessit(self.filename, {'type': 'episode'}))
  File "/home/osmc/SickRage/lib/subliminal/subtitle.py", line 237, in guess_matches
    if video.format and 'format' in guess and guess['format'].lower() == video.format.lower():
AttributeError: 'list' object has no attribute 'lower'
Traceback (most recent call last):
  File "/home/osmc/SickRage/medusa/subtitles.py", line 296, in download_subtitles
    for index, s in enumerate(subtitles_list)], key=operator.itemgetter(1), reverse=True)
  File "/home/osmc/SickRage/lib/subliminal/score.py", line 106, in compute_score
    matches = subtitle.get_matches(video)
  File "/home/osmc/SickRage/lib/subliminal/providers/opensubtitles.py", line 82, in get_matches
    matches |= guess_matches(video, guessit(self.filename, {'type': 'episode'}))
  File "/home/osmc/SickRage/lib/subliminal/subtitle.py", line 237, in guess_matches
    if video.format and 'format' in guess and guess['format'].lower() == video.format.lower():
AttributeError: 'list' object has no attribute 'lower'

_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators

@ratoaq2 ^

I added a log in subliminal and found out the culrpit:

Searching subtitles [{'moviebytesize': '725722727', 'sublanguageid': u'pob', 'moviehash': '15ec3ccdb0e43e31'}, {'sublanguageid': u'pob', 'tag': 'victoria.s01e07.720p.hdtv.x264-river.mkv'}, {'query': u'Victoria', 'sublanguageid': u'pob', 'episode': 7, 'season': 1}]
Found subtitle <OpenSubtitlesSubtitle '1954384994' [pt-BR]> by fulltext. Filename: Gossip Girl.S01E07.Victor, Victoria.WEB-DL 720p.br.srt

It returned a subtitle completly different from the search:
Gossip Girl.S01E07.Victor, Victoria.WEB-DL 720p.br.srt

python report_guessit.py "Gossip Girl.S01E07.Victor, Victoria.WEB-DL 720p.br.srt"
# guessit: 2.1.1.dev0  rebulk: 0.7.6
? Gossip Girl.S01E07.Victor, Victoria.WEB-DL 720p.br.srt
: title: Gossip Girl
  season: 1
  episode: 7
  episode_title: Victor, Victoria
  format: ['WEB-DL', 'BluRay']
  screen_size: 720p
  subtitle_language: pt-BR
  container: srt
  mimetype: text/plain
  type: episode

i can't reproduce in subliminal CLI. Only in medusa

it found the same subtitle id:
DEBUG:subliminal.providers.opensubtitles:Found subtitle

Collecting videos  [####################################]  100%  /media/SAMSUNG/media/downloaded/series/Victoria.S01E07.720p.HDTV.x264-RiVER/victoria.s01e07.720p.hdtv.x264-river.mkvDEBUG:subliminal.cli:Collecting path /media/SAMSUNG/media/downloaded/series/Victoria.S01E07.720p.HDTV.x264-RiVER/victoria.s01e07.720p.hdtv.x264-river.mkv
INFO:subliminal.core:Scanning video 'victoria.s01e07.720p.hdtv.x264-river.mkv' in '/media/SAMSUNG/media/downloaded/series/Victoria.S01E07.720p.HDTV.x264-RiVER'
DEBUG:subliminal.core:Size is 725722727
DEBUG:subliminal.core:Computed hashes {'thesubdb': '1b6691702d143c8b87d0fa330e214b99', 'opensubtitles': '15ec3ccdb0e43e31', 'shooter': '64daaf44aa3507d9a5d61e2bab881b2a;e617c0cb6e4e3b41fc9655f8865e4319;4f2d37bcadd4a642f122f7e60eea7718;a9b29786169bc9e532d7529f1e852e15', 'napiprojekt': 'd7ab9d455c0145f4d3c5079afba2e43b'}
DEBUG:subliminal.core:Found subtitles {}
INFO:subliminal.core:Refining video with metadata
DEBUG:subliminal.refiners.metadata:Found resolution 720p
DEBUG:subliminal.refiners.metadata:Found video_codec h264
DEBUG:subliminal.refiners.metadata:Found audio_codec AAC
DEBUG:subliminal.refiners.metadata:MKV has no subtitle track
INFO:subliminal.core:Refining video with tvdb
INFO:subliminal.refiners.tvdb:Searching series 'victoria'
DEBUG:subliminal.refiners.tvdb:Found 17 results
DEBUG:subliminal.refiners.tvdb:Found exact match on series u'Victoria'
DEBUG:subliminal.refiners.tvdb:Discarding series name u'Victoria' mismatch on year 2007
DEBUG:subliminal.refiners.tvdb:Found series {u'seriesId': u'', u'rating': u'', u'overview': u'The ambitious eight-part drama follows the early life of Queen Victoria, from her accesion to the throne at the tender age of 18 through to her courtship and marriage to Prince Albert. Victoria went on to rule for 63 years, and was our longest-serving monarch until she was overtaken by Elizabeth II on 9th September this year.\r\n\r\nRufus Sewell stars as Lord Melbourne, Victoria\u2019s first prime minister. The two immediately connected and their intimate friendship became a popular source of gossip that threatened to destabilise the Government \u2013 angering both Tory and Whigs alike.', u'firstAired': u'2016-08-28', u'zap2itId': u'', u'aliases': [], u'networkId': u'', u'network': u'ITV', u'id': 302205, u'seriesName': u'Victoria', u'status': u'Continuing', u'added': u'2015-10-21 11:50:19', u'imdbId': u'tt5137338', u'lastUpdated': 1475350089, u'addedBy': 235, u'genre': [u'Drama'], u'banner': u'graphical/302205-g3.jpg', u'airsTime': u'9:00 PM', u'siteRatingCount': 9, u'airsDayOfWeek': u'Sunday', u'runtime': u'45', u'siteRating': 9.8}
INFO:subliminal.refiners.tvdb:Getting series episode 1x7
DEBUG:subliminal.refiners.tvdb:Found episode {u'seriesId': 302205, u'airsAfterSeason': None, u'dvdEpisodeNumber': 7, u'productionCode': u'', u'overview': u"The queen becomes pregnant, and declares that Albert will become head of state in the event of her death. The developments outrage members of the Tory party, who fear a German prince holding sway over the nation and make arrangements to disrupt his visit to the industrial north. The consort finds an unlikely ally in Sir Robert Peel, who seeks royal approval for the rapidly developing railway. At first, Victoria does not approve, but soon changes her mind when she experiences Peel's creation for herself.", u'airedSeasonID': 643663, u'thumbAdded': u'', u'episodeName': u'The Engine of Change', u'airedSeason': 1, u'airsBeforeSeason': None, u'showUrl': u'', u'id': 5730203, u'dvdDiscid': u'', u'filename': u'', u'dvdSeason': 1, u'writers': [], u'airedEpisodeNumber': 7, u'absoluteNumber': 7, u'thumbHeight': None, u'imdbId': u'tt5351828', u'lastUpdated': 1474831888, u'director': u'', u'lastUpdatedBy': 368086, u'dvdChapter': None, u'airsBeforeEpisode': None, u'language': {u'overview': u'en', u'episodeName': u'en'}, u'thumbAuthor': 1, u'siteRatingCount': 0, u'directors': [], u'firstAired': u'2016-10-02', u'guestStars': [], u'siteRating': 0, u'thumbWidth': None}
INFO:subliminal.core:Refining video with omdb
DEBUG:subliminal.refiners.omdb:No need to search
Collecting videos  [####################################]  100%                                                                                              
1 video collected / 0 video ignored / 0 error
Downloading subtitles  [####################################]  100%  victoria.s01e07.720p.hdtv.x264-river.mkvINFO:subliminal.core:Listing subtitles with provider 'opensubtitles' and languages set([<Language [pt-BR]>])
INFO:subliminal.core:Initializing provider opensubtitles
INFO:subliminal.providers.opensubtitles:Logging in
DEBUG:subliminal.providers.opensubtitles:Logged in with token 'cluodgnmmie7ujcnc3ng90hlm6'
INFO:subliminal.providers.opensubtitles:Searching subtitles [{'moviebytesize': '725722727', 'sublanguageid': u'pob', 'moviehash': '15ec3ccdb0e43e31'}, {'imdbid': u'5351828', 'sublanguageid': u'pob'}, {'sublanguageid': u'pob', 'tag': 'victoria.s01e07.720p.hdtv.x264-river.mkv'}, {'query': u'Victoria', 'sublanguageid': u'pob', 'episode': 7, 'season': 1}]
DEBUG:subliminal.providers.opensubtitles:Found subtitle <OpenSubtitlesSubtitle '1954384994' [pt-BR]> by fulltext
INFO:subliminal.score:Computing score of <OpenSubtitlesSubtitle '1954384994' [pt-BR]> for video <Episode [u'Victoria', 2016, 1x7]> with {'hearing_impaired': False}
DEBUG:subliminal.score:Using scores {'hash': 359, 'format': 7, 'series': 180, 'audio_codec': 3, 'year': 90, 'hearing_impaired': 1, 'episode': 30, 'season': 30, 'video_codec': 2, 'resolution': 2, 'release_group': 15}
DEBUG:subliminal.score:Found matches set(['episode', 'year', 'season', 'resolution'])
DEBUG:subliminal.score:Matched hearing_impaired
INFO:subliminal.score:Computed score 153 with final matches set(['episode', 'year', 'season', 'resolution', 'hearing_impaired'])
INFO:subliminal.core:Score 153 is below min_score (359)
Downloading subtitles  [####################################]  100%
DEBUG:subliminal.core:Terminating initialized providers
INFO:subliminal.core:Terminating provider opensubtitles
INFO:subliminal.providers.opensubtitles:Logging out
DEBUG:subliminal.providers.opensubtitles:Logged out
Downloaded 0 subtitle

Possible fix in subliminal/subtitle.py:

     # format
-    if video.format and 'format' in guess and guess['format'].lower() == video.format.lower():
+    if video.format and 'format' in guess and not isinstance(guess['format'], list) and guess['format'].lower() == video.format.lower():

INFO

Python Version: 2.7.11 (default, Dec 17 2015, 14:08:17) [GCC 4.6.3]
Operating System: Linux-3.2.40-i686-with-glibc2.0
Locale: UTF-8
Branch: develop
Database: 44.2
Commit: pymedusa/SickRage@e7f252dca4a329b340cba51c5420feb18f3697b8
Link to Log: https://gist.github.com/0942c76e676a19f207bd2cde4df69d6c

ERROR

2016-10-05 17:27:09 ERROR    FINDSUBTITLES :: [e7f252d] Traceback (most recent call last):
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/medusa/subtitles.py", line 285, in download_subtitles
    for s in subtitles_list], key=operator.itemgetter(1), reverse=True)
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/lib/subliminal/score.py", line 106, in compute_score
    matches = subtitle.get_matches(video)
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/lib/subliminal/providers/opensubtitles.py", line 78, in get_matches
    matches |= guess_matches(video, guessit(self.movie_release_name, {'type': 'episode'}))
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/lib/subliminal/subtitle.py", line 235, in guess_matches
    if video.format and 'format' in guess and guess['format'].lower() == video.format.lower():
AttributeError: 'list' object has no attribute 'lower'
Traceback (most recent call last):
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/medusa/subtitles.py", line 285, in download_subtitles
    for s in subtitles_list], key=operator.itemgetter(1), reverse=True)
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/lib/subliminal/score.py", line 106, in compute_score
    matches = subtitle.get_matches(video)
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/lib/subliminal/providers/opensubtitles.py", line 78, in get_matches
    matches |= guess_matches(video, guessit(self.movie_release_name, {'type': 'episode'}))
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/lib/subliminal/subtitle.py", line 235, in guess_matches
    if video.format and 'format' in guess and guess['format'].lower() == video.format.lower():
AttributeError: 'list' object has no attribute 'lower'

_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators

Subliminal didn't log the provider and the subtitle that caused that issue :-/
@NicoLeOca If you could tell us which subtitle providers you have enabled and which languages, that's a start.

@ratoaq2

image

english subs only

Thanks, I found the guilty one in opensubtitles. A subtitle with 2 formats: HDTV and WEB-DL

Preacher.S01E10.HDTV.x264.WEB-DL.HI.C

@ratoaq2
thanks and well done

INFO

Python Version: 2.7.11 (default, Dec 17 2015, 14:08:17) [GCC 4.6.3]
Operating System: Linux-3.2.40-i686-with-glibc2.0
Locale: UTF-8
Branch: develop
Database: 44.2
Commit: pymedusa/Medusa@f950560c7aac7c89cbbbd716bb5809ac5fca4e4a
Link to Log: https://gist.github.com/2171772084a48d434a8116346daa9fc0

ERROR

2016-10-16 11:33:18 ERROR    FINDSUBTITLES :: [f950560] Traceback (most recent call last):
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/medusa/subtitles.py", line 375, in download_subtitles
    scored_subtitles = score_subtitles(subtitles_list, video)
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/medusa/subtitles.py", line 244, in score_subtitles
    for s in subtitles_list], key=operator.itemgetter(1, 2), reverse=True)
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/lib/subliminal/score.py", line 106, in compute_score
    matches = subtitle.get_matches(video)
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/lib/subliminal/providers/opensubtitles.py", line 79, in get_matches
    matches |= guess_matches(video, guessit(self.filename, {'type': 'episode'}))
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/lib/subliminal/subtitle.py", line 235, in guess_matches
    if video.format and 'format' in guess and guess['format'].lower() == video.format.lower():
AttributeError: 'list' object has no attribute 'lower'
Traceback (most recent call last):
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/medusa/subtitles.py", line 375, in download_subtitles
    scored_subtitles = score_subtitles(subtitles_list, video)
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/medusa/subtitles.py", line 244, in score_subtitles
    for s in subtitles_list], key=operator.itemgetter(1, 2), reverse=True)
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/lib/subliminal/score.py", line 106, in compute_score
    matches = subtitle.get_matches(video)
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/lib/subliminal/providers/opensubtitles.py", line 79, in get_matches
    matches |= guess_matches(video, guessit(self.filename, {'type': 'episode'}))
  File "/volume1/@appstore/sickbeard-custom/var/SickBeard/lib/subliminal/subtitle.py", line 235, in guess_matches
    if video.format and 'format' in guess and guess['format'].lower() == video.format.lower():
AttributeError: 'list' object has no attribute 'lower'

_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators

@ratoaq2 still need to fix this one ? ^

INFO

Python Version: 2.7.12 (v2.7.12:d33e0cf91556, Jun 27 2016, 15:24:40) [MSC v.1500 64 bit (AMD64)]
Operating System: Windows-10-10.0.14393
Locale: cp1252
Branch: develop
Database: 44.2
Commit: pymedusa/Medusa@3d784e1e77e78bf389935e0dc3c2ab27772eed78
Link to Log: https://gist.github.com/404919324fd5f06b256c212e8ee10210

ERROR

2016-10-23 05:37:56 ERROR    FINDSUBTITLES :: [3d784e1] Traceback (most recent call last):
  File "C:\Medusa\medusa\subtitles.py", line 375, in download_subtitles
    scored_subtitles = score_subtitles(subtitles_list, video)
  File "C:\Medusa\medusa\subtitles.py", line 244, in score_subtitles
    for s in subtitles_list], key=operator.itemgetter(1, 2), reverse=True)
  File "C:\Medusa\lib\subliminal\score.py", line 106, in compute_score
    matches = subtitle.get_matches(video)
  File "C:\Medusa\lib\subliminal\providers\opensubtitles.py", line 79, in get_matches
    matches |= guess_matches(video, guessit(self.filename, {'type': 'episode'}))
  File "C:\Medusa\lib\subliminal\subtitle.py", line 235, in guess_matches
    if video.format and 'format' in guess and guess['format'].lower() == video.format.lower():
AttributeError: 'list' object has no attribute 'lower'
Traceback (most recent call last):
  File "C:\Medusa\medusa\subtitles.py", line 375, in download_subtitles
    scored_subtitles = score_subtitles(subtitles_list, video)
  File "C:\Medusa\medusa\subtitles.py", line 244, in score_subtitles
    for s in subtitles_list], key=operator.itemgetter(1, 2), reverse=True)
  File "C:\Medusa\lib\subliminal\score.py", line 106, in compute_score
    matches = subtitle.get_matches(video)
  File "C:\Medusa\lib\subliminal\providers\opensubtitles.py", line 79, in get_matches
    matches |= guess_matches(video, guessit(self.filename, {'type': 'episode'}))
  File "C:\Medusa\lib\subliminal\subtitle.py", line 235, in guess_matches
    if video.format and 'format' in guess and guess['format'].lower() == video.format.lower():
AttributeError: 'list' object has no attribute 'lower'

_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators

INFO

Python Version: 2.7.6 (default, Jun 22 2015, 18:00:18) [GCC 4.8.2]
Operating System: Linux-4.2.0-42-generic-i686-with-Ubuntu-14.04-trusty
Locale: None
Branch: develop
Database: 44.2
Commit: pymedusa/Medusa@3399717a048c7e9e95648aa5af99f1f864891738
Link to Log: https://gist.github.com/94f30954d0f13871aee041425d95c393

ERROR

2016-10-24 20:12:18 ERROR    FINDSUBTITLES :: [3399717] Traceback (most recent call last):
  File "/home/home/SickRage/medusa/subtitles.py", line 375, in download_subtitles
    scored_subtitles = score_subtitles(subtitles_list, video)
  File "/home/home/SickRage/medusa/subtitles.py", line 244, in score_subtitles
    for s in subtitles_list], key=operator.itemgetter(1, 2), reverse=True)
  File "/home/home/SickRage/lib/subliminal/score.py", line 106, in compute_score
    matches = subtitle.get_matches(video)
  File "/home/home/SickRage/lib/subliminal/providers/legendastv.py", line 147, in get_matches
    matches |= guess_matches(video, guessit(self.archive.name, {'type': self.type}))
  File "/home/home/SickRage/lib/subliminal/subtitle.py", line 235, in guess_matches
    if video.format and 'format' in guess and guess['format'].lower() == video.format.lower():
AttributeError: 'list' object has no attribute 'lower'
Traceback (most recent call last):
  File "/home/home/SickRage/medusa/subtitles.py", line 375, in download_subtitles
    scored_subtitles = score_subtitles(subtitles_list, video)
  File "/home/home/SickRage/medusa/subtitles.py", line 244, in score_subtitles
    for s in subtitles_list], key=operator.itemgetter(1, 2), reverse=True)
  File "/home/home/SickRage/lib/subliminal/score.py", line 106, in compute_score
    matches = subtitle.get_matches(video)
  File "/home/home/SickRage/lib/subliminal/providers/legendastv.py", line 147, in get_matches
    matches |= guess_matches(video, guessit(self.archive.name, {'type': self.type}))
  File "/home/home/SickRage/lib/subliminal/subtitle.py", line 235, in guess_matches
    if video.format and 'format' in guess and guess['format'].lower() == video.format.lower():
AttributeError: 'list' object has no attribute 'lower'

_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators

INFO

Python Version: 2.7.12 (default, Jul 1 2016, 15:12:24) [GCC 5.4.0 20160609]
Operating System: Linux-4.4.0-47-generic-x86_64-with-Ubuntu-16.04-xenial
Locale: UTF-8
Branch: develop
Database: 44.2
Commit: pymedusa/Medusa@547bb6076a33d8dd526f48d13a7f1750c7c76b4a
Link to Log: https://gist.github.com/16d7e12f96da7f1af934d45f1c904d83

ERROR

2016-11-14 11:01:08 ERROR    FINDSUBTITLES :: [547bb60] Traceback (most recent call last):
  File "/opt/Medusa/medusa/subtitles.py", line 426, in download_subtitles
    scored_subtitles = score_subtitles(subtitles_list, video)
  File "/opt/Medusa/medusa/subtitles.py", line 295, in score_subtitles
    for s in subtitles_list], key=operator.itemgetter(1, 2), reverse=True)
  File "/opt/Medusa/lib/subliminal/score.py", line 106, in compute_score
    matches = subtitle.get_matches(video)
  File "/opt/Medusa/lib/subliminal/providers/opensubtitles.py", line 79, in get_matches
    matches |= guess_matches(video, guessit(self.filename, {'type': 'episode'}))
  File "/opt/Medusa/lib/subliminal/subtitle.py", line 235, in guess_matches
    if video.format and 'format' in guess and guess['format'].lower() == video.format.lower():
AttributeError: 'list' object has no attribute 'lower'
Traceback (most recent call last):
  File "/opt/Medusa/medusa/subtitles.py", line 426, in download_subtitles
    scored_subtitles = score_subtitles(subtitles_list, video)
  File "/opt/Medusa/medusa/subtitles.py", line 295, in score_subtitles
    for s in subtitles_list], key=operator.itemgetter(1, 2), reverse=True)
  File "/opt/Medusa/lib/subliminal/score.py", line 106, in compute_score
    matches = subtitle.get_matches(video)
  File "/opt/Medusa/lib/subliminal/providers/opensubtitles.py", line 79, in get_matches
    matches |= guess_matches(video, guessit(self.filename, {'type': 'episode'}))
  File "/opt/Medusa/lib/subliminal/subtitle.py", line 235, in guess_matches
    if video.format and 'format' in guess and guess['format'].lower() == video.format.lower():
AttributeError: 'list' object has no attribute 'lower'

_STAFF NOTIFIED_: @pymedusa/support @pymedusa/moderators

This one is related to opensubtitle release names. Some of them ends up with multiple formats and subliminal doesn't support that.

What I can do is to create a rule and drop the formats and log a warning, or error. Probably an error, so users can submit them and I can keep track of the problematic scenarios

Should be fixed by #1544

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Miicker picture Miicker  路  3Comments

LoRNiKoN picture LoRNiKoN  路  4Comments

wimpyrbx picture wimpyrbx  路  5Comments

elpedriyo picture elpedriyo  路  4Comments

Rouzax picture Rouzax  路  4Comments