Skip to content

Commit

Permalink
fix opensubtitlescom
Browse files Browse the repository at this point in the history
  • Loading branch information
getzze committed May 9, 2024
1 parent 5ccf3cb commit 2d53d3d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
3 changes: 2 additions & 1 deletion subliminal/converters/opensubtitlescom.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# -*- coding: utf-8 -*-
from __future__ import annotations

from babelfish import LanguageReverseConverter, language_converters


Expand Down
10 changes: 3 additions & 7 deletions subliminal/providers/opensubtitlescom.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# -*- coding: utf-8 -*-
from __future__ import annotations

from datetime import datetime, timedelta, timezone
import logging
import time
Expand Down Expand Up @@ -76,12 +77,7 @@ def __init__(
file_id = None,
file_name = None,
):
super(OpenSubtitlesComSubtitle, self).__init__(
language,
hearing_impaired=hearing_impaired,
page_link="",
encoding="utf-8",
)
super().__init__(language, hearing_impaired=hearing_impaired, page_link="", encoding="utf-8")
self.subtitle_id = subtitle_id
self.movie_kind = movie_kind
self.movie_hash = movie_hash
Expand Down
1 change: 0 additions & 1 deletion tests/test_opensubtitlescom.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
import os

from babelfish import Language
Expand Down

0 comments on commit 2d53d3d

Please sign in to comment.