Metadata-Version: 2.1
Name: NPytdl
Version: 0.3.6
Summary: a new youtube_dl
Home-page: https://github.com/rexwu1104/Pytdl
Author: bloodnight
Author-email: rexwu9204@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
Requires-Dist: youtube-dl (>=2020.11.12aiohttp>=3.6.0)

# Pytdl Python的YTDL!

***

目前簡化為四種功能~~

| 方法 | 傳回參數 |
| :-----: | :-----: |
| `songList(query : str, size : int = 12)` | List[dict] |
| `searchList(list_id : str)` | List[str] |
| `songs(querys : List[str])` | List[songList] |
| `info(url : str)` | Song or SongList |

songList 回傳的結構為
```py
[{
	"id": str,
	"title": str,
	"thumbnail": list,
	"length": str
}, ...]
```

searchList 回傳的結構為
```py
[str, ...]
```

songs 回傳的結構為
```py
[songList(), ...]
```

info 回傳的結構為
```py
[Song() | SongList(), ...]
```

Song 與 SongList 要使用 create 創建其結構 (async func)

SongList 創建後的 SongList.songs 為一個 list

如果 Song 傳入的是網址的列表，那他會有一個 Song.Songs 的屬性，是 Song 的 list

```py
from NPytdl import Pytdl
ydl = Pytdl()

song = ydl.info("https://youtu.be/RGtSdbjxVKU")

import asyncio
asyncio.run(song.create())

song.download(f"./test/{song.title}")
```

download 是 `download(path : str, stype : str = "audio")` 要下載影片就將 stype 換成 video

這樣就能下載這首歌


