Skip to content

Commit

Permalink
update http -> https in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
getzze committed Oct 17, 2024
1 parent ad64e23 commit cfde575
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion subliminal/cli.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ruff: noqa: FBT001
"""Subliminal uses `click <http://click.pocoo.org>`_ to provide a powerful :abbr:`CLI (command-line interface)`."""
"""Subliminal uses `click <https://click.palletsprojects.com>`_ to provide a :abbr:`CLI (command-line interface)`."""

from __future__ import annotations

Expand Down
4 changes: 2 additions & 2 deletions subliminal/providers/podnapisi.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def query(
if self.session is None:
raise NotInitializedProviderError

# set parameters, see http://www.podnapisi.net/forum/viewtopic.php?f=62&t=26164#p212652
# set parameters, see https://www.podnapisi.net/forum/viewtopic.php?f=62&t=26164#p212652
params: dict[str, Any] = {'keywords': keyword, 'language': str(language)}
is_episode = False
if season is not None and episode is not None:
Expand All @@ -162,7 +162,7 @@ def query(
for data in result['data']:
# read xml elements
pid = data['id']
# ignore duplicates, see http://www.podnapisi.net/forum/viewtopic.php?f=62&t=26164&start=10#p213321
# ignore duplicates, see https://www.podnapisi.net/forum/viewtopic.php?f=62&t=26164&start=10#p213321
if pid in pids:
logger.debug('Ignoring duplicate %r', pid)
continue
Expand Down
4 changes: 2 additions & 2 deletions subliminal/refiners/omdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def apikey(self, value: str) -> None:


def refine_episode(client: OMDBClient, video: Episode, *, force: bool = False, **kwargs: Any) -> None:
"""Refine an Episode by searching `OMDb API <http://omdbapi.com/>`_."""
"""Refine an Episode by searching `OMDb API <https://omdbapi.com/>`_."""
# exit if the information is complete
if not force and video.series_imdb_id and video.imdb_id:
logger.debug('No need to search, IMDB ids already exist for the video.')
Expand Down Expand Up @@ -246,7 +246,7 @@ def refine_episode(client: OMDBClient, video: Episode, *, force: bool = False, *


def refine_movie(client: OMDBClient, video: Movie, *, force: bool = False, **kwargs: Any) -> None:
"""Refine a Movie by searching `OMDb API <http://omdbapi.com/>`_."""
"""Refine a Movie by searching `OMDb API <https://omdbapi.com/>`_."""
# exit if the information is complete
if not force and video.imdb_id:
logger.debug('No need to search, IMDB ids already exist for the video.')
Expand Down
2 changes: 1 addition & 1 deletion subliminal/score.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
.. note::
To avoid unnecessary dependency on `sympy <http://www.sympy.org/>`_ and boost subliminal's import time, the
To avoid unnecessary dependency on `sympy <https://www.sympy.org/>`_ and boost subliminal's import time, the
resulting scores are hardcoded here and manually updated when the set of equations change.
Available matches:
Expand Down
2 changes: 1 addition & 1 deletion subliminal/subtitle.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ def get_subtitle_suffix(

def find_potential_encodings(language: Language) -> list[str]: # pragma: no cover
"""Find potential encodings given the language."""
# http://scratchpad.wikia.com/wiki/Character_Encoding_Recommendation_for_Languages
# https://scratchpad.wikia.com/wiki/Character_Encoding_Recommendation_for_Languages

if language.alpha3 == 'zho':
return ['cp936', 'gb2312', 'gbk', 'hz', 'iso2022_jp_2', 'cp950', 'big5hkscs', 'big5', 'gb18030', 'utf-16']
Expand Down
2 changes: 1 addition & 1 deletion subliminal/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def creation_date(filepath: os.PathLike | str) -> float:
Try to get the date that a file was created, falling back to when it was
last modified if that isn't possible.
See http://stackoverflow.com/a/39501288/1709587 for explanation.
See https://stackoverflow.com/a/39501288/1709587 for explanation.
"""
# Use creation time (although it may not be correct)
if platform.system() == 'Windows':
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ def mkv():
missing_files = [f for f in wanted_files if not os.path.exists(os.path.join(data_path, f))]
if missing_files:
# download matroska test suite
r = requests.get('http://downloads.sourceforge.net/project/matroska/test_files/matroska_test_w1_1.zip')
r = requests.get('https://downloads.sourceforge.net/project/matroska/test_files/matroska_test_w1_1.zip')
with ZipFile(BytesIO(r.content), 'r') as f:
for missing_file in missing_files:
f.extract(missing_file, data_path)
Expand Down

0 comments on commit cfde575

Please sign in to comment.