mirror of
https://github.com/YuzuZensai/play-dl-test.git
synced 2026-01-31 14:58:05 +00:00
LiveStream Support
This commit is contained in:
@@ -3,7 +3,6 @@ import got, { OptionsOfTextResponseBody } from 'got/dist/source'
|
||||
export async function url_get (url : string, options? : OptionsOfTextResponseBody) : Promise<string>{
|
||||
return new Promise(async(resolve, reject) => {
|
||||
let response = await got(url, options)
|
||||
|
||||
if(response.statusCode === 200) {
|
||||
resolve(response.body)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user