diff --git a/README.md b/README.md index 10ba5ae..0f92d20 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@

- Simple downloaded for https://kisskh.me/ + Simple downloaded for https://kisskh.co/
@@ -14,7 +14,7 @@ --- -👋 Welcome to the kisskh-downloader README! This package is a simple command-line tool for downloading shows from https://kisskh.me/. Here's everything you need to know to get started: +👋 Welcome to the kisskh-downloader README! This package is a simple command-line tool for downloading shows from https://kisskh.co/. Here's everything you need to know to get started: ## 💻 Installation @@ -48,7 +48,7 @@ Here are some examples: ### 🔗 Direct download entire series in highest quality available in current folder ```console -kisskh dl "https://kisskh.me/Drama/Island-Season-2?id=7000" -o . +kisskh dl "https://kisskh.co/Drama/Island-Season-2?id=7000" -o . ``` ![Download all using URL](https://i.imgur.com/cvKYqK3.gif) @@ -73,14 +73,14 @@ Please select one from above: 1 Downloads episode 4 to 8 of `Alchemy of Souls` in 720p: ```console -kisskh dl "https://kisskh.me/Drama/Alchemy-of-Souls?id=5043" -f 4 -l 8 -q 720p -o . +kisskh dl "https://kisskh.co/Drama/Alchemy-of-Souls?id=5043" -f 4 -l 8 -q 720p -o . ``` ![Download range of episodes](https://i.imgur.com/Q6697pa.gif) Downloads episode 3 of `A Business Proposal` in 720p: ```console -kisskh dl "https://kisskh.me/Drama/A-Business-Proposal?id=4608" -f 3 -l 3 -q 720p -o . +kisskh dl "https://kisskh.co/Drama/A-Business-Proposal?id=4608" -f 3 -l 3 -q 720p -o . ``` ![Download single episode](https://i.imgur.com/cNlED8m.gif) @@ -88,7 +88,7 @@ kisskh dl "https://kisskh.me/Drama/A-Business-Proposal?id=4608" -f 3 -l 3 -q 720 You can also dowload single episode by providing the episode URL ```console -kisskh dl "https://kisskh.me/Drama/A-Business-Proposal/Episode-3?id=4608&ep=86439&page=0&pageSize=100" -o . +kisskh dl "https://kisskh.co/Drama/A-Business-Proposal/Episode-3?id=4608&ep=86439&page=0&pageSize=100" -o . ``` For more options, use the `--help` flag. @@ -100,7 +100,7 @@ For more options, use the `--help` flag. To enable debugging, use the `-vv` flag while running `kisskh dl`. ```console -kisskh -vv dl "https://kisskh.me/Drama/A-Business-Proposal?id=4608" -f 3 -l 3 -q 720p +kisskh -vv dl "https://kisskh.co/Drama/A-Business-Proposal?id=4608" -f 3 -l 3 -q 720p ``` --- diff --git a/pyproject.toml b/pyproject.toml index b3577cf..397d5cd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [tool.poetry] name = "kisskh-downloader" version = "0.1.0" -description = "Simple downloaded for https://kisskh.me/" +description = "Simple downloaded for https://kisskh.co/" readme = "README.md" authors = ["Debakar Roy "] diff --git a/src/kisskh_downloader/cli.py b/src/kisskh_downloader/cli.py index dd3e56c..bf5730a 100644 --- a/src/kisskh_downloader/cli.py +++ b/src/kisskh_downloader/cli.py @@ -57,7 +57,7 @@ def dl( ) -> None: logger = logging.getLogger(__name__) kisskh_api = KissKHApi() - downloader = Downloader(referer="https://kisskh.me") + downloader = Downloader(referer="https://kisskh.co") episode_ids: Dict[int, int] = {} if validators.url(drama_url_or_name): parsed_url = urlparse(drama_url_or_name) diff --git a/src/kisskh_downloader/kisskh_api.py b/src/kisskh_downloader/kisskh_api.py index f28ffa0..036f93e 100644 --- a/src/kisskh_downloader/kisskh_api.py +++ b/src/kisskh_downloader/kisskh_api.py @@ -15,7 +15,7 @@ class KissKHApi: def __init__(self): - self.base_url = "https://kisskh.me/api/" + self.base_url = "https://kisskh.co/api/" self.session = None def _drama_api_url(self, drama_id: int) -> str: diff --git a/tests/test_kisskh_api.py b/tests/test_kisskh_api.py index 4776a2f..111ad79 100644 --- a/tests/test_kisskh_api.py +++ b/tests/test_kisskh_api.py @@ -60,7 +60,7 @@ def test_get_episode_ids(kisskh_api): 10: 118960, } - kisskh_api._request.assert_called_once_with("https://kisskh.me/api/DramaList/Drama/44377") + kisskh_api._request.assert_called_once_with("https://kisskh.co/api/DramaList/Drama/44377") assert kisskh_api.get_episode_ids(44377, 10, 100) == {10: 118960, 11: 119505, 12: 119566, 13: 119964, 14: 120047} @@ -112,7 +112,7 @@ def test_get_subtitles(kisskh_api): ), ] - kisskh_api._request.assert_called_once_with("https://kisskh.me/api/Sub/18609") + kisskh_api._request.assert_called_once_with("https://kisskh.co/api/Sub/18609") assert kisskh_api.get_subtitles(18609, "all") == [ SubItem( @@ -167,7 +167,7 @@ def test_search_dramas_by_query(kisskh_api): search_result = kisskh_api.search_dramas_by_query("Crash") - kisskh_api._request.assert_called_once_with("https://kisskh.me/api/DramaList/Search?q=Crash") + kisskh_api._request.assert_called_once_with("https://kisskh.co/api/DramaList/Search?q=Crash") assert search_result == Search( __root__=[ @@ -211,4 +211,4 @@ def test_get_stream_url(kisskh_api): == "https://hls05.hls1.online/hls05/e4b349db73114f317702a1bb1a8d7f93/ep.12.v0.1657615499.720.m3u8" ) - kisskh_api._request.assert_called_once_with("https://kisskh.me/api/DramaList/Episode/13915.png?err=false&ts=&time=") + kisskh_api._request.assert_called_once_with("https://kisskh.co/api/DramaList/Episode/13915.png?err=false&ts=&time=")