Skip to content

Commit

Permalink
TVSubtitles: Get full release name
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandog committed Jan 29, 2018
1 parent 4c0bcbf commit cd9655b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion subliminal/providers/tvsubtitles.py
Expand Up @@ -192,7 +192,7 @@ def query(self, series, season, episode, year=None):
subtitle_id = int(row.parent['href'][10:-5])
page_link = self.server_url + 'subtitle-%d.html' % subtitle_id
rip = row.find('p', title='rip').text.strip() or None
release = row.find('p', title='release').text.strip() or None
release = row.find('h5').text.strip() or None

subtitle = self.subtitle_class(language, page_link, subtitle_id, series, season, episode, year, rip,
release)
Expand Down
1 change: 1 addition & 0 deletions tests/test_tvsubtitles.py
Expand Up @@ -198,6 +198,7 @@ def test_list_subtitles(episodes):
subtitles = provider.list_subtitles(video, languages)
assert {subtitle.subtitle_id for subtitle in subtitles} == expected_subtitles
assert {subtitle.language for subtitle in subtitles} == languages
assert subtitles[0].release == 'The Big Bang Theory 7x05 (HDTV.LOL)'


@pytest.mark.integration
Expand Down

0 comments on commit cd9655b

Please sign in to comment.