Skip to content

Commit

Permalink
Update kisskh domain name
Browse files Browse the repository at this point in the history
  • Loading branch information
debakarr committed Apr 15, 2023
1 parent 4ccdd87 commit e90ca84
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div align="center">
<img src="https://i.imgur.com/nhQtOZa.png">
<br>
<strong><i>Simple downloaded for https://kisskh.me/</i></strong>
<strong><i>Simple downloaded for https://kisskh.co/</i></strong>
<br>
<a href="https://pypi.org/project/kisskh-downloader/">
<img src="https://img.shields.io/pypi/v/kisskh-downloader?style=for-the-badge">
Expand All @@ -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

Expand Down Expand Up @@ -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)
Expand All @@ -73,22 +73,22 @@ 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)

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.
Expand All @@ -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
```

---
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"]

Expand Down
2 changes: 1 addition & 1 deletion src/kisskh_downloader/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/kisskh_downloader/kisskh_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
8 changes: 4 additions & 4 deletions tests/test_kisskh_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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__=[
Expand Down Expand Up @@ -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=")

0 comments on commit e90ca84

Please sign in to comment.