[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 $username = Read-Host 'User name' $save_directory = 'D:\' $default_stream = 'best' $streamlink_exe = 'streamlink.exe' $server = 'c1565z2457.r-cdn.com' $user_agent = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36' $address = 'https://viewhub.show/' $waiting_time = 30 #seconds $uri = "{0}api/profile/{1}" -f $address, $username while($true) { Clear-Host $Host.UI.RawUI.WindowTitle = "$username (ViewHub)" $response = $null try { $response = Invoke-WebRequest -UseBasicParsing -TimeoutSec 60 -UserAgent $user_agent -Uri $uri } catch { $_.Exception.Message $uri } if ($response) { $json = $null $json = $response | ConvertFrom-Json if ($json) { $stream_key = $json.data.stream_key $online = $json.data.online $username = $json.data.username if ($online -eq 1) { $unix_time = [DateTimeOffset]::Now.ToUnixTimeMilliSeconds() $stream_url = 'https://{0}/LiveApp/streams/{1}_adaptive.m3u8?token={2}' -f $server, $stream_key, $unix_time $date = Get-Date -f yyyy-MM-dd_HH-mm-ss $file_name = 'ViewHub-{0}-{1}.ts' -f $username, $date $output = Join-Path $save_directory $file_name $Host.UI.RawUI.WindowTitle = "$username (ViewHub) - recording" & $streamlink_exe --http-header "User-Agent=$user_agent" --http-header "Referer=$address" --hls-segment-threads 3 --default-stream $default_stream --url $stream_url --output $output } else { $Host.UI.RawUI.WindowTitle = "$username (ViewHub) - offline" Write-Host "$username - offline" } } } Start-Sleep -seconds $waiting_time }
Вчера, 20:56
Вчера, 18:41
Вчера, 08:09
22 июня 2026 00:23
21 июня 2026 23:35
21 июня 2026 22:23
21 июня 2026 13:26
21 июня 2026 11:04
21 июня 2026 09:57
21 июня 2026 09:11
20 июня 2026 20:00
20 июня 2026 18:21
20 июня 2026 14:03
20 июня 2026 14:01
14 июня 2026 09:59
10 июня 2026 16:15
31 мая 2026 23:34
31 мая 2026 16:13
30 мая 2026 10:33
29 мая 2026 18:20
29 мая 2026 16:17
28 мая 2026 19:27
27 мая 2026 23:14
27 мая 2026 21:35
24 мая 2026 23:08
24 мая 2026 20:57
15 мая 2026 07:53
15 мая 2026 00:43
14 мая 2026 17:33
14 мая 2026 17:32
7 мая 2026 00:36
21 апреля 2026 00:16
13 апреля 2026 00:13
12 апреля 2026 23:28
11 апреля 2026 23:09
4 апреля 2026 16:11
4 апреля 2026 10:24
25 марта 2026 11:17
25 марта 2026 10:46
24 марта 2026 18:14
5 марта 2026 04:50
25 февраля 2026 18:39
19 февраля 2026 20:48
16 февраля 2026 15:27