This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Want to change radio station? -> Replace OFM10 with something else | |
# Where to find diffrent values? -> 1. open radio app in chrome 2. Go to network tab and search for `m3u8` | |
$response = Invoke-RestMethod "https://open.fm/api/user/token?fp=https://stream-cdn-1.open.fm/OFM10/ngrp:standard/playlist.m3u8" | |
$token = $response.url | |
Start-Process "C:\Program Files\VideoLAN\VLC\vlc.exe" -ArgumentList $token | |
Write-Host "Have a nice day!" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# How to install: | |
# 1. open powershell | |
# 2. `notepad $profile` | |
# 3. Copy everything paste there and save | |
# 4. restart terminal | |
# https://stackoverflow.com/questions/72236557/how-do-i-read-a-env-file-from-a-ps1-script | |
function LoadEnvFile { | |
param ( |